mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
parent
e444eab33c
commit
1dc3dcd38c
7 changed files with 30 additions and 11 deletions
7
dist/manifest_chromium.json
vendored
7
dist/manifest_chromium.json
vendored
|
|
@ -119,12 +119,15 @@
|
|||
"choose_credential_fields": {
|
||||
"description": "__MSG_popupChooseCredentialsText__"
|
||||
},
|
||||
"retrive_credentials_forced": {
|
||||
"description": "__MSG_popupReopenButton__"
|
||||
"retrieve_credentials_forced": {
|
||||
"description": "__MSG_credentialsRetrieveButton__"
|
||||
},
|
||||
"request_autotype": {
|
||||
"description": "__MSG_contextMenuRequestGlobalAutoType__"
|
||||
},
|
||||
"reopen_database": {
|
||||
"description": "__MSG_popupReopenButton__"
|
||||
},
|
||||
"reload_extension": {
|
||||
"description": "__MSG_popupReloadButton__"
|
||||
}
|
||||
|
|
|
|||
7
dist/manifest_firefox.json
vendored
7
dist/manifest_firefox.json
vendored
|
|
@ -132,12 +132,15 @@
|
|||
"choose_credential_fields": {
|
||||
"description": "__MSG_popupChooseCredentialsText__"
|
||||
},
|
||||
"retrive_credentials_forced": {
|
||||
"description": "__MSG_popupReopenButton__"
|
||||
"retrieve_credentials_forced": {
|
||||
"description": "__MSG_credentialsRetrieveButton__"
|
||||
},
|
||||
"request_autotype": {
|
||||
"description": "__MSG_contextMenuRequestGlobalAutoType__"
|
||||
},
|
||||
"reopen_database": {
|
||||
"description": "__MSG_popupReopenButton__"
|
||||
},
|
||||
"reload_extension": {
|
||||
"description": "__MSG_popupReloadButton__"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -406,6 +406,10 @@
|
|||
"message": "Expired",
|
||||
"description": "If a credential is expired, this is appended to the title label."
|
||||
},
|
||||
"credentialsRetrieveButton": {
|
||||
"message": "Retrieve credentials",
|
||||
"description": "Manual retrieve credentials button text."
|
||||
},
|
||||
"fieldsFill": {
|
||||
"message": "Error: Cannot find fields to fill in.",
|
||||
"description": "Alert message when no fields are found to fill in."
|
||||
|
|
|
|||
|
|
@ -109,7 +109,8 @@ const initListeners = async function() {
|
|||
if (contextMenuItems.some(e => e.action === command)
|
||||
|| command === 'redetect_fields'
|
||||
|| command === 'choose_credential_fields'
|
||||
|| command === 'retrive_credentials_forced'
|
||||
|| command === 'retrieve_credentials_forced'
|
||||
|| command === 'reopen_database'
|
||||
|| command === 'reload_extension') {
|
||||
const tab = await getCurrentTab();
|
||||
if (tab?.id) {
|
||||
|
|
@ -172,7 +173,7 @@ const initContextMenuItems = async function() {
|
|||
});
|
||||
} catch (e) {
|
||||
logError(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -837,7 +837,7 @@ kpxc.usePredefinedSites = function(currentLocation) {
|
|||
* Content script initialization.
|
||||
*/
|
||||
const initContentScript = async function() {
|
||||
try {
|
||||
try {
|
||||
if (document?.documentElement?.ownerDocument?.contentType !== 'text/html'
|
||||
&& document?.documentElement?.ownerDocument?.contentType !== 'application/xhtml+xml'
|
||||
) {
|
||||
|
|
@ -960,9 +960,14 @@ browser.runtime.onMessage.addListener(async function(req, sender) {
|
|||
kpxc.initCredentialFields();
|
||||
} else if (req.action === 'reload_extension') {
|
||||
sendMessage('reconnect');
|
||||
} else if (req.action === 'reopen_database') {
|
||||
sendMessage(
|
||||
'get_status',
|
||||
[ false, true ] // Set forcePopup to true
|
||||
);
|
||||
} else if (req.action === 'save_credentials') {
|
||||
kpxc.rememberCredentialsFromContextMenu();
|
||||
} else if (req.action === 'retrive_credentials_forced') {
|
||||
} else if (req.action === 'retrieve_credentials_forced') {
|
||||
await kpxc.retrieveCredentials(true);
|
||||
} else if (req.action === 'show_password_generator') {
|
||||
kpxcPasswordGenerator.showPasswordGenerator();
|
||||
|
|
|
|||
|
|
@ -119,12 +119,15 @@
|
|||
"choose_credential_fields": {
|
||||
"description": "__MSG_popupChooseCredentialsText__"
|
||||
},
|
||||
"retrive_credentials_forced": {
|
||||
"description": "__MSG_popupReopenButton__"
|
||||
"retrieve_credentials_forced": {
|
||||
"description": "__MSG_credentialsRetrieveButton__"
|
||||
},
|
||||
"request_autotype": {
|
||||
"description": "__MSG_contextMenuRequestGlobalAutoType__"
|
||||
},
|
||||
"reopen_database": {
|
||||
"description": "__MSG_popupReopenButton__"
|
||||
},
|
||||
"reload_extension": {
|
||||
"description": "__MSG_popupReloadButton__"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ const sendMessageToTab = async function(message) {
|
|||
});
|
||||
|
||||
// This does not work with Firefox because of https://bugzilla.mozilla.org/show_bug.cgi?id=1665380
|
||||
await sendMessageToTab('retrive_credentials_forced');
|
||||
await sendMessageToTab('retrieve_credentials_forced');
|
||||
close();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue