mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Ignore banner on tab change
This commit is contained in:
parent
4a04055bb4
commit
7f97270d2f
2 changed files with 8 additions and 3 deletions
|
|
@ -214,13 +214,17 @@ kpxcEvent.pageClearSubmitted = function() {
|
|||
return Promise.resolve();
|
||||
};
|
||||
|
||||
kpxcEvent.pageGetSubmitted = async function() {
|
||||
kpxcEvent.pageGetSubmitted = async function(tab) {
|
||||
// Do not return any credentials if the tab ID does not match.
|
||||
if (tab.id !== page.submittedCredentials.tabId) {
|
||||
return {};
|
||||
}
|
||||
return page.submittedCredentials;
|
||||
};
|
||||
|
||||
kpxcEvent.pageSetSubmitted = function(tab, args = []) {
|
||||
const [ submitted, username, password, url, oldCredentials ] = args;
|
||||
page.setSubmittedCredentials(submitted, username, password, url, oldCredentials);
|
||||
page.setSubmittedCredentials(submitted, username, password, url, oldCredentials, tab.id);
|
||||
return Promise.resolve();
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -180,12 +180,13 @@ page.clearLogins = function(tabId) {
|
|||
page.passwordFilled = false;
|
||||
};
|
||||
|
||||
page.setSubmittedCredentials = function(submitted, username, password, url, oldCredentials) {
|
||||
page.setSubmittedCredentials = function(submitted, username, password, url, oldCredentials, tabId) {
|
||||
page.submittedCredentials.submitted = submitted;
|
||||
page.submittedCredentials.username = username;
|
||||
page.submittedCredentials.password = password;
|
||||
page.submittedCredentials.url = url;
|
||||
page.submittedCredentials.oldCredentials = oldCredentials;
|
||||
page.submittedCredentials.tabId = tabId;
|
||||
};
|
||||
|
||||
page.clearSubmittedCredentials = function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue