mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Ignore Auto-Submit option for Site Preferences
This commit is contained in:
parent
7635f74e82
commit
df3f91e84f
5 changed files with 9 additions and 1 deletions
|
|
@ -85,6 +85,7 @@
|
|||
"Icon": true,
|
||||
"isEdge": true,
|
||||
"isFirefox": true,
|
||||
"IGNORE_AUTOSUBMIT": true,
|
||||
"IGNORE_FULL": true,
|
||||
"IGNORE_NORMAL": true,
|
||||
"IGNORE_NOTHING": true,
|
||||
|
|
|
|||
|
|
@ -895,6 +895,10 @@
|
|||
"message": "Disable new/modified credentials",
|
||||
"description": "Site preferences option selection."
|
||||
},
|
||||
"optionsSelectionAutoSubmit": {
|
||||
"message": "Disable Auto-Submit",
|
||||
"description": "Site preferences option selection."
|
||||
},
|
||||
"optionsSelectionFull": {
|
||||
"message": "Disable all features",
|
||||
"description": "Site preferences option selection."
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
const IGNORE_NOTHING = 'ignoreNothing';
|
||||
const IGNORE_NORMAL = 'ignoreNormal';
|
||||
const IGNORE_AUTOSUBMIT = 'ignoreAutoSubmit';
|
||||
const IGNORE_FULL = 'ignoreFull';
|
||||
|
||||
const schemeSegment = '(\\*|http|https|ws|wss|file|ftp)';
|
||||
|
|
|
|||
|
|
@ -1029,7 +1029,8 @@ kpxc.fillInCredentials = async function(combination, predefinedUsername, uuid, p
|
|||
await sendMessage('page_set_manual_fill', ManualFill.NONE);
|
||||
|
||||
// Auto-submit
|
||||
if (kpxc.settings.autoSubmit && !skipAutoSubmit) {
|
||||
const autoSubmitIgnoredForSite = await kpxc.siteIgnored(IGNORE_AUTOSUBMIT);
|
||||
if (kpxc.settings.autoSubmit && !skipAutoSubmit && !autoSubmitIgnoredForSite) {
|
||||
const submitButton = kpxcForm.getFormSubmitButton(combination.form);
|
||||
if (submitButton !== undefined) {
|
||||
submitButton.click();
|
||||
|
|
|
|||
|
|
@ -518,6 +518,7 @@
|
|||
<select class="form-control form-control-sm" name="ignore" data-i18n="[title]optionsSitePreferencesSelect">
|
||||
<option value="ignoreNothing" data-i18n="optionsSelectionNothing"></option>
|
||||
<option value="ignoreNormal" data-i18n="optionsSelectionNormal"></option>
|
||||
<option value="ignoreAutoSubmit" data-i18n="optionsSelectionAutoSubmit"></option>
|
||||
<option value="ignoreFull" data-i18n="optionsSelectionFull"></option>
|
||||
</select>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Reference in a new issue