mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
[PM-8794] Update "auto-fill" to "autofill" (#10156)
* Update i18n message strings from "auto-fill" to "autofill". * Update tests, warnings and stories "auto-fill" to "autofill". * Remove unnecessary new line removal.
This commit is contained in:
@@ -135,13 +135,13 @@
|
|||||||
"message": "Autofill"
|
"message": "Autofill"
|
||||||
},
|
},
|
||||||
"autoFillLogin": {
|
"autoFillLogin": {
|
||||||
"message": "Auto-fill login"
|
"message": "Autofill login"
|
||||||
},
|
},
|
||||||
"autoFillCard": {
|
"autoFillCard": {
|
||||||
"message": "Auto-fill card"
|
"message": "Autofill card"
|
||||||
},
|
},
|
||||||
"autoFillIdentity": {
|
"autoFillIdentity": {
|
||||||
"message": "Auto-fill identity"
|
"message": "Autofill identity"
|
||||||
},
|
},
|
||||||
"generatePasswordCopied": {
|
"generatePasswordCopied": {
|
||||||
"message": "Generate password (copied)"
|
"message": "Generate password (copied)"
|
||||||
@@ -174,7 +174,7 @@
|
|||||||
"message": "Log in to your vault"
|
"message": "Log in to your vault"
|
||||||
},
|
},
|
||||||
"autoFillInfo": {
|
"autoFillInfo": {
|
||||||
"message": "There are no logins available to auto-fill for the current browser tab."
|
"message": "There are no logins available to autofill for the current browser tab."
|
||||||
},
|
},
|
||||||
"addLogin": {
|
"addLogin": {
|
||||||
"message": "Add a login"
|
"message": "Add a login"
|
||||||
@@ -652,7 +652,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autofillError": {
|
"autofillError": {
|
||||||
"message": "Unable to auto-fill the selected item on this page. Copy and paste the information instead."
|
"message": "Unable to autofill the selected item on this page. Copy and paste the information instead."
|
||||||
},
|
},
|
||||||
"totpCaptureError": {
|
"totpCaptureError": {
|
||||||
"message": "Unable to scan QR code from the current webpage"
|
"message": "Unable to scan QR code from the current webpage"
|
||||||
@@ -820,7 +820,7 @@
|
|||||||
"message": "Show cards on Tab page"
|
"message": "Show cards on Tab page"
|
||||||
},
|
},
|
||||||
"showCardsCurrentTabDesc": {
|
"showCardsCurrentTabDesc": {
|
||||||
"message": "List card items on the Tab page for easy auto-fill."
|
"message": "List card items on the Tab page for easy autofill."
|
||||||
},
|
},
|
||||||
"showIdentitiesInVaultView": {
|
"showIdentitiesInVaultView": {
|
||||||
"message": "Show identifies as Autofill suggestions on Vault view"
|
"message": "Show identifies as Autofill suggestions on Vault view"
|
||||||
@@ -829,7 +829,7 @@
|
|||||||
"message": "Show identities on Tab page"
|
"message": "Show identities on Tab page"
|
||||||
},
|
},
|
||||||
"showIdentitiesCurrentTabDesc": {
|
"showIdentitiesCurrentTabDesc": {
|
||||||
"message": "List identity items on the Tab page for easy auto-fill."
|
"message": "List identity items on the Tab page for easy autofill."
|
||||||
},
|
},
|
||||||
"clearClipboard": {
|
"clearClipboard": {
|
||||||
"message": "Clear clipboard",
|
"message": "Clear clipboard",
|
||||||
@@ -867,7 +867,7 @@
|
|||||||
"message": "Update"
|
"message": "Update"
|
||||||
},
|
},
|
||||||
"notificationUnlockDesc": {
|
"notificationUnlockDesc": {
|
||||||
"message": "Unlock your Bitwarden vault to complete the auto-fill request."
|
"message": "Unlock your Bitwarden vault to complete the autofill request."
|
||||||
},
|
},
|
||||||
"notificationUnlock": {
|
"notificationUnlock": {
|
||||||
"message": "Unlock"
|
"message": "Unlock"
|
||||||
@@ -886,10 +886,10 @@
|
|||||||
},
|
},
|
||||||
"defaultUriMatchDetection": {
|
"defaultUriMatchDetection": {
|
||||||
"message": "Default URI match detection",
|
"message": "Default URI match detection",
|
||||||
"description": "Default URI match detection for auto-fill."
|
"description": "Default URI match detection for autofill."
|
||||||
},
|
},
|
||||||
"defaultUriMatchDetectionDesc": {
|
"defaultUriMatchDetectionDesc": {
|
||||||
"message": "Choose the default way that URI match detection is handled for logins when performing actions such as auto-fill."
|
"message": "Choose the default way that URI match detection is handled for logins when performing actions such as autofill."
|
||||||
},
|
},
|
||||||
"theme": {
|
"theme": {
|
||||||
"message": "Theme"
|
"message": "Theme"
|
||||||
@@ -1104,7 +1104,7 @@
|
|||||||
"message": "Copy TOTP automatically"
|
"message": "Copy TOTP automatically"
|
||||||
},
|
},
|
||||||
"disableAutoTotpCopyDesc": {
|
"disableAutoTotpCopyDesc": {
|
||||||
"message": "If a login has an authenticator key, copy the TOTP verification code to your clip-board when you auto-fill the login."
|
"message": "If a login has an authenticator key, copy the TOTP verification code to your clip-board when you autofill the login."
|
||||||
},
|
},
|
||||||
"enableAutoBiometricsPrompt": {
|
"enableAutoBiometricsPrompt": {
|
||||||
"message": "Ask for biometrics on launch"
|
"message": "Ask for biometrics on launch"
|
||||||
@@ -1254,8 +1254,8 @@
|
|||||||
"message": "Environment URLs saved"
|
"message": "Environment URLs saved"
|
||||||
},
|
},
|
||||||
"showAutoFillMenuOnFormFields": {
|
"showAutoFillMenuOnFormFields": {
|
||||||
"message": "Show auto-fill menu on form fields",
|
"message": "Show autofill menu on form fields",
|
||||||
"description": "Represents the message for allowing the user to enable the auto-fill overlay"
|
"description": "Represents the message for allowing the user to enable the autofill overlay"
|
||||||
},
|
},
|
||||||
"autofillSuggestionsSectionTitle": {
|
"autofillSuggestionsSectionTitle": {
|
||||||
"message": "Autofill suggestions"
|
"message": "Autofill suggestions"
|
||||||
@@ -1284,7 +1284,7 @@
|
|||||||
"description": "Overlay appearance select option for showing the field on focus of the input element"
|
"description": "Overlay appearance select option for showing the field on focus of the input element"
|
||||||
},
|
},
|
||||||
"autofillOverlayVisibilityOnButtonClick": {
|
"autofillOverlayVisibilityOnButtonClick": {
|
||||||
"message": "When auto-fill icon is selected",
|
"message": "When autofill icon is selected",
|
||||||
"description": "Overlay appearance select option for showing the field on click of the overlay icon"
|
"description": "Overlay appearance select option for showing the field on click of the overlay icon"
|
||||||
},
|
},
|
||||||
"enableAutoFillOnPageLoadSectionTitle": {
|
"enableAutoFillOnPageLoadSectionTitle": {
|
||||||
@@ -1307,7 +1307,6 @@
|
|||||||
"content": "$2",
|
"content": "$2",
|
||||||
"example": "</b>"
|
"example": "</b>"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"experimentalFeature": {
|
"experimentalFeature": {
|
||||||
@@ -1326,7 +1325,7 @@
|
|||||||
"message": "You can turn off autofill on page load for individual login items from the item's Edit view."
|
"message": "You can turn off autofill on page load for individual login items from the item's Edit view."
|
||||||
},
|
},
|
||||||
"itemAutoFillOnPageLoad": {
|
"itemAutoFillOnPageLoad": {
|
||||||
"message": "Auto-fill on page load (if set up in Options)"
|
"message": "Autofill on page load (if set up in Options)"
|
||||||
},
|
},
|
||||||
"autoFillOnPageLoadUseDefault": {
|
"autoFillOnPageLoadUseDefault": {
|
||||||
"message": "Use default setting"
|
"message": "Use default setting"
|
||||||
@@ -1680,11 +1679,11 @@
|
|||||||
},
|
},
|
||||||
"matchDetection": {
|
"matchDetection": {
|
||||||
"message": "Match detection",
|
"message": "Match detection",
|
||||||
"description": "URI match detection for auto-fill."
|
"description": "URI match detection for autofill."
|
||||||
},
|
},
|
||||||
"defaultMatchDetection": {
|
"defaultMatchDetection": {
|
||||||
"message": "Default match detection",
|
"message": "Default match detection",
|
||||||
"description": "Default URI match detection for auto-fill."
|
"description": "Default URI match detection for autofill."
|
||||||
},
|
},
|
||||||
"toggleOptions": {
|
"toggleOptions": {
|
||||||
"message": "Toggle options"
|
"message": "Toggle options"
|
||||||
@@ -1843,16 +1842,16 @@
|
|||||||
"message": "Timeout action confirmation"
|
"message": "Timeout action confirmation"
|
||||||
},
|
},
|
||||||
"autoFillAndSave": {
|
"autoFillAndSave": {
|
||||||
"message": "Auto-fill and save"
|
"message": "Autofill and save"
|
||||||
},
|
},
|
||||||
"fillAndSave": {
|
"fillAndSave": {
|
||||||
"message": "Fill and save"
|
"message": "Fill and save"
|
||||||
},
|
},
|
||||||
"autoFillSuccessAndSavedUri": {
|
"autoFillSuccessAndSavedUri": {
|
||||||
"message": "Item auto-filled and URI saved"
|
"message": "Item autofilled and URI saved"
|
||||||
},
|
},
|
||||||
"autoFillSuccess": {
|
"autoFillSuccess": {
|
||||||
"message": "Item auto-filled "
|
"message": "Item autofilled "
|
||||||
},
|
},
|
||||||
"insecurePageWarning": {
|
"insecurePageWarning": {
|
||||||
"message": "Warning: This is an unsecured HTTP page, and any information you submit can potentially be seen and changed by others. This Login was originally saved on a secure (HTTPS) page."
|
"message": "Warning: This is an unsecured HTTP page, and any information you submit can potentially be seen and changed by others. This Login was originally saved on a secure (HTTPS) page."
|
||||||
@@ -1861,7 +1860,7 @@
|
|||||||
"message": "Do you still wish to fill this login?"
|
"message": "Do you still wish to fill this login?"
|
||||||
},
|
},
|
||||||
"autofillIframeWarning": {
|
"autofillIframeWarning": {
|
||||||
"message": "The form is hosted by a different domain than the URI of your saved login. Choose OK to auto-fill anyway, or Cancel to stop."
|
"message": "The form is hosted by a different domain than the URI of your saved login. Choose OK to autofill anyway, or Cancel to stop."
|
||||||
},
|
},
|
||||||
"autofillIframeWarningTip": {
|
"autofillIframeWarningTip": {
|
||||||
"message": "To prevent this warning in the future, save this URI, $HOSTNAME$, to your Bitwarden login item for this site.",
|
"message": "To prevent this warning in the future, save this URI, $HOSTNAME$, to your Bitwarden login item for this site.",
|
||||||
@@ -2755,10 +2754,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autofillPageLoadPolicyActivated": {
|
"autofillPageLoadPolicyActivated": {
|
||||||
"message": "Your organization policies have turned on auto-fill on page load."
|
"message": "Your organization policies have turned on autofill on page load."
|
||||||
},
|
},
|
||||||
"howToAutofill": {
|
"howToAutofill": {
|
||||||
"message": "How to auto-fill"
|
"message": "How to autofill"
|
||||||
},
|
},
|
||||||
"autofillSelectInfoWithCommand": {
|
"autofillSelectInfoWithCommand": {
|
||||||
"message": "Select an item from this screen, use the shortcut $COMMAND$, or explore other options in settings.",
|
"message": "Select an item from this screen, use the shortcut $COMMAND$, or explore other options in settings.",
|
||||||
@@ -2776,7 +2775,7 @@
|
|||||||
"message": "Got it"
|
"message": "Got it"
|
||||||
},
|
},
|
||||||
"autofillSettings": {
|
"autofillSettings": {
|
||||||
"message": "Auto-fill settings"
|
"message": "Autofill settings"
|
||||||
},
|
},
|
||||||
"autofillKeyboardShortcutSectionTitle": {
|
"autofillKeyboardShortcutSectionTitle": {
|
||||||
"message": "Autofill shortcut"
|
"message": "Autofill shortcut"
|
||||||
@@ -2803,7 +2802,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autofillShortcutTextSafari": {
|
"autofillShortcutTextSafari": {
|
||||||
"message": "Default auto-fill shortcut: $COMMAND$.",
|
"message": "Default autofill shortcut: $COMMAND$.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"command": {
|
"command": {
|
||||||
"content": "$1",
|
"content": "$1",
|
||||||
@@ -3056,12 +3055,12 @@
|
|||||||
"message": "Alias domain"
|
"message": "Alias domain"
|
||||||
},
|
},
|
||||||
"passwordRepromptDisabledAutofillOnPageLoad": {
|
"passwordRepromptDisabledAutofillOnPageLoad": {
|
||||||
"message": "Items with master password re-prompt cannot be auto-filled on page load. Auto-fill on page load turned off.",
|
"message": "Items with master password re-prompt cannot be autofilled on page load. Autofill on page load turned off.",
|
||||||
"description": "Toast message for describing that master password re-prompt cannot be auto-filled on page load."
|
"description": "Toast message for describing that master password re-prompt cannot be autofilled on page load."
|
||||||
},
|
},
|
||||||
"autofillOnPageLoadSetToDefault": {
|
"autofillOnPageLoadSetToDefault": {
|
||||||
"message": "Auto-fill on page load set to use default setting.",
|
"message": "Autofill on page load set to use default setting.",
|
||||||
"description": "Toast message for informing the user that auto-fill on page load has been set to the default setting."
|
"description": "Toast message for informing the user that autofill on page load has been set to the default setting."
|
||||||
},
|
},
|
||||||
"turnOffMasterPasswordPromptToEditField": {
|
"turnOffMasterPasswordPromptToEditField": {
|
||||||
"message": "Turn off master password re-prompt to edit this field",
|
"message": "Turn off master password re-prompt to edit this field",
|
||||||
@@ -3074,15 +3073,15 @@
|
|||||||
"message": "Skip to content"
|
"message": "Skip to content"
|
||||||
},
|
},
|
||||||
"bitwardenOverlayButton": {
|
"bitwardenOverlayButton": {
|
||||||
"message": "Bitwarden auto-fill menu button",
|
"message": "Bitwarden autofill menu button",
|
||||||
"description": "Page title for the iframe containing the overlay button"
|
"description": "Page title for the iframe containing the overlay button"
|
||||||
},
|
},
|
||||||
"toggleBitwardenVaultOverlay": {
|
"toggleBitwardenVaultOverlay": {
|
||||||
"message": "Toggle Bitwarden auto-fill menu",
|
"message": "Toggle Bitwarden autofill menu",
|
||||||
"description": "Screen reader and tool tip label for the overlay button"
|
"description": "Screen reader and tool tip label for the overlay button"
|
||||||
},
|
},
|
||||||
"bitwardenVault": {
|
"bitwardenVault": {
|
||||||
"message": "Bitwarden auto-fill menu",
|
"message": "Bitwarden autofill menu",
|
||||||
"description": "Page title in overlay"
|
"description": "Page title in overlay"
|
||||||
},
|
},
|
||||||
"unlockYourAccountToViewMatchingLogins": {
|
"unlockYourAccountToViewMatchingLogins": {
|
||||||
@@ -3146,7 +3145,7 @@
|
|||||||
"description": "Screen reader text (aria-label) for new identity button within inline menu"
|
"description": "Screen reader text (aria-label) for new identity button within inline menu"
|
||||||
},
|
},
|
||||||
"bitwardenOverlayMenuAvailable": {
|
"bitwardenOverlayMenuAvailable": {
|
||||||
"message": "Bitwarden auto-fill menu available. Press the down arrow key to select.",
|
"message": "Bitwarden autofill menu available. Press the down arrow key to select.",
|
||||||
"description": "Screen reader text for announcing when the overlay opens on the page"
|
"description": "Screen reader text for announcing when the overlay opens on the page"
|
||||||
},
|
},
|
||||||
"turnOn": {
|
"turnOn": {
|
||||||
@@ -3572,10 +3571,10 @@
|
|||||||
"message": "Passkey removed"
|
"message": "Passkey removed"
|
||||||
},
|
},
|
||||||
"autofillSuggestions": {
|
"autofillSuggestions": {
|
||||||
"message": "Auto-fill suggestions"
|
"message": "Autofill suggestions"
|
||||||
},
|
},
|
||||||
"autofillSuggestionsTip": {
|
"autofillSuggestionsTip": {
|
||||||
"message": "Save a login item for this site to auto-fill"
|
"message": "Save a login item for this site to autofill"
|
||||||
},
|
},
|
||||||
"yourVaultIsEmpty": {
|
"yourVaultIsEmpty": {
|
||||||
"message": "Your vault is empty"
|
"message": "Your vault is empty"
|
||||||
@@ -3637,8 +3636,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autofillTitle": {
|
"autofillTitle": {
|
||||||
"message": "Auto-fill - $ITEMNAME$",
|
"message": "Autofill - $ITEMNAME$",
|
||||||
"description": "Title for a button that auto-fills a login item.",
|
"description": "Title for a button that autofills a login item.",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"itemname": {
|
"itemname": {
|
||||||
"content": "$1",
|
"content": "$1",
|
||||||
@@ -3935,10 +3934,10 @@
|
|||||||
"message": "Use hidden fields for sensitive data like a password"
|
"message": "Use hidden fields for sensitive data like a password"
|
||||||
},
|
},
|
||||||
"checkBoxHelpText": {
|
"checkBoxHelpText": {
|
||||||
"message": "Use checkboxes if you'd like to auto-fill a form's checkbox, like a remember email"
|
"message": "Use checkboxes if you'd like to autofill a form's checkbox, like a remember email"
|
||||||
},
|
},
|
||||||
"linkedHelpText": {
|
"linkedHelpText": {
|
||||||
"message": "Use a linked field when you are experiencing auto-fill issues for a specific website."
|
"message": "Use a linked field when you are experiencing autofill issues for a specific website."
|
||||||
},
|
},
|
||||||
"linkedLabelHelpText": {
|
"linkedLabelHelpText": {
|
||||||
"message": "Enter the the field's html id, name, aria-label, or placeholder."
|
"message": "Enter the the field's html id, name, aria-label, or placeholder."
|
||||||
|
|||||||
@@ -2328,7 +2328,7 @@ describe("OverlayBackground", () => {
|
|||||||
expect(autofillService.doAutoFill).not.toHaveBeenCalled();
|
expect(autofillService.doAutoFill).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("auto-fills the selected cipher and move it to the top of the front of the ciphers map", async () => {
|
it("autofills the selected cipher and move it to the top of the front of the ciphers map", async () => {
|
||||||
const cipher1 = mock<CipherView>({ id: "inline-menu-cipher-1" });
|
const cipher1 = mock<CipherView>({ id: "inline-menu-cipher-1" });
|
||||||
const cipher2 = mock<CipherView>({ id: "inline-menu-cipher-2" });
|
const cipher2 = mock<CipherView>({ id: "inline-menu-cipher-2" });
|
||||||
const cipher3 = mock<CipherView>({ id: "inline-menu-cipher-3" });
|
const cipher3 = mock<CipherView>({ id: "inline-menu-cipher-3" });
|
||||||
|
|||||||
@@ -1315,7 +1315,7 @@ describe("OverlayBackground", () => {
|
|||||||
expect(doAutoFillSpy).not.toHaveBeenCalled();
|
expect(doAutoFillSpy).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("auto-fills the selected cipher and move it to the top of the front of the ciphers map", async () => {
|
it("autofills the selected cipher and move it to the top of the front of the ciphers map", async () => {
|
||||||
const cipher1 = mock<CipherView>({ id: "overlay-cipher-1" });
|
const cipher1 = mock<CipherView>({ id: "overlay-cipher-1" });
|
||||||
const cipher2 = mock<CipherView>({ id: "overlay-cipher-2" });
|
const cipher2 = mock<CipherView>({ id: "overlay-cipher-2" });
|
||||||
const cipher3 = mock<CipherView>({ id: "overlay-cipher-3" });
|
const cipher3 = mock<CipherView>({ id: "overlay-cipher-3" });
|
||||||
|
|||||||
@@ -580,8 +580,8 @@ describe("AutofillService", () => {
|
|||||||
|
|
||||||
describe("doAutoFill", () => {
|
describe("doAutoFill", () => {
|
||||||
let autofillOptions: AutoFillOptions;
|
let autofillOptions: AutoFillOptions;
|
||||||
const nothingToAutofillError = "Nothing to auto-fill.";
|
const nothingToAutofillError = "Nothing to autofill.";
|
||||||
const didNotAutofillError = "Did not auto-fill.";
|
const didNotAutofillError = "Did not autofill.";
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
autofillOptions = {
|
autofillOptions = {
|
||||||
@@ -805,7 +805,7 @@ describe("AutofillService", () => {
|
|||||||
triggerTestFailure();
|
triggerTestFailure();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
expect(logService.info).toHaveBeenCalledWith(
|
expect(logService.info).toHaveBeenCalledWith(
|
||||||
"Auto-fill on page load was blocked due to an untrusted iframe.",
|
"Autofill on page load was blocked due to an untrusted iframe.",
|
||||||
);
|
);
|
||||||
expect(error.message).toBe(didNotAutofillError);
|
expect(error.message).toBe(didNotAutofillError);
|
||||||
}
|
}
|
||||||
@@ -819,7 +819,7 @@ describe("AutofillService", () => {
|
|||||||
await autofillService.doAutoFill(autofillOptions);
|
await autofillService.doAutoFill(autofillOptions);
|
||||||
|
|
||||||
expect(logService.info).not.toHaveBeenCalledWith(
|
expect(logService.info).not.toHaveBeenCalledWith(
|
||||||
"Auto-fill on page load was blocked due to an untrusted iframe.",
|
"Autofill on page load was blocked due to an untrusted iframe.",
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1204,7 +1204,7 @@ describe("AutofillService", () => {
|
|||||||
expect(result).toBe(totp);
|
expect(result).toBe(totp);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("auto-fills card cipher types", async () => {
|
it("autofills card cipher types", async () => {
|
||||||
const cardFormPageDetails = [
|
const cardFormPageDetails = [
|
||||||
{
|
{
|
||||||
frameId: 1,
|
frameId: 1,
|
||||||
@@ -1251,7 +1251,7 @@ describe("AutofillService", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("auto-fills identity cipher types", async () => {
|
it("autofills identity cipher types", async () => {
|
||||||
const identityFormPageDetails = [
|
const identityFormPageDetails = [
|
||||||
{
|
{
|
||||||
frameId: 1,
|
frameId: 1,
|
||||||
|
|||||||
@@ -317,7 +317,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
async doAutoFill(options: AutoFillOptions): Promise<string | null> {
|
async doAutoFill(options: AutoFillOptions): Promise<string | null> {
|
||||||
const tab = options.tab;
|
const tab = options.tab;
|
||||||
if (!tab || !options.cipher || !options.pageDetails || !options.pageDetails.length) {
|
if (!tab || !options.cipher || !options.pageDetails || !options.pageDetails.length) {
|
||||||
throw new Error("Nothing to auto-fill.");
|
throw new Error("Nothing to autofill.");
|
||||||
}
|
}
|
||||||
|
|
||||||
let totp: string | null = null;
|
let totp: string | null = null;
|
||||||
@@ -359,7 +359,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
options.allowUntrustedIframe != undefined &&
|
options.allowUntrustedIframe != undefined &&
|
||||||
!options.allowUntrustedIframe
|
!options.allowUntrustedIframe
|
||||||
) {
|
) {
|
||||||
this.logService.info("Auto-fill on page load was blocked due to an untrusted iframe.");
|
this.logService.info("Autofill on page load was blocked due to an untrusted iframe.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -414,7 +414,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Did not auto-fill.");
|
throw new Error("Did not autofill.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1187,7 +1187,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
options: GenerateFillScriptOptions,
|
options: GenerateFillScriptOptions,
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
// If the pageUrl (from the content script) matches the tabUrl (from the sender tab), we are not in an iframe
|
// If the pageUrl (from the content script) matches the tabUrl (from the sender tab), we are not in an iframe
|
||||||
// This also avoids a false positive if no URI is saved and the user triggers auto-fill anyway
|
// This also avoids a false positive if no URI is saved and the user triggers autofill anyway
|
||||||
if (pageUrl === options.tabUrl) {
|
if (pageUrl === options.tabUrl) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user