mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #2585 from keepassxreboot/fix/global_autotype_trigger_search_param
Fix Global Auto-Type search param
This commit is contained in:
commit
cd9c4e92a9
2 changed files with 5 additions and 2 deletions
|
|
@ -582,7 +582,7 @@ keepass.requestAutotype = async function(tab, args = []) {
|
|||
|
||||
const kpAction = kpActions.REQUEST_AUTOTYPE;
|
||||
const nonce = keepassClient.getNonce();
|
||||
const search = page.getTopLevelDomainFromUrl(args[0]);
|
||||
const search = await page.getBaseDomainFromUrl(args[0]);
|
||||
|
||||
const messageData = {
|
||||
action: kpAction,
|
||||
|
|
|
|||
|
|
@ -1003,7 +1003,10 @@ browser.runtime.onMessage.addListener(async function(req, sender) {
|
|||
} else if (req.action === 'show_password_generator') {
|
||||
kpxcPasswordGenerator.showPasswordGenerator();
|
||||
} else if (req.action === 'request_autotype') {
|
||||
sendMessage('request_autotype', [ window.location.hostname ]);
|
||||
// All frames can perform this. Ignore iframes that are not allowed.
|
||||
if (await isIframeAllowed()) {
|
||||
sendMessage('request_autotype', [ window.location.hostname ]);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue