From ca3755f2238881ddb22998af747a544635640a53 Mon Sep 17 00:00:00 2001 From: Emanuele Feliziani Date: Wed, 12 Jul 2023 10:21:00 +0200 Subject: [PATCH 1/6] Minor accuracy improvements Signed-off-by: Emanuele Feliziani --- src/Form/FormAnalyzer.js | 10 +++++++--- src/autofill-utils.js | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Form/FormAnalyzer.js b/src/Form/FormAnalyzer.js index 504aacb92..b643e508a 100644 --- a/src/Form/FormAnalyzer.js +++ b/src/Form/FormAnalyzer.js @@ -9,6 +9,8 @@ const signupRegex = new RegExp( ) const conservativeSignupRegex = new RegExp(/sign.?up|join|register|enroll|newsletter|subscri(be|ption)|settings|preferences|profile|update/i) const strictSignupRegex = new RegExp(/sign.?up|join|register|(create|new).+account|enroll|settings|preferences|profile|update/i) +const resetPasswordLink = new RegExp(/(forgot(ten)?|reset|don't remember) (your )?password|password forgotten/i) +const loginProvidersRegex = new RegExp(/ with /i) class FormAnalyzer { /** @type HTMLElement */ @@ -124,7 +126,7 @@ class FormAnalyzer { shouldCheckUnifiedForm = false, shouldBeConservative = false }) { - const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string) + const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string) || resetPasswordLink.test(string) // Check explicitly for unified login/signup forms if (shouldCheckUnifiedForm && matchesLogin && strictSignupRegex.test(string)) { @@ -230,9 +232,11 @@ class FormAnalyzer { (el.getAttribute('role') || '').toUpperCase() === 'LINK' || el.matches('button[class*=secondary]') ) { - // Unless it's a forgotten password link, we don't flip those links let shouldFlip = true - if (/(forgot(ten)?|reset) (your )?password|password forgotten| with /i.test(string)) { + if ( + resetPasswordLink.test(string) || // Don't flip forgotten password links + loginProvidersRegex.test(string) // Don't flip login providers links + ) { shouldFlip = false } this.updateSignal({string, strength: 1, signalType: `external link: ${string}`, shouldFlip}) diff --git a/src/autofill-utils.js b/src/autofill-utils.js index 608ace6b2..c33106960 100644 --- a/src/autofill-utils.js +++ b/src/autofill-utils.js @@ -326,6 +326,7 @@ const isLikelyASubmitButton = (el) => { return ( el.getAttribute('type') === 'submit' || // is explicitly set as "submit" + el.getAttribute('name') === 'submit' || // is called "submit" /primary|submit/i.test(el.className) || // has high-signal submit classes /submit/i.test(dataTestId) || SUBMIT_BUTTON_REGEX.test(contentExcludingLabel) || // has high-signal text From d3aba2dda2bf0811eda24552f1082708bb9af24f Mon Sep 17 00:00:00 2001 From: Emanuele Feliziani Date: Wed, 12 Jul 2023 10:21:46 +0200 Subject: [PATCH 2/6] Use getters for formAnalyzer results Signed-off-by: Emanuele Feliziani --- src/Form/Form.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/Form/Form.js b/src/Form/Form.js index 7759fa0f3..5c66a0ffb 100644 --- a/src/Form/Form.js +++ b/src/Form/Form.js @@ -32,8 +32,6 @@ class Form { form; /** @type {HTMLInputElement | null} */ activeInput; - /** @type {boolean | null} */ - isSignup; /** * @param {HTMLElement} form * @param {HTMLInputElement|HTMLSelectElement} input @@ -45,9 +43,6 @@ class Form { this.form = form this.matching = matching || createMatching() this.formAnalyzer = new FormAnalyzer(form, input, matching) - this.isLogin = this.formAnalyzer.isLogin - this.isSignup = this.formAnalyzer.isSignup - this.isHybrid = this.formAnalyzer.isHybrid this.device = deviceInterface /** @type Record<'all' | SupportedMainTypes, Set> */ @@ -94,6 +89,16 @@ class Form { } } + get isLogin () { + return this.formAnalyzer.isLogin + } + get isSignup () { + return this.formAnalyzer.isSignup + } + get isHybrid () { + return this.formAnalyzer.isHybrid + } + logFormInfo () { if (!shouldLog()) return From 2ff48798bb0ec4c1160392cb48ba20fefc23c0e1 Mon Sep 17 00:00:00 2001 From: Emanuele Feliziani Date: Wed, 12 Jul 2023 11:41:30 +0200 Subject: [PATCH 3/6] Add mutation observer to forms Signed-off-by: Emanuele Feliziani --- dist/autofill-debug.js | 63 +++++-- dist/autofill.js | 63 +++++-- integration-test/helpers/mocks.js | 1 + integration-test/helpers/pages.js | 42 ++++- integration-test/pages/mutating-form.html | 161 ++++++++++++++++++ .../tests/mutating-form.macos.spec.js | 36 ++++ src/Form/Form.js | 32 +++- .../Resources/assets/autofill-debug.js | 63 +++++-- swift-package/Resources/assets/autofill.js | 63 +++++-- 9 files changed, 469 insertions(+), 55 deletions(-) create mode 100644 integration-test/pages/mutating-form.html create mode 100644 integration-test/tests/mutating-form.macos.spec.js diff --git a/dist/autofill-debug.js b/dist/autofill-debug.js index 11b484cfe..ef967f0d4 100644 --- a/dist/autofill-debug.js +++ b/dist/autofill-debug.js @@ -9990,8 +9990,6 @@ class Form { /** @type {HTMLInputElement | null} */ - /** @type {boolean | null} */ - /** * @param {HTMLElement} form * @param {HTMLInputElement|HTMLSelectElement} input @@ -10008,14 +10006,9 @@ class Form { _defineProperty(this, "activeInput", void 0); - _defineProperty(this, "isSignup", void 0); - this.form = form; this.matching = matching || (0, _matching.createMatching)(); this.formAnalyzer = new _FormAnalyzer.default(form, input, matching); - this.isLogin = this.formAnalyzer.isLogin; - this.isSignup = this.formAnalyzer.isSignup; - this.isHybrid = this.formAnalyzer.isHybrid; this.device = deviceInterface; /** @type Record<'all' | SupportedMainTypes, Set> */ @@ -10042,6 +10035,24 @@ class Form { for (const entry of entries) { if (!entry.isIntersecting) this.removeTooltip(); } + }); + this.mutObsConfig = { + childList: true, + subtree: true + }; + this.mutObs = new MutationObserver(records => { + const anythingRemoved = records.some(record => record.removedNodes.length > 0); + + if (anythingRemoved) { + // Must check for inputs because a parent may be removed and not show up in record.removedNodes + if ([...this.inputs.all].some(input => !input.isConnected)) { + // If any known input has been removed from the DOM, reanalyze the whole form + window.requestIdleCallback(() => { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + }); + } + } }); // This ensures we fire the handler again if the form is changed this.addListener(form, 'input', () => { @@ -10051,6 +10062,7 @@ class Form { } }); this.categorizeInputs(); + this.mutObs.observe(this.form, this.mutObsConfig); this.logFormInfo(); if (shouldAutoprompt) { @@ -10058,6 +10070,18 @@ class Form { } } + get isLogin() { + return this.formAnalyzer.isLogin; + } + + get isSignup() { + return this.formAnalyzer.isSignup; + } + + get isHybrid() { + return this.formAnalyzer.isHybrid; + } + logFormInfo() { if (!(0, _autofillUtils.shouldLog)()) return; console.log("Form type: %c".concat(this.getFormType()), 'font-weight: bold'); @@ -10289,6 +10313,7 @@ class Form { recategorizeAllInputs() { + this.initialScanComplete = false; this.removeAllDecorations(); this.forgetAllInputs(); this.categorizeInputs(); @@ -10311,6 +10336,7 @@ class Form { destroy() { this.removeAllDecorations(); this.removeTooltip(); + this.mutObs.disconnect(); this.matching.clear(); this.intObs = null; } @@ -10323,6 +10349,8 @@ class Form { } else { this.form.querySelectorAll(selector).forEach(input => this.addInput(input)); } + + this.initialScanComplete = true; } get submitButtons() { @@ -10378,9 +10406,16 @@ class Form { addInput(input) { var _this$device$settings; - // Nothing to do with 1-character fields + if (this.inputs.all.has(input)) return this; // When new inputs are added after the initial scan, reanalyze the whole form + + if (this.initialScanComplete) { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + return this; + } // Nothing to do with 1-character fields + + if (input.maxLength === 1) return this; - if (this.inputs.all.has(input)) return this; this.inputs.all.add(input); const opts = { isLogin: this.isLogin, @@ -10787,6 +10822,8 @@ const loginRegex = new RegExp(/sign(ing)?.?in(?!g)|log.?(i|o)n|log.?out|unsubscr const signupRegex = new RegExp(/sign(ing)?.?up|join|\bregist(er|ration)|newsletter|\bsubscri(be|ption)|contact|create|start|enroll|settings|preferences|profile|update|checkout|guest|purchase|buy|order|schedule|estimate|request|new.?customer|(confirm|retype|repeat) password|password confirm?/i); const conservativeSignupRegex = new RegExp(/sign.?up|join|register|enroll|newsletter|subscri(be|ption)|settings|preferences|profile|update/i); const strictSignupRegex = new RegExp(/sign.?up|join|register|(create|new).+account|enroll|settings|preferences|profile|update/i); +const resetPasswordLink = new RegExp(/(forgot(ten)?|reset|don't remember) (your )?password|password forgotten/i); +const loginProvidersRegex = new RegExp(/ with /i); class FormAnalyzer { /** @type HTMLElement */ @@ -10909,7 +10946,7 @@ class FormAnalyzer { shouldCheckUnifiedForm = false, shouldBeConservative = false } = _ref; - const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string); // Check explicitly for unified login/signup forms + const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string) || resetPasswordLink.test(string); // Check explicitly for unified login/signup forms if (shouldCheckUnifiedForm && matchesLogin && strictSignupRegex.test(string)) { this.increaseHybridSignal(strength, signalType); @@ -11024,10 +11061,11 @@ class FormAnalyzer { if (el instanceof HTMLAnchorElement && el.href && el.getAttribute('href') !== '#' || (el.getAttribute('role') || '').toUpperCase() === 'LINK' || el.matches('button[class*=secondary]')) { - // Unless it's a forgotten password link, we don't flip those links let shouldFlip = true; - if (/(forgot(ten)?|reset) (your )?password|password forgotten| with /i.test(string)) { + if (resetPasswordLink.test(string) || // Don't flip forgotten password links + loginProvidersRegex.test(string) // Don't flip login providers links + ) { shouldFlip = false; } @@ -17845,6 +17883,7 @@ const isLikelyASubmitButton = el => { const dataTestId = el.getAttribute('data-test-id') || ''; const contentExcludingLabel = text + ' ' + title + ' ' + value; return (el.getAttribute('type') === 'submit' || // is explicitly set as "submit" + el.getAttribute('name') === 'submit' || // is called "submit" /primary|submit/i.test(el.className) || // has high-signal submit classes /submit/i.test(dataTestId) || SUBMIT_BUTTON_REGEX.test(contentExcludingLabel) || // has high-signal text el.offsetHeight * el.offsetWidth >= 10000 && !/secondary/i.test(el.className) // it's a large element 250x40px diff --git a/dist/autofill.js b/dist/autofill.js index c94ab37ce..66e3376a2 100644 --- a/dist/autofill.js +++ b/dist/autofill.js @@ -6314,8 +6314,6 @@ class Form { /** @type {HTMLInputElement | null} */ - /** @type {boolean | null} */ - /** * @param {HTMLElement} form * @param {HTMLInputElement|HTMLSelectElement} input @@ -6332,14 +6330,9 @@ class Form { _defineProperty(this, "activeInput", void 0); - _defineProperty(this, "isSignup", void 0); - this.form = form; this.matching = matching || (0, _matching.createMatching)(); this.formAnalyzer = new _FormAnalyzer.default(form, input, matching); - this.isLogin = this.formAnalyzer.isLogin; - this.isSignup = this.formAnalyzer.isSignup; - this.isHybrid = this.formAnalyzer.isHybrid; this.device = deviceInterface; /** @type Record<'all' | SupportedMainTypes, Set> */ @@ -6366,6 +6359,24 @@ class Form { for (const entry of entries) { if (!entry.isIntersecting) this.removeTooltip(); } + }); + this.mutObsConfig = { + childList: true, + subtree: true + }; + this.mutObs = new MutationObserver(records => { + const anythingRemoved = records.some(record => record.removedNodes.length > 0); + + if (anythingRemoved) { + // Must check for inputs because a parent may be removed and not show up in record.removedNodes + if ([...this.inputs.all].some(input => !input.isConnected)) { + // If any known input has been removed from the DOM, reanalyze the whole form + window.requestIdleCallback(() => { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + }); + } + } }); // This ensures we fire the handler again if the form is changed this.addListener(form, 'input', () => { @@ -6375,6 +6386,7 @@ class Form { } }); this.categorizeInputs(); + this.mutObs.observe(this.form, this.mutObsConfig); this.logFormInfo(); if (shouldAutoprompt) { @@ -6382,6 +6394,18 @@ class Form { } } + get isLogin() { + return this.formAnalyzer.isLogin; + } + + get isSignup() { + return this.formAnalyzer.isSignup; + } + + get isHybrid() { + return this.formAnalyzer.isHybrid; + } + logFormInfo() { if (!(0, _autofillUtils.shouldLog)()) return; console.log("Form type: %c".concat(this.getFormType()), 'font-weight: bold'); @@ -6613,6 +6637,7 @@ class Form { recategorizeAllInputs() { + this.initialScanComplete = false; this.removeAllDecorations(); this.forgetAllInputs(); this.categorizeInputs(); @@ -6635,6 +6660,7 @@ class Form { destroy() { this.removeAllDecorations(); this.removeTooltip(); + this.mutObs.disconnect(); this.matching.clear(); this.intObs = null; } @@ -6647,6 +6673,8 @@ class Form { } else { this.form.querySelectorAll(selector).forEach(input => this.addInput(input)); } + + this.initialScanComplete = true; } get submitButtons() { @@ -6702,9 +6730,16 @@ class Form { addInput(input) { var _this$device$settings; - // Nothing to do with 1-character fields + if (this.inputs.all.has(input)) return this; // When new inputs are added after the initial scan, reanalyze the whole form + + if (this.initialScanComplete) { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + return this; + } // Nothing to do with 1-character fields + + if (input.maxLength === 1) return this; - if (this.inputs.all.has(input)) return this; this.inputs.all.add(input); const opts = { isLogin: this.isLogin, @@ -7111,6 +7146,8 @@ const loginRegex = new RegExp(/sign(ing)?.?in(?!g)|log.?(i|o)n|log.?out|unsubscr const signupRegex = new RegExp(/sign(ing)?.?up|join|\bregist(er|ration)|newsletter|\bsubscri(be|ption)|contact|create|start|enroll|settings|preferences|profile|update|checkout|guest|purchase|buy|order|schedule|estimate|request|new.?customer|(confirm|retype|repeat) password|password confirm?/i); const conservativeSignupRegex = new RegExp(/sign.?up|join|register|enroll|newsletter|subscri(be|ption)|settings|preferences|profile|update/i); const strictSignupRegex = new RegExp(/sign.?up|join|register|(create|new).+account|enroll|settings|preferences|profile|update/i); +const resetPasswordLink = new RegExp(/(forgot(ten)?|reset|don't remember) (your )?password|password forgotten/i); +const loginProvidersRegex = new RegExp(/ with /i); class FormAnalyzer { /** @type HTMLElement */ @@ -7233,7 +7270,7 @@ class FormAnalyzer { shouldCheckUnifiedForm = false, shouldBeConservative = false } = _ref; - const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string); // Check explicitly for unified login/signup forms + const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string) || resetPasswordLink.test(string); // Check explicitly for unified login/signup forms if (shouldCheckUnifiedForm && matchesLogin && strictSignupRegex.test(string)) { this.increaseHybridSignal(strength, signalType); @@ -7348,10 +7385,11 @@ class FormAnalyzer { if (el instanceof HTMLAnchorElement && el.href && el.getAttribute('href') !== '#' || (el.getAttribute('role') || '').toUpperCase() === 'LINK' || el.matches('button[class*=secondary]')) { - // Unless it's a forgotten password link, we don't flip those links let shouldFlip = true; - if (/(forgot(ten)?|reset) (your )?password|password forgotten| with /i.test(string)) { + if (resetPasswordLink.test(string) || // Don't flip forgotten password links + loginProvidersRegex.test(string) // Don't flip login providers links + ) { shouldFlip = false; } @@ -14169,6 +14207,7 @@ const isLikelyASubmitButton = el => { const dataTestId = el.getAttribute('data-test-id') || ''; const contentExcludingLabel = text + ' ' + title + ' ' + value; return (el.getAttribute('type') === 'submit' || // is explicitly set as "submit" + el.getAttribute('name') === 'submit' || // is called "submit" /primary|submit/i.test(el.className) || // has high-signal submit classes /submit/i.test(dataTestId) || SUBMIT_BUTTON_REGEX.test(contentExcludingLabel) || // has high-signal text el.offsetHeight * el.offsetWidth >= 10000 && !/secondary/i.test(el.className) // it's a large element 250x40px diff --git a/integration-test/helpers/mocks.js b/integration-test/helpers/mocks.js index 354b552b8..afc8b9ce1 100644 --- a/integration-test/helpers/mocks.js +++ b/integration-test/helpers/mocks.js @@ -9,6 +9,7 @@ export const constants = { 'emailAtTopLeft': 'pages/email-at-top-left.html', 'iframeContainer': 'pages/iframe-container.html', 'signup': 'pages/signup.html', + 'mutatingForm': 'pages/mutating-form.html', 'login': 'pages/login.html', 'loginWithPoorForm': 'pages/login-poor-form.html', 'loginWithText': 'pages/login-with-text.html', diff --git a/integration-test/helpers/pages.js b/integration-test/helpers/pages.js index c928afe85..f55b57beb 100644 --- a/integration-test/helpers/pages.js +++ b/integration-test/helpers/pages.js @@ -59,6 +59,26 @@ export function incontextSignupPage (page, { platform } = { platform: 'extension return new IncontextSignupPage() } +export function mutatingFormPage (page) { + class MutatingFormPage { + async navigate () { + await page.goto(constants.pages['mutatingForm']) + } + async toggleLoginOrSignup () { + const toggleBtn = page.locator('#toggle-login-signup') + await toggleBtn.click() + } + passwordFieldShowsKey () { + return loginPage(page).passwordFieldShowsKey() + } + assertPasswordHasNoIcon () { + return signupPage(page).assertPasswordHasNoIcon() + } + } + + return new MutatingFormPage() +} + /** * A wrapper around interactions for `integration-test/pages/signup.html` * @@ -68,6 +88,7 @@ export function signupPage (page) { const decoratedFirstInputSelector = '#email' + constants.fields.email.selectors.identity const decoratedSecondInputSelector = '#email-2' + constants.fields.email.selectors.identity const emailStyleAttr = () => page.locator('#email').first().getAttribute('style') + const passwordStyleAttr = () => page.locator('#password' + constants.fields.password.selectors.credential).getAttribute('style') class SignupPage { async navigate () { @@ -232,7 +253,10 @@ export function signupPage (page) { await expect(input).toHaveValue('') } async assertEmailHasNoDaxIcon () { - expect(await emailStyleAttr()).toBeNull() + expect(await emailStyleAttr()).toBeFalsy() + } + async assertPasswordHasNoIcon () { + expect(await passwordStyleAttr()).toBeFalsy() } } @@ -293,16 +317,24 @@ export function loginPage (page, opts = {}) { const emailStyle = await page.locator('#email').getAttribute('style') expect(emailStyle).toContain(constants.iconMatchers.dax) } - async emailHasDaxPasswordNoIcon () { - await this.emailFieldShowsDax() + async passwordFieldShowsKey () { + // don't make assertions until the element is both found + has a none-empty 'style' attribute + await page.waitForFunction(() => Boolean(document.querySelector('#password')?.getAttribute('style'))) + const emailStyle = await page.locator('#password').getAttribute('style') + expect(emailStyle).toContain(constants.iconMatchers.key) + } + async passwordHasNoIcon () { const passwordStyle = await page.locator('#password').getAttribute('style') expect(passwordStyle || '').not.toContain('data:image/svg+xml;base64,') } + async emailHasDaxPasswordNoIcon () { + await this.emailFieldShowsDax() + await this.passwordHasNoIcon() + } async onlyPasswordFieldHasIcon () { const styles1 = await page.locator('#email').getAttribute('style') - const styles2 = await page.locator('#password').getAttribute('style') expect(styles1 || '').not.toContain('data:image/svg+xml;base64,') - expect(styles2 || '').toContain(constants.iconMatchers.key) + await this.passwordFieldShowsKey() } /** * @param {string} username diff --git a/integration-test/pages/mutating-form.html b/integration-test/pages/mutating-form.html new file mode 100644 index 000000000..cad764bc2 --- /dev/null +++ b/integration-test/pages/mutating-form.html @@ -0,0 +1,161 @@ + + + + + + + Mutating form + + + + + +
+ +

[Home]

+ +

+ +
+
+

Sign up for our services

+
+ + + + + + +
+

+
+
+
+ + + + + diff --git a/integration-test/tests/mutating-form.macos.spec.js b/integration-test/tests/mutating-form.macos.spec.js new file mode 100644 index 000000000..3451cdd37 --- /dev/null +++ b/integration-test/tests/mutating-form.macos.spec.js @@ -0,0 +1,36 @@ +import {createAutofillScript, forwardConsoleMessages} from '../helpers/harness.js' +import {createWebkitMocks, macosContentScopeReplacements} from '../helpers/mocks.webkit.js' +import {mutatingFormPage} from '../helpers/pages.js' +import {test as base} from '@playwright/test' + +/** + * Tests for various auto-fill scenarios on macos + */ +const test = base.extend({}) + +test.describe('Mutating form page', () => { + async function applyScript (page) { + await createAutofillScript() + .replaceAll(macosContentScopeReplacements()) + .platform('macos') + .applyTo(page) + } + + test('works fine on macOS', async ({page}) => { + // enable in-terminal exceptions + await forwardConsoleMessages(page) + await createWebkitMocks().applyTo(page) + + // Load the autofill.js script with replacements + await await applyScript(page) + + const mutatingForm = mutatingFormPage(page) + await mutatingForm.navigate() + + await mutatingForm.passwordFieldShowsKey() + + await mutatingForm.toggleLoginOrSignup() + + await mutatingForm.assertPasswordHasNoIcon() + }) +}) diff --git a/src/Form/Form.js b/src/Form/Form.js index 5c66a0ffb..6cefc81f3 100644 --- a/src/Form/Form.js +++ b/src/Form/Form.js @@ -72,6 +72,23 @@ class Form { } }) + this.mutObsConfig = { childList: true, subtree: true } + this.mutObs = new MutationObserver( + (records) => { + const anythingRemoved = records.some(record => record.removedNodes.length > 0) + if (anythingRemoved) { + // Must check for inputs because a parent may be removed and not show up in record.removedNodes + if ([...this.inputs.all].some(input => !input.isConnected)) { + // If any known input has been removed from the DOM, reanalyze the whole form + window.requestIdleCallback(() => { + this.formAnalyzer = new FormAnalyzer(this.form, input, this.matching) + this.recategorizeAllInputs() + }) + } + } + } + ) + // This ensures we fire the handler again if the form is changed this.addListener(form, 'input', () => { if (!this.isAutofilling) { @@ -81,6 +98,7 @@ class Form { }) this.categorizeInputs() + this.mutObs.observe(this.form, this.mutObsConfig) this.logFormInfo() @@ -300,6 +318,7 @@ class Form { * Resets our input scoring and starts from scratch */ recategorizeAllInputs () { + this.initialScanComplete = false this.removeAllDecorations() this.forgetAllInputs() this.categorizeInputs() @@ -319,6 +338,7 @@ class Form { destroy () { this.removeAllDecorations() this.removeTooltip() + this.mutObs.disconnect() this.matching.clear() this.intObs = null } @@ -330,6 +350,7 @@ class Form { } else { this.form.querySelectorAll(selector).forEach(input => this.addInput(input)) } + this.initialScanComplete = true } get submitButtons () { @@ -383,11 +404,18 @@ class Form { } addInput (input) { + if (this.inputs.all.has(input)) return this + + // When new inputs are added after the initial scan, reanalyze the whole form + if (this.initialScanComplete) { + this.formAnalyzer = new FormAnalyzer(this.form, input, this.matching) + this.recategorizeAllInputs() + return this + } + // Nothing to do with 1-character fields if (input.maxLength === 1) return this - if (this.inputs.all.has(input)) return this - this.inputs.all.add(input) const opts = { diff --git a/swift-package/Resources/assets/autofill-debug.js b/swift-package/Resources/assets/autofill-debug.js index 11b484cfe..ef967f0d4 100644 --- a/swift-package/Resources/assets/autofill-debug.js +++ b/swift-package/Resources/assets/autofill-debug.js @@ -9990,8 +9990,6 @@ class Form { /** @type {HTMLInputElement | null} */ - /** @type {boolean | null} */ - /** * @param {HTMLElement} form * @param {HTMLInputElement|HTMLSelectElement} input @@ -10008,14 +10006,9 @@ class Form { _defineProperty(this, "activeInput", void 0); - _defineProperty(this, "isSignup", void 0); - this.form = form; this.matching = matching || (0, _matching.createMatching)(); this.formAnalyzer = new _FormAnalyzer.default(form, input, matching); - this.isLogin = this.formAnalyzer.isLogin; - this.isSignup = this.formAnalyzer.isSignup; - this.isHybrid = this.formAnalyzer.isHybrid; this.device = deviceInterface; /** @type Record<'all' | SupportedMainTypes, Set> */ @@ -10042,6 +10035,24 @@ class Form { for (const entry of entries) { if (!entry.isIntersecting) this.removeTooltip(); } + }); + this.mutObsConfig = { + childList: true, + subtree: true + }; + this.mutObs = new MutationObserver(records => { + const anythingRemoved = records.some(record => record.removedNodes.length > 0); + + if (anythingRemoved) { + // Must check for inputs because a parent may be removed and not show up in record.removedNodes + if ([...this.inputs.all].some(input => !input.isConnected)) { + // If any known input has been removed from the DOM, reanalyze the whole form + window.requestIdleCallback(() => { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + }); + } + } }); // This ensures we fire the handler again if the form is changed this.addListener(form, 'input', () => { @@ -10051,6 +10062,7 @@ class Form { } }); this.categorizeInputs(); + this.mutObs.observe(this.form, this.mutObsConfig); this.logFormInfo(); if (shouldAutoprompt) { @@ -10058,6 +10070,18 @@ class Form { } } + get isLogin() { + return this.formAnalyzer.isLogin; + } + + get isSignup() { + return this.formAnalyzer.isSignup; + } + + get isHybrid() { + return this.formAnalyzer.isHybrid; + } + logFormInfo() { if (!(0, _autofillUtils.shouldLog)()) return; console.log("Form type: %c".concat(this.getFormType()), 'font-weight: bold'); @@ -10289,6 +10313,7 @@ class Form { recategorizeAllInputs() { + this.initialScanComplete = false; this.removeAllDecorations(); this.forgetAllInputs(); this.categorizeInputs(); @@ -10311,6 +10336,7 @@ class Form { destroy() { this.removeAllDecorations(); this.removeTooltip(); + this.mutObs.disconnect(); this.matching.clear(); this.intObs = null; } @@ -10323,6 +10349,8 @@ class Form { } else { this.form.querySelectorAll(selector).forEach(input => this.addInput(input)); } + + this.initialScanComplete = true; } get submitButtons() { @@ -10378,9 +10406,16 @@ class Form { addInput(input) { var _this$device$settings; - // Nothing to do with 1-character fields + if (this.inputs.all.has(input)) return this; // When new inputs are added after the initial scan, reanalyze the whole form + + if (this.initialScanComplete) { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + return this; + } // Nothing to do with 1-character fields + + if (input.maxLength === 1) return this; - if (this.inputs.all.has(input)) return this; this.inputs.all.add(input); const opts = { isLogin: this.isLogin, @@ -10787,6 +10822,8 @@ const loginRegex = new RegExp(/sign(ing)?.?in(?!g)|log.?(i|o)n|log.?out|unsubscr const signupRegex = new RegExp(/sign(ing)?.?up|join|\bregist(er|ration)|newsletter|\bsubscri(be|ption)|contact|create|start|enroll|settings|preferences|profile|update|checkout|guest|purchase|buy|order|schedule|estimate|request|new.?customer|(confirm|retype|repeat) password|password confirm?/i); const conservativeSignupRegex = new RegExp(/sign.?up|join|register|enroll|newsletter|subscri(be|ption)|settings|preferences|profile|update/i); const strictSignupRegex = new RegExp(/sign.?up|join|register|(create|new).+account|enroll|settings|preferences|profile|update/i); +const resetPasswordLink = new RegExp(/(forgot(ten)?|reset|don't remember) (your )?password|password forgotten/i); +const loginProvidersRegex = new RegExp(/ with /i); class FormAnalyzer { /** @type HTMLElement */ @@ -10909,7 +10946,7 @@ class FormAnalyzer { shouldCheckUnifiedForm = false, shouldBeConservative = false } = _ref; - const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string); // Check explicitly for unified login/signup forms + const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string) || resetPasswordLink.test(string); // Check explicitly for unified login/signup forms if (shouldCheckUnifiedForm && matchesLogin && strictSignupRegex.test(string)) { this.increaseHybridSignal(strength, signalType); @@ -11024,10 +11061,11 @@ class FormAnalyzer { if (el instanceof HTMLAnchorElement && el.href && el.getAttribute('href') !== '#' || (el.getAttribute('role') || '').toUpperCase() === 'LINK' || el.matches('button[class*=secondary]')) { - // Unless it's a forgotten password link, we don't flip those links let shouldFlip = true; - if (/(forgot(ten)?|reset) (your )?password|password forgotten| with /i.test(string)) { + if (resetPasswordLink.test(string) || // Don't flip forgotten password links + loginProvidersRegex.test(string) // Don't flip login providers links + ) { shouldFlip = false; } @@ -17845,6 +17883,7 @@ const isLikelyASubmitButton = el => { const dataTestId = el.getAttribute('data-test-id') || ''; const contentExcludingLabel = text + ' ' + title + ' ' + value; return (el.getAttribute('type') === 'submit' || // is explicitly set as "submit" + el.getAttribute('name') === 'submit' || // is called "submit" /primary|submit/i.test(el.className) || // has high-signal submit classes /submit/i.test(dataTestId) || SUBMIT_BUTTON_REGEX.test(contentExcludingLabel) || // has high-signal text el.offsetHeight * el.offsetWidth >= 10000 && !/secondary/i.test(el.className) // it's a large element 250x40px diff --git a/swift-package/Resources/assets/autofill.js b/swift-package/Resources/assets/autofill.js index c94ab37ce..66e3376a2 100644 --- a/swift-package/Resources/assets/autofill.js +++ b/swift-package/Resources/assets/autofill.js @@ -6314,8 +6314,6 @@ class Form { /** @type {HTMLInputElement | null} */ - /** @type {boolean | null} */ - /** * @param {HTMLElement} form * @param {HTMLInputElement|HTMLSelectElement} input @@ -6332,14 +6330,9 @@ class Form { _defineProperty(this, "activeInput", void 0); - _defineProperty(this, "isSignup", void 0); - this.form = form; this.matching = matching || (0, _matching.createMatching)(); this.formAnalyzer = new _FormAnalyzer.default(form, input, matching); - this.isLogin = this.formAnalyzer.isLogin; - this.isSignup = this.formAnalyzer.isSignup; - this.isHybrid = this.formAnalyzer.isHybrid; this.device = deviceInterface; /** @type Record<'all' | SupportedMainTypes, Set> */ @@ -6366,6 +6359,24 @@ class Form { for (const entry of entries) { if (!entry.isIntersecting) this.removeTooltip(); } + }); + this.mutObsConfig = { + childList: true, + subtree: true + }; + this.mutObs = new MutationObserver(records => { + const anythingRemoved = records.some(record => record.removedNodes.length > 0); + + if (anythingRemoved) { + // Must check for inputs because a parent may be removed and not show up in record.removedNodes + if ([...this.inputs.all].some(input => !input.isConnected)) { + // If any known input has been removed from the DOM, reanalyze the whole form + window.requestIdleCallback(() => { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + }); + } + } }); // This ensures we fire the handler again if the form is changed this.addListener(form, 'input', () => { @@ -6375,6 +6386,7 @@ class Form { } }); this.categorizeInputs(); + this.mutObs.observe(this.form, this.mutObsConfig); this.logFormInfo(); if (shouldAutoprompt) { @@ -6382,6 +6394,18 @@ class Form { } } + get isLogin() { + return this.formAnalyzer.isLogin; + } + + get isSignup() { + return this.formAnalyzer.isSignup; + } + + get isHybrid() { + return this.formAnalyzer.isHybrid; + } + logFormInfo() { if (!(0, _autofillUtils.shouldLog)()) return; console.log("Form type: %c".concat(this.getFormType()), 'font-weight: bold'); @@ -6613,6 +6637,7 @@ class Form { recategorizeAllInputs() { + this.initialScanComplete = false; this.removeAllDecorations(); this.forgetAllInputs(); this.categorizeInputs(); @@ -6635,6 +6660,7 @@ class Form { destroy() { this.removeAllDecorations(); this.removeTooltip(); + this.mutObs.disconnect(); this.matching.clear(); this.intObs = null; } @@ -6647,6 +6673,8 @@ class Form { } else { this.form.querySelectorAll(selector).forEach(input => this.addInput(input)); } + + this.initialScanComplete = true; } get submitButtons() { @@ -6702,9 +6730,16 @@ class Form { addInput(input) { var _this$device$settings; - // Nothing to do with 1-character fields + if (this.inputs.all.has(input)) return this; // When new inputs are added after the initial scan, reanalyze the whole form + + if (this.initialScanComplete) { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + return this; + } // Nothing to do with 1-character fields + + if (input.maxLength === 1) return this; - if (this.inputs.all.has(input)) return this; this.inputs.all.add(input); const opts = { isLogin: this.isLogin, @@ -7111,6 +7146,8 @@ const loginRegex = new RegExp(/sign(ing)?.?in(?!g)|log.?(i|o)n|log.?out|unsubscr const signupRegex = new RegExp(/sign(ing)?.?up|join|\bregist(er|ration)|newsletter|\bsubscri(be|ption)|contact|create|start|enroll|settings|preferences|profile|update|checkout|guest|purchase|buy|order|schedule|estimate|request|new.?customer|(confirm|retype|repeat) password|password confirm?/i); const conservativeSignupRegex = new RegExp(/sign.?up|join|register|enroll|newsletter|subscri(be|ption)|settings|preferences|profile|update/i); const strictSignupRegex = new RegExp(/sign.?up|join|register|(create|new).+account|enroll|settings|preferences|profile|update/i); +const resetPasswordLink = new RegExp(/(forgot(ten)?|reset|don't remember) (your )?password|password forgotten/i); +const loginProvidersRegex = new RegExp(/ with /i); class FormAnalyzer { /** @type HTMLElement */ @@ -7233,7 +7270,7 @@ class FormAnalyzer { shouldCheckUnifiedForm = false, shouldBeConservative = false } = _ref; - const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string); // Check explicitly for unified login/signup forms + const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string) || resetPasswordLink.test(string); // Check explicitly for unified login/signup forms if (shouldCheckUnifiedForm && matchesLogin && strictSignupRegex.test(string)) { this.increaseHybridSignal(strength, signalType); @@ -7348,10 +7385,11 @@ class FormAnalyzer { if (el instanceof HTMLAnchorElement && el.href && el.getAttribute('href') !== '#' || (el.getAttribute('role') || '').toUpperCase() === 'LINK' || el.matches('button[class*=secondary]')) { - // Unless it's a forgotten password link, we don't flip those links let shouldFlip = true; - if (/(forgot(ten)?|reset) (your )?password|password forgotten| with /i.test(string)) { + if (resetPasswordLink.test(string) || // Don't flip forgotten password links + loginProvidersRegex.test(string) // Don't flip login providers links + ) { shouldFlip = false; } @@ -14169,6 +14207,7 @@ const isLikelyASubmitButton = el => { const dataTestId = el.getAttribute('data-test-id') || ''; const contentExcludingLabel = text + ' ' + title + ' ' + value; return (el.getAttribute('type') === 'submit' || // is explicitly set as "submit" + el.getAttribute('name') === 'submit' || // is called "submit" /primary|submit/i.test(el.className) || // has high-signal submit classes /submit/i.test(dataTestId) || SUBMIT_BUTTON_REGEX.test(contentExcludingLabel) || // has high-signal text el.offsetHeight * el.offsetWidth >= 10000 && !/secondary/i.test(el.className) // it's a large element 250x40px From 55f09109a14fd38cbc18ffb35f5e72d5d1afd354 Mon Sep 17 00:00:00 2001 From: Emanuele Feliziani Date: Fri, 21 Jul 2023 12:05:16 +0200 Subject: [PATCH 4/6] Add performance safeguards Signed-off-by: Emanuele Feliziani --- dist/autofill-debug.js | 126 +++++++++++++++--- dist/autofill.js | 126 +++++++++++++++--- integration-test/helpers/pages.js | 2 +- src/Form/Form.js | 30 ++++- src/Form/Form.test.js | 41 ++++++ src/Scanner.js | 25 +++- src/Scanner.test.js | 19 ++- src/__snapshots__/Scanner.test.js.snap | 124 +++++++++++++++++ src/constants.js | 6 +- .../Resources/assets/autofill-debug.js | 126 +++++++++++++++--- swift-package/Resources/assets/autofill.js | 126 +++++++++++++++--- 11 files changed, 657 insertions(+), 94 deletions(-) diff --git a/dist/autofill-debug.js b/dist/autofill-debug.js index 4f2429514..a33be6fe9 100644 --- a/dist/autofill-debug.js +++ b/dist/autofill-debug.js @@ -10084,7 +10084,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope const { ATTR_AUTOFILL, - ATTR_INPUT_TYPE + ATTR_INPUT_TYPE, + MAX_FORM_MUT_OBS_COUNT, + MAX_INPUTS_PER_FORM } = _constants.constants; class Form { @@ -10094,8 +10096,6 @@ class Form { /** @type {HTMLInputElement | null} */ - /** @type {boolean | null} */ - /** * @param {HTMLElement} form * @param {HTMLInputElement|HTMLSelectElement} input @@ -10112,14 +10112,9 @@ class Form { _defineProperty(this, "activeInput", void 0); - _defineProperty(this, "isSignup", void 0); - this.form = form; this.matching = matching || (0, _matching.createMatching)(); this.formAnalyzer = new _FormAnalyzer.default(form, input, matching); - this.isLogin = this.formAnalyzer.isLogin; - this.isSignup = this.formAnalyzer.isSignup; - this.isHybrid = this.formAnalyzer.isHybrid; this.device = deviceInterface; /** @type Record<'all' | SupportedMainTypes, Set> */ @@ -10146,6 +10141,30 @@ class Form { for (const entry of entries) { if (!entry.isIntersecting) this.removeTooltip(); } + }); + this.mutObsCount = 0; + this.mutObsConfig = { + childList: true, + subtree: true + }; + this.mutObs = new MutationObserver(records => { + const anythingRemoved = records.some(record => record.removedNodes.length > 0); + + if (anythingRemoved) { + // Must check for inputs because a parent may be removed and not show up in record.removedNodes + if ([...this.inputs.all].some(input => !input.isConnected)) { + // If any known input has been removed from the DOM, reanalyze the whole form + window.requestIdleCallback(() => { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + }); + this.mutObsCount++; // If the form mutates too much, disconnect to avoid performance issues + + if (this.mutObsCount >= MAX_FORM_MUT_OBS_COUNT) { + this.mutObs.disconnect(); + } + } + } }); // This ensures we fire the handler again if the form is changed this.addListener(form, 'input', () => { @@ -10155,6 +10174,7 @@ class Form { } }); this.categorizeInputs(); + this.mutObs.observe(this.form, this.mutObsConfig); this.logFormInfo(); if (shouldAutoprompt) { @@ -10162,6 +10182,18 @@ class Form { } } + get isLogin() { + return this.formAnalyzer.isLogin; + } + + get isSignup() { + return this.formAnalyzer.isSignup; + } + + get isHybrid() { + return this.formAnalyzer.isHybrid; + } + logFormInfo() { if (!(0, _autofillUtils.shouldLog)()) return; console.log("Form type: %c".concat(this.getFormType()), 'font-weight: bold'); @@ -10353,6 +10385,7 @@ class Form { (0, _autofillUtils.removeInlineStyles)(input, (0, _inputStyles.getIconStylesBase)(input, this)); (0, _autofillUtils.removeInlineStyles)(input, (0, _inputStyles.getIconStylesAlternate)(input, this)); input.removeAttribute(ATTR_AUTOFILL); + input.removeAttribute(ATTR_INPUT_TYPE); } removeAllDecorations() { @@ -10383,6 +10416,7 @@ class Form { forgetAllInputs() { this.execOnInputs(input => { + input.removeAttribute(ATTR_AUTOFILL); input.removeAttribute(ATTR_INPUT_TYPE); }); Object.values(this.inputs).forEach(inputSet => inputSet.clear()); @@ -10393,6 +10427,7 @@ class Form { recategorizeAllInputs() { + this.initialScanComplete = false; this.removeAllDecorations(); this.forgetAllInputs(); this.categorizeInputs(); @@ -10415,6 +10450,7 @@ class Form { destroy() { this.removeAllDecorations(); this.removeTooltip(); + this.mutObs.disconnect(); this.matching.clear(); this.intObs = null; } @@ -10425,8 +10461,16 @@ class Form { if (this.form.matches(selector)) { this.addInput(this.form); } else { - this.form.querySelectorAll(selector).forEach(input => this.addInput(input)); + const foundInputs = this.form.querySelectorAll(selector); + + if (foundInputs.length < MAX_INPUTS_PER_FORM) { + foundInputs.forEach(input => this.addInput(input)); + } else { + console.log('The form has too many inputs, bailing.'); + } } + + this.initialScanComplete = true; } get submitButtons() { @@ -10482,9 +10526,23 @@ class Form { addInput(input) { var _this$device$settings; - // Nothing to do with 1-character fields + if (this.inputs.all.has(input)) return this; // If the form has too many inputs, destroy everything to avoid performance issues + + if (this.inputs.all.size > MAX_INPUTS_PER_FORM) { + console.log('The form has too many inputs, destroying.'); + this.destroy(); + return this; + } // When new inputs are added after the initial scan, reanalyze the whole form + + + if (this.initialScanComplete) { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + return this; + } // Nothing to do with 1-character fields + + if (input.maxLength === 1) return this; - if (this.inputs.all.has(input)) return this; this.inputs.all.add(input); const opts = { isLogin: this.isLogin, @@ -10891,6 +10949,8 @@ const loginRegex = new RegExp(/sign(ing)?.?in(?!g)|log.?(i|o)n|log.?out|unsubscr const signupRegex = new RegExp(/sign(ing)?.?up|join|\bregist(er|ration)|newsletter|\bsubscri(be|ption)|contact|create|start|enroll|settings|preferences|profile|update|checkout|guest|purchase|buy|order|schedule|estimate|request|new.?customer|(confirm|retype|repeat) password|password confirm?/i); const conservativeSignupRegex = new RegExp(/sign.?up|join|register|enroll|newsletter|subscri(be|ption)|settings|preferences|profile|update/i); const strictSignupRegex = new RegExp(/sign.?up|join|register|(create|new).+account|enroll|settings|preferences|profile|update/i); +const resetPasswordLink = new RegExp(/(forgot(ten)?|reset|don't remember) (your )?password|password forgotten/i); +const loginProvidersRegex = new RegExp(/ with /i); class FormAnalyzer { /** @type HTMLElement */ @@ -11013,7 +11073,7 @@ class FormAnalyzer { shouldCheckUnifiedForm = false, shouldBeConservative = false } = _ref; - const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string); // Check explicitly for unified login/signup forms + const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string) || resetPasswordLink.test(string); // Check explicitly for unified login/signup forms if (shouldCheckUnifiedForm && matchesLogin && strictSignupRegex.test(string)) { this.increaseHybridSignal(strength, signalType); @@ -11128,10 +11188,11 @@ class FormAnalyzer { if (el instanceof HTMLAnchorElement && el.href && el.getAttribute('href') !== '#' || (el.getAttribute('role') || '').toUpperCase() === 'LINK' || el.matches('button[class*=secondary]')) { - // Unless it's a forgotten password link, we don't flip those links let shouldFlip = true; - if (/(forgot(ten)?|reset) (your )?password|password forgotten| with /i.test(string)) { + if (resetPasswordLink.test(string) || // Don't flip forgotten password links + loginProvidersRegex.test(string) // Don't flip login providers links + ) { shouldFlip = false; } @@ -15102,29 +15163,40 @@ var _Form = require("./Form/Form.js"); var _selectorsCss = require("./Form/selectors-css.js"); +var _constants = require("./constants.js"); + var _matching = require("./Form/matching.js"); var _autofillUtils = require("./autofill-utils.js"); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +const { + MAX_INPUTS_PER_PAGE, + MAX_FORMS_PER_PAGE, + MAX_INPUTS_PER_FORM +} = _constants.constants; /** * @typedef {{ * forms: Map; * init(): ()=> void; * enqueue(elements: (HTMLElement|Document)[]): void; * findEligibleInputs(context): Scanner; + * options: ScannerOptions; * }} Scanner * * @typedef {{ * initialDelay: number, * bufferSize: number, * debounceTimePeriod: number, - * maxInputsOnPage: number, + * maxInputsPerPage: number, + * maxFormsPerPage: number, + * maxInputsPerForm: number * }} ScannerOptions */ /** @type {ScannerOptions} */ + const defaultScannerOptions = { // This buffer size is very large because it's an unexpected edge-case that // a DOM will be continually modified over and over without ever stopping. If we do see 1000 unique @@ -15137,7 +15209,9 @@ const defaultScannerOptions = { // How many inputs is too many on the page. If we detect that there's above // this maximum, then we don't scan the page. This will prevent slowdowns on // large pages which are unlikely to require autofill anyway. - maxInputsOnPage: 100 + maxInputsPerPage: MAX_INPUTS_PER_PAGE, + maxFormsPerPage: MAX_FORMS_PER_PAGE, + maxInputsPerForm: MAX_INPUTS_PER_FORM }; /** * This allows: @@ -15283,7 +15357,7 @@ class DefaultScanner { } else { const inputs = context.querySelectorAll(_selectorsCss.FORM_INPUTS_SELECTOR); - if (inputs.length > this.options.maxInputsOnPage) { + if (inputs.length > this.options.maxInputsPerPage) { return this; } @@ -15360,9 +15434,14 @@ class DefaultScanner { (_this$forms$get2 = this.forms.get(childForm)) === null || _this$forms$get2 === void 0 ? void 0 : _this$forms$get2.destroy(); this.forms.delete(childForm); - } + } // Only add the form if below the limit of forms per page + - this.forms.set(parentForm, new _Form.Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)); + if (this.forms.size < this.options.maxFormsPerPage) { + this.forms.set(parentForm, new _Form.Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)); + } else { + console.log('The page has too many forms, stop adding them.'); + } } } /** @@ -15430,7 +15509,7 @@ function createScanner(device, scannerOptions) { }); } -},{"./Form/Form.js":33,"./Form/matching.js":43,"./Form/selectors-css.js":44,"./autofill-utils.js":63}],52:[function(require,module,exports){ +},{"./Form/Form.js":33,"./Form/matching.js":43,"./Form/selectors-css.js":44,"./autofill-utils.js":63,"./constants.js":66}],52:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { @@ -17948,6 +18027,7 @@ const isLikelyASubmitButton = el => { const dataTestId = el.getAttribute('data-test-id') || ''; const contentExcludingLabel = text + ' ' + title + ' ' + value; return (el.getAttribute('type') === 'submit' || // is explicitly set as "submit" + el.getAttribute('name') === 'submit' || // is called "submit" /primary|submit/i.test(el.className) || // has high-signal submit classes /submit/i.test(dataTestId) || SUBMIT_BUTTON_REGEX.test(contentExcludingLabel) || // has high-signal text el.offsetHeight * el.offsetWidth >= 10000 && !/secondary/i.test(el.className) // it's a large element 250x40px @@ -18246,7 +18326,11 @@ exports.constants = void 0; const constants = { ATTR_INPUT_TYPE: 'data-ddg-inputType', ATTR_AUTOFILL: 'data-ddg-autofill', - TEXT_LENGTH_CUTOFF: 50 + TEXT_LENGTH_CUTOFF: 50, + MAX_INPUTS_PER_PAGE: 100, + MAX_FORMS_PER_PAGE: 30, + MAX_INPUTS_PER_FORM: 80, + MAX_FORM_MUT_OBS_COUNT: 50 }; exports.constants = constants; diff --git a/dist/autofill.js b/dist/autofill.js index 04a70fc9a..628a7c963 100644 --- a/dist/autofill.js +++ b/dist/autofill.js @@ -6408,7 +6408,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope const { ATTR_AUTOFILL, - ATTR_INPUT_TYPE + ATTR_INPUT_TYPE, + MAX_FORM_MUT_OBS_COUNT, + MAX_INPUTS_PER_FORM } = _constants.constants; class Form { @@ -6418,8 +6420,6 @@ class Form { /** @type {HTMLInputElement | null} */ - /** @type {boolean | null} */ - /** * @param {HTMLElement} form * @param {HTMLInputElement|HTMLSelectElement} input @@ -6436,14 +6436,9 @@ class Form { _defineProperty(this, "activeInput", void 0); - _defineProperty(this, "isSignup", void 0); - this.form = form; this.matching = matching || (0, _matching.createMatching)(); this.formAnalyzer = new _FormAnalyzer.default(form, input, matching); - this.isLogin = this.formAnalyzer.isLogin; - this.isSignup = this.formAnalyzer.isSignup; - this.isHybrid = this.formAnalyzer.isHybrid; this.device = deviceInterface; /** @type Record<'all' | SupportedMainTypes, Set> */ @@ -6470,6 +6465,30 @@ class Form { for (const entry of entries) { if (!entry.isIntersecting) this.removeTooltip(); } + }); + this.mutObsCount = 0; + this.mutObsConfig = { + childList: true, + subtree: true + }; + this.mutObs = new MutationObserver(records => { + const anythingRemoved = records.some(record => record.removedNodes.length > 0); + + if (anythingRemoved) { + // Must check for inputs because a parent may be removed and not show up in record.removedNodes + if ([...this.inputs.all].some(input => !input.isConnected)) { + // If any known input has been removed from the DOM, reanalyze the whole form + window.requestIdleCallback(() => { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + }); + this.mutObsCount++; // If the form mutates too much, disconnect to avoid performance issues + + if (this.mutObsCount >= MAX_FORM_MUT_OBS_COUNT) { + this.mutObs.disconnect(); + } + } + } }); // This ensures we fire the handler again if the form is changed this.addListener(form, 'input', () => { @@ -6479,6 +6498,7 @@ class Form { } }); this.categorizeInputs(); + this.mutObs.observe(this.form, this.mutObsConfig); this.logFormInfo(); if (shouldAutoprompt) { @@ -6486,6 +6506,18 @@ class Form { } } + get isLogin() { + return this.formAnalyzer.isLogin; + } + + get isSignup() { + return this.formAnalyzer.isSignup; + } + + get isHybrid() { + return this.formAnalyzer.isHybrid; + } + logFormInfo() { if (!(0, _autofillUtils.shouldLog)()) return; console.log("Form type: %c".concat(this.getFormType()), 'font-weight: bold'); @@ -6677,6 +6709,7 @@ class Form { (0, _autofillUtils.removeInlineStyles)(input, (0, _inputStyles.getIconStylesBase)(input, this)); (0, _autofillUtils.removeInlineStyles)(input, (0, _inputStyles.getIconStylesAlternate)(input, this)); input.removeAttribute(ATTR_AUTOFILL); + input.removeAttribute(ATTR_INPUT_TYPE); } removeAllDecorations() { @@ -6707,6 +6740,7 @@ class Form { forgetAllInputs() { this.execOnInputs(input => { + input.removeAttribute(ATTR_AUTOFILL); input.removeAttribute(ATTR_INPUT_TYPE); }); Object.values(this.inputs).forEach(inputSet => inputSet.clear()); @@ -6717,6 +6751,7 @@ class Form { recategorizeAllInputs() { + this.initialScanComplete = false; this.removeAllDecorations(); this.forgetAllInputs(); this.categorizeInputs(); @@ -6739,6 +6774,7 @@ class Form { destroy() { this.removeAllDecorations(); this.removeTooltip(); + this.mutObs.disconnect(); this.matching.clear(); this.intObs = null; } @@ -6749,8 +6785,16 @@ class Form { if (this.form.matches(selector)) { this.addInput(this.form); } else { - this.form.querySelectorAll(selector).forEach(input => this.addInput(input)); + const foundInputs = this.form.querySelectorAll(selector); + + if (foundInputs.length < MAX_INPUTS_PER_FORM) { + foundInputs.forEach(input => this.addInput(input)); + } else { + console.log('The form has too many inputs, bailing.'); + } } + + this.initialScanComplete = true; } get submitButtons() { @@ -6806,9 +6850,23 @@ class Form { addInput(input) { var _this$device$settings; - // Nothing to do with 1-character fields + if (this.inputs.all.has(input)) return this; // If the form has too many inputs, destroy everything to avoid performance issues + + if (this.inputs.all.size > MAX_INPUTS_PER_FORM) { + console.log('The form has too many inputs, destroying.'); + this.destroy(); + return this; + } // When new inputs are added after the initial scan, reanalyze the whole form + + + if (this.initialScanComplete) { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + return this; + } // Nothing to do with 1-character fields + + if (input.maxLength === 1) return this; - if (this.inputs.all.has(input)) return this; this.inputs.all.add(input); const opts = { isLogin: this.isLogin, @@ -7215,6 +7273,8 @@ const loginRegex = new RegExp(/sign(ing)?.?in(?!g)|log.?(i|o)n|log.?out|unsubscr const signupRegex = new RegExp(/sign(ing)?.?up|join|\bregist(er|ration)|newsletter|\bsubscri(be|ption)|contact|create|start|enroll|settings|preferences|profile|update|checkout|guest|purchase|buy|order|schedule|estimate|request|new.?customer|(confirm|retype|repeat) password|password confirm?/i); const conservativeSignupRegex = new RegExp(/sign.?up|join|register|enroll|newsletter|subscri(be|ption)|settings|preferences|profile|update/i); const strictSignupRegex = new RegExp(/sign.?up|join|register|(create|new).+account|enroll|settings|preferences|profile|update/i); +const resetPasswordLink = new RegExp(/(forgot(ten)?|reset|don't remember) (your )?password|password forgotten/i); +const loginProvidersRegex = new RegExp(/ with /i); class FormAnalyzer { /** @type HTMLElement */ @@ -7337,7 +7397,7 @@ class FormAnalyzer { shouldCheckUnifiedForm = false, shouldBeConservative = false } = _ref; - const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string); // Check explicitly for unified login/signup forms + const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string) || resetPasswordLink.test(string); // Check explicitly for unified login/signup forms if (shouldCheckUnifiedForm && matchesLogin && strictSignupRegex.test(string)) { this.increaseHybridSignal(strength, signalType); @@ -7452,10 +7512,11 @@ class FormAnalyzer { if (el instanceof HTMLAnchorElement && el.href && el.getAttribute('href') !== '#' || (el.getAttribute('role') || '').toUpperCase() === 'LINK' || el.matches('button[class*=secondary]')) { - // Unless it's a forgotten password link, we don't flip those links let shouldFlip = true; - if (/(forgot(ten)?|reset) (your )?password|password forgotten| with /i.test(string)) { + if (resetPasswordLink.test(string) || // Don't flip forgotten password links + loginProvidersRegex.test(string) // Don't flip login providers links + ) { shouldFlip = false; } @@ -11426,29 +11487,40 @@ var _Form = require("./Form/Form.js"); var _selectorsCss = require("./Form/selectors-css.js"); +var _constants = require("./constants.js"); + var _matching = require("./Form/matching.js"); var _autofillUtils = require("./autofill-utils.js"); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +const { + MAX_INPUTS_PER_PAGE, + MAX_FORMS_PER_PAGE, + MAX_INPUTS_PER_FORM +} = _constants.constants; /** * @typedef {{ * forms: Map; * init(): ()=> void; * enqueue(elements: (HTMLElement|Document)[]): void; * findEligibleInputs(context): Scanner; + * options: ScannerOptions; * }} Scanner * * @typedef {{ * initialDelay: number, * bufferSize: number, * debounceTimePeriod: number, - * maxInputsOnPage: number, + * maxInputsPerPage: number, + * maxFormsPerPage: number, + * maxInputsPerForm: number * }} ScannerOptions */ /** @type {ScannerOptions} */ + const defaultScannerOptions = { // This buffer size is very large because it's an unexpected edge-case that // a DOM will be continually modified over and over without ever stopping. If we do see 1000 unique @@ -11461,7 +11533,9 @@ const defaultScannerOptions = { // How many inputs is too many on the page. If we detect that there's above // this maximum, then we don't scan the page. This will prevent slowdowns on // large pages which are unlikely to require autofill anyway. - maxInputsOnPage: 100 + maxInputsPerPage: MAX_INPUTS_PER_PAGE, + maxFormsPerPage: MAX_FORMS_PER_PAGE, + maxInputsPerForm: MAX_INPUTS_PER_FORM }; /** * This allows: @@ -11607,7 +11681,7 @@ class DefaultScanner { } else { const inputs = context.querySelectorAll(_selectorsCss.FORM_INPUTS_SELECTOR); - if (inputs.length > this.options.maxInputsOnPage) { + if (inputs.length > this.options.maxInputsPerPage) { return this; } @@ -11684,9 +11758,14 @@ class DefaultScanner { (_this$forms$get2 = this.forms.get(childForm)) === null || _this$forms$get2 === void 0 ? void 0 : _this$forms$get2.destroy(); this.forms.delete(childForm); - } + } // Only add the form if below the limit of forms per page + - this.forms.set(parentForm, new _Form.Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)); + if (this.forms.size < this.options.maxFormsPerPage) { + this.forms.set(parentForm, new _Form.Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)); + } else { + console.log('The page has too many forms, stop adding them.'); + } } } /** @@ -11754,7 +11833,7 @@ function createScanner(device, scannerOptions) { }); } -},{"./Form/Form.js":25,"./Form/matching.js":35,"./Form/selectors-css.js":36,"./autofill-utils.js":55}],44:[function(require,module,exports){ +},{"./Form/Form.js":25,"./Form/matching.js":35,"./Form/selectors-css.js":36,"./autofill-utils.js":55,"./constants.js":58}],44:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { @@ -14272,6 +14351,7 @@ const isLikelyASubmitButton = el => { const dataTestId = el.getAttribute('data-test-id') || ''; const contentExcludingLabel = text + ' ' + title + ' ' + value; return (el.getAttribute('type') === 'submit' || // is explicitly set as "submit" + el.getAttribute('name') === 'submit' || // is called "submit" /primary|submit/i.test(el.className) || // has high-signal submit classes /submit/i.test(dataTestId) || SUBMIT_BUTTON_REGEX.test(contentExcludingLabel) || // has high-signal text el.offsetHeight * el.offsetWidth >= 10000 && !/secondary/i.test(el.className) // it's a large element 250x40px @@ -14570,7 +14650,11 @@ exports.constants = void 0; const constants = { ATTR_INPUT_TYPE: 'data-ddg-inputType', ATTR_AUTOFILL: 'data-ddg-autofill', - TEXT_LENGTH_CUTOFF: 50 + TEXT_LENGTH_CUTOFF: 50, + MAX_INPUTS_PER_PAGE: 100, + MAX_FORMS_PER_PAGE: 30, + MAX_INPUTS_PER_FORM: 80, + MAX_FORM_MUT_OBS_COUNT: 50 }; exports.constants = constants; diff --git a/integration-test/helpers/pages.js b/integration-test/helpers/pages.js index 884f71bb1..c1235422c 100644 --- a/integration-test/helpers/pages.js +++ b/integration-test/helpers/pages.js @@ -678,7 +678,7 @@ export function emailAutofillPage (page) { expect(input).toHaveAttribute(ATTR_AUTOFILL, 'true') } async assertDaxIconIsHidden ({ checking = 'autofill' } = {}) { - const input = await page.locator(selectors.identity) + const input = await page.getByLabel('Email') if (checking === 'style') { const style = await input.getAttribute('style') expect(style).toBeFalsy() diff --git a/src/Form/Form.js b/src/Form/Form.js index 6cefc81f3..3e9eed099 100644 --- a/src/Form/Form.js +++ b/src/Form/Form.js @@ -23,7 +23,12 @@ import { } from './formatters.js' import {constants} from '../constants.js' -const {ATTR_AUTOFILL, ATTR_INPUT_TYPE} = constants +const { + ATTR_AUTOFILL, + ATTR_INPUT_TYPE, + MAX_FORM_MUT_OBS_COUNT, + MAX_INPUTS_PER_FORM +} = constants class Form { /** @type {import("../Form/matching").Matching} */ @@ -72,6 +77,7 @@ class Form { } }) + this.mutObsCount = 0 this.mutObsConfig = { childList: true, subtree: true } this.mutObs = new MutationObserver( (records) => { @@ -84,6 +90,12 @@ class Form { this.formAnalyzer = new FormAnalyzer(this.form, input, this.matching) this.recategorizeAllInputs() }) + + this.mutObsCount++ + // If the form mutates too much, disconnect to avoid performance issues + if (this.mutObsCount >= MAX_FORM_MUT_OBS_COUNT) { + this.mutObs.disconnect() + } } } } @@ -290,6 +302,7 @@ class Form { removeInlineStyles(input, getIconStylesBase(input, this)) removeInlineStyles(input, getIconStylesAlternate(input, this)) input.removeAttribute(ATTR_AUTOFILL) + input.removeAttribute(ATTR_INPUT_TYPE) } removeAllDecorations () { this.execOnInputs((input) => this.removeInputDecoration(input)) @@ -309,6 +322,7 @@ class Form { */ forgetAllInputs () { this.execOnInputs((input) => { + input.removeAttribute(ATTR_AUTOFILL) input.removeAttribute(ATTR_INPUT_TYPE) }) Object.values(this.inputs).forEach((inputSet) => inputSet.clear()) @@ -348,7 +362,12 @@ class Form { if (this.form.matches(selector)) { this.addInput(this.form) } else { - this.form.querySelectorAll(selector).forEach(input => this.addInput(input)) + const foundInputs = this.form.querySelectorAll(selector) + if (foundInputs.length < MAX_INPUTS_PER_FORM) { + foundInputs.forEach(input => this.addInput(input)) + } else { + console.log('The form has too many inputs, bailing.') + } } this.initialScanComplete = true } @@ -406,6 +425,13 @@ class Form { addInput (input) { if (this.inputs.all.has(input)) return this + // If the form has too many inputs, destroy everything to avoid performance issues + if (this.inputs.all.size > MAX_INPUTS_PER_FORM) { + console.log('The form has too many inputs, destroying.') + this.destroy() + return this + } + // When new inputs are added after the initial scan, reanalyze the whole form if (this.initialScanComplete) { this.formAnalyzer = new FormAnalyzer(this.form, input, this.matching) diff --git a/src/Form/Form.test.js b/src/Form/Form.test.js index 42e66ebcc..fb7e06c86 100644 --- a/src/Form/Form.test.js +++ b/src/Form/Form.test.js @@ -1,6 +1,7 @@ import InterfacePrototype from '../DeviceInterface/InterfacePrototype.js' import { createScanner } from '../Scanner.js' import {attachAndReturnGenericForm} from '../test-utils.js' +import {constants} from '../constants.js' afterEach(() => { document.body.innerHTML = '' @@ -374,3 +375,43 @@ describe('Attempt form submission when needed', () => { }) }) }) + +describe('Form bails', () => { + beforeEach(() => { + document.body.innerHTML = '' + }) + test('when it has too many fields', async () => { + const formEl = attachAndReturnGenericForm() + for (let i = 0; i <= constants.MAX_INPUTS_PER_FORM + 10; i++) { + const input = document.createElement('input') + input.type = 'email' + input.placeholder = 'Email address' + formEl.appendChild(input) + } + + createScanner(InterfacePrototype.default()).findEligibleInputs(document) + const decoratedInputs = document.querySelectorAll(`[${constants.ATTR_INPUT_TYPE}]`) + expect(decoratedInputs).toHaveLength(0) + }) + test('when too many fields are added after the initial scan', async () => { + const formEl = attachAndReturnGenericForm() + + const scanner = createScanner(InterfacePrototype.default()).findEligibleInputs(document) + let decoratedInputs = document.querySelectorAll(`[${constants.ATTR_INPUT_TYPE}]`) + expect(decoratedInputs).toHaveLength(2) + + const newInputs = [] + for (let i = 0; i <= constants.MAX_INPUTS_PER_FORM + 10; i++) { + const input = document.createElement('input') + input.type = 'email' + input.placeholder = 'Email address' + newInputs.push(input) + } + formEl.append(...newInputs) + // Scan right away without waiting for the queue + scanner.findEligibleInputs(formEl) + + decoratedInputs = document.querySelectorAll(`[${constants.ATTR_INPUT_TYPE}]`) + expect(decoratedInputs).toHaveLength(0) + }) +}) diff --git a/src/Scanner.js b/src/Scanner.js index 2ee90374a..dc05439f3 100644 --- a/src/Scanner.js +++ b/src/Scanner.js @@ -1,21 +1,31 @@ import { Form } from './Form/Form.js' import { SUBMIT_BUTTON_SELECTOR, FORM_INPUTS_SELECTOR } from './Form/selectors-css.js' +import { constants } from './constants.js' import { createMatching } from './Form/matching.js' import {isFormLikelyToBeUsedAsPageWrapper} from './autofill-utils.js' +const { + MAX_INPUTS_PER_PAGE, + MAX_FORMS_PER_PAGE, + MAX_INPUTS_PER_FORM +} = constants + /** * @typedef {{ * forms: Map; * init(): ()=> void; * enqueue(elements: (HTMLElement|Document)[]): void; * findEligibleInputs(context): Scanner; + * options: ScannerOptions; * }} Scanner * * @typedef {{ * initialDelay: number, * bufferSize: number, * debounceTimePeriod: number, - * maxInputsOnPage: number, + * maxInputsPerPage: number, + * maxFormsPerPage: number, + * maxInputsPerForm: number * }} ScannerOptions */ @@ -32,7 +42,9 @@ const defaultScannerOptions = { // How many inputs is too many on the page. If we detect that there's above // this maximum, then we don't scan the page. This will prevent slowdowns on // large pages which are unlikely to require autofill anyway. - maxInputsOnPage: 100 + maxInputsPerPage: MAX_INPUTS_PER_PAGE, + maxFormsPerPage: MAX_FORMS_PER_PAGE, + maxInputsPerForm: MAX_INPUTS_PER_FORM } /** @@ -131,7 +143,7 @@ class DefaultScanner { this.addInput(context) } else { const inputs = context.querySelectorAll(FORM_INPUTS_SELECTOR) - if (inputs.length > this.options.maxInputsOnPage) { + if (inputs.length > this.options.maxInputsPerPage) { return this } inputs.forEach((input) => this.addInput(input)) @@ -200,7 +212,12 @@ class DefaultScanner { this.forms.delete(childForm) } - this.forms.set(parentForm, new Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)) + // Only add the form if below the limit of forms per page + if (this.forms.size < this.options.maxFormsPerPage) { + this.forms.set(parentForm, new Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)) + } else { + console.log('The page has too many forms, stop adding them.') + } } } diff --git a/src/Scanner.test.js b/src/Scanner.test.js index 87eb6b889..79fbfd98b 100644 --- a/src/Scanner.test.js +++ b/src/Scanner.test.js @@ -48,7 +48,7 @@ describe('performance', () => { }) it('should not scan if above maximum inputs', () => { const scanner = createScanner(InterfacePrototype.default(), { - maxInputsOnPage: 3 + maxInputsPerPage: 3 }) scanner.findEligibleInputs(document) @@ -59,7 +59,7 @@ describe('performance', () => { }) it('should stop scanning if page grows above maximum inputs', () => { const scanner = createScanner(InterfacePrototype.default(), { - maxInputsOnPage: 5, + maxInputsPerPage: 5, bufferSize: 2 }) @@ -77,6 +77,21 @@ describe('performance', () => { inputs.forEach(input => scanner.enqueue([input])) jest.advanceTimersByTime(1000) + // Confirm that newly added inputs are not scanned + expect(document.body).toMatchSnapshot() + }) + it('should stop scanning if page grows above maximum forms', () => { + const scanner = createScanner(InterfacePrototype.default(), { + maxFormsPerPage: 1 + }) + const form = document.querySelector('form') + const formClone = form?.cloneNode(true) + if (!formClone) throw new Error('unreachable') + document.body.appendChild(formClone) + + scanner.findEligibleInputs(document) + jest.advanceTimersByTime(1000) + // Confirm that newly added inputs are not scanned expect(document.body).toMatchSnapshot() }) diff --git a/src/__snapshots__/Scanner.test.js.snap b/src/__snapshots__/Scanner.test.js.snap index 503e92382..100c91d5e 100644 --- a/src/__snapshots__/Scanner.test.js.snap +++ b/src/__snapshots__/Scanner.test.js.snap @@ -199,6 +199,130 @@ exports[`performance should not scan if above maximum inputs 1`] = ` `; +exports[`performance should stop scanning if page grows above maximum forms 1`] = ` + + + +
+ + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+ +`; + exports[`performance should stop scanning if page grows above maximum inputs 1`] = ` diff --git a/src/constants.js b/src/constants.js index 1b6ba596f..25bc641ec 100644 --- a/src/constants.js +++ b/src/constants.js @@ -1,5 +1,9 @@ export const constants = { ATTR_INPUT_TYPE: 'data-ddg-inputType', ATTR_AUTOFILL: 'data-ddg-autofill', - TEXT_LENGTH_CUTOFF: 50 + TEXT_LENGTH_CUTOFF: 50, + MAX_INPUTS_PER_PAGE: 100, + MAX_FORMS_PER_PAGE: 30, + MAX_INPUTS_PER_FORM: 80, + MAX_FORM_MUT_OBS_COUNT: 50 } diff --git a/swift-package/Resources/assets/autofill-debug.js b/swift-package/Resources/assets/autofill-debug.js index 4f2429514..a33be6fe9 100644 --- a/swift-package/Resources/assets/autofill-debug.js +++ b/swift-package/Resources/assets/autofill-debug.js @@ -10084,7 +10084,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope const { ATTR_AUTOFILL, - ATTR_INPUT_TYPE + ATTR_INPUT_TYPE, + MAX_FORM_MUT_OBS_COUNT, + MAX_INPUTS_PER_FORM } = _constants.constants; class Form { @@ -10094,8 +10096,6 @@ class Form { /** @type {HTMLInputElement | null} */ - /** @type {boolean | null} */ - /** * @param {HTMLElement} form * @param {HTMLInputElement|HTMLSelectElement} input @@ -10112,14 +10112,9 @@ class Form { _defineProperty(this, "activeInput", void 0); - _defineProperty(this, "isSignup", void 0); - this.form = form; this.matching = matching || (0, _matching.createMatching)(); this.formAnalyzer = new _FormAnalyzer.default(form, input, matching); - this.isLogin = this.formAnalyzer.isLogin; - this.isSignup = this.formAnalyzer.isSignup; - this.isHybrid = this.formAnalyzer.isHybrid; this.device = deviceInterface; /** @type Record<'all' | SupportedMainTypes, Set> */ @@ -10146,6 +10141,30 @@ class Form { for (const entry of entries) { if (!entry.isIntersecting) this.removeTooltip(); } + }); + this.mutObsCount = 0; + this.mutObsConfig = { + childList: true, + subtree: true + }; + this.mutObs = new MutationObserver(records => { + const anythingRemoved = records.some(record => record.removedNodes.length > 0); + + if (anythingRemoved) { + // Must check for inputs because a parent may be removed and not show up in record.removedNodes + if ([...this.inputs.all].some(input => !input.isConnected)) { + // If any known input has been removed from the DOM, reanalyze the whole form + window.requestIdleCallback(() => { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + }); + this.mutObsCount++; // If the form mutates too much, disconnect to avoid performance issues + + if (this.mutObsCount >= MAX_FORM_MUT_OBS_COUNT) { + this.mutObs.disconnect(); + } + } + } }); // This ensures we fire the handler again if the form is changed this.addListener(form, 'input', () => { @@ -10155,6 +10174,7 @@ class Form { } }); this.categorizeInputs(); + this.mutObs.observe(this.form, this.mutObsConfig); this.logFormInfo(); if (shouldAutoprompt) { @@ -10162,6 +10182,18 @@ class Form { } } + get isLogin() { + return this.formAnalyzer.isLogin; + } + + get isSignup() { + return this.formAnalyzer.isSignup; + } + + get isHybrid() { + return this.formAnalyzer.isHybrid; + } + logFormInfo() { if (!(0, _autofillUtils.shouldLog)()) return; console.log("Form type: %c".concat(this.getFormType()), 'font-weight: bold'); @@ -10353,6 +10385,7 @@ class Form { (0, _autofillUtils.removeInlineStyles)(input, (0, _inputStyles.getIconStylesBase)(input, this)); (0, _autofillUtils.removeInlineStyles)(input, (0, _inputStyles.getIconStylesAlternate)(input, this)); input.removeAttribute(ATTR_AUTOFILL); + input.removeAttribute(ATTR_INPUT_TYPE); } removeAllDecorations() { @@ -10383,6 +10416,7 @@ class Form { forgetAllInputs() { this.execOnInputs(input => { + input.removeAttribute(ATTR_AUTOFILL); input.removeAttribute(ATTR_INPUT_TYPE); }); Object.values(this.inputs).forEach(inputSet => inputSet.clear()); @@ -10393,6 +10427,7 @@ class Form { recategorizeAllInputs() { + this.initialScanComplete = false; this.removeAllDecorations(); this.forgetAllInputs(); this.categorizeInputs(); @@ -10415,6 +10450,7 @@ class Form { destroy() { this.removeAllDecorations(); this.removeTooltip(); + this.mutObs.disconnect(); this.matching.clear(); this.intObs = null; } @@ -10425,8 +10461,16 @@ class Form { if (this.form.matches(selector)) { this.addInput(this.form); } else { - this.form.querySelectorAll(selector).forEach(input => this.addInput(input)); + const foundInputs = this.form.querySelectorAll(selector); + + if (foundInputs.length < MAX_INPUTS_PER_FORM) { + foundInputs.forEach(input => this.addInput(input)); + } else { + console.log('The form has too many inputs, bailing.'); + } } + + this.initialScanComplete = true; } get submitButtons() { @@ -10482,9 +10526,23 @@ class Form { addInput(input) { var _this$device$settings; - // Nothing to do with 1-character fields + if (this.inputs.all.has(input)) return this; // If the form has too many inputs, destroy everything to avoid performance issues + + if (this.inputs.all.size > MAX_INPUTS_PER_FORM) { + console.log('The form has too many inputs, destroying.'); + this.destroy(); + return this; + } // When new inputs are added after the initial scan, reanalyze the whole form + + + if (this.initialScanComplete) { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + return this; + } // Nothing to do with 1-character fields + + if (input.maxLength === 1) return this; - if (this.inputs.all.has(input)) return this; this.inputs.all.add(input); const opts = { isLogin: this.isLogin, @@ -10891,6 +10949,8 @@ const loginRegex = new RegExp(/sign(ing)?.?in(?!g)|log.?(i|o)n|log.?out|unsubscr const signupRegex = new RegExp(/sign(ing)?.?up|join|\bregist(er|ration)|newsletter|\bsubscri(be|ption)|contact|create|start|enroll|settings|preferences|profile|update|checkout|guest|purchase|buy|order|schedule|estimate|request|new.?customer|(confirm|retype|repeat) password|password confirm?/i); const conservativeSignupRegex = new RegExp(/sign.?up|join|register|enroll|newsletter|subscri(be|ption)|settings|preferences|profile|update/i); const strictSignupRegex = new RegExp(/sign.?up|join|register|(create|new).+account|enroll|settings|preferences|profile|update/i); +const resetPasswordLink = new RegExp(/(forgot(ten)?|reset|don't remember) (your )?password|password forgotten/i); +const loginProvidersRegex = new RegExp(/ with /i); class FormAnalyzer { /** @type HTMLElement */ @@ -11013,7 +11073,7 @@ class FormAnalyzer { shouldCheckUnifiedForm = false, shouldBeConservative = false } = _ref; - const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string); // Check explicitly for unified login/signup forms + const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string) || resetPasswordLink.test(string); // Check explicitly for unified login/signup forms if (shouldCheckUnifiedForm && matchesLogin && strictSignupRegex.test(string)) { this.increaseHybridSignal(strength, signalType); @@ -11128,10 +11188,11 @@ class FormAnalyzer { if (el instanceof HTMLAnchorElement && el.href && el.getAttribute('href') !== '#' || (el.getAttribute('role') || '').toUpperCase() === 'LINK' || el.matches('button[class*=secondary]')) { - // Unless it's a forgotten password link, we don't flip those links let shouldFlip = true; - if (/(forgot(ten)?|reset) (your )?password|password forgotten| with /i.test(string)) { + if (resetPasswordLink.test(string) || // Don't flip forgotten password links + loginProvidersRegex.test(string) // Don't flip login providers links + ) { shouldFlip = false; } @@ -15102,29 +15163,40 @@ var _Form = require("./Form/Form.js"); var _selectorsCss = require("./Form/selectors-css.js"); +var _constants = require("./constants.js"); + var _matching = require("./Form/matching.js"); var _autofillUtils = require("./autofill-utils.js"); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +const { + MAX_INPUTS_PER_PAGE, + MAX_FORMS_PER_PAGE, + MAX_INPUTS_PER_FORM +} = _constants.constants; /** * @typedef {{ * forms: Map; * init(): ()=> void; * enqueue(elements: (HTMLElement|Document)[]): void; * findEligibleInputs(context): Scanner; + * options: ScannerOptions; * }} Scanner * * @typedef {{ * initialDelay: number, * bufferSize: number, * debounceTimePeriod: number, - * maxInputsOnPage: number, + * maxInputsPerPage: number, + * maxFormsPerPage: number, + * maxInputsPerForm: number * }} ScannerOptions */ /** @type {ScannerOptions} */ + const defaultScannerOptions = { // This buffer size is very large because it's an unexpected edge-case that // a DOM will be continually modified over and over without ever stopping. If we do see 1000 unique @@ -15137,7 +15209,9 @@ const defaultScannerOptions = { // How many inputs is too many on the page. If we detect that there's above // this maximum, then we don't scan the page. This will prevent slowdowns on // large pages which are unlikely to require autofill anyway. - maxInputsOnPage: 100 + maxInputsPerPage: MAX_INPUTS_PER_PAGE, + maxFormsPerPage: MAX_FORMS_PER_PAGE, + maxInputsPerForm: MAX_INPUTS_PER_FORM }; /** * This allows: @@ -15283,7 +15357,7 @@ class DefaultScanner { } else { const inputs = context.querySelectorAll(_selectorsCss.FORM_INPUTS_SELECTOR); - if (inputs.length > this.options.maxInputsOnPage) { + if (inputs.length > this.options.maxInputsPerPage) { return this; } @@ -15360,9 +15434,14 @@ class DefaultScanner { (_this$forms$get2 = this.forms.get(childForm)) === null || _this$forms$get2 === void 0 ? void 0 : _this$forms$get2.destroy(); this.forms.delete(childForm); - } + } // Only add the form if below the limit of forms per page + - this.forms.set(parentForm, new _Form.Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)); + if (this.forms.size < this.options.maxFormsPerPage) { + this.forms.set(parentForm, new _Form.Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)); + } else { + console.log('The page has too many forms, stop adding them.'); + } } } /** @@ -15430,7 +15509,7 @@ function createScanner(device, scannerOptions) { }); } -},{"./Form/Form.js":33,"./Form/matching.js":43,"./Form/selectors-css.js":44,"./autofill-utils.js":63}],52:[function(require,module,exports){ +},{"./Form/Form.js":33,"./Form/matching.js":43,"./Form/selectors-css.js":44,"./autofill-utils.js":63,"./constants.js":66}],52:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { @@ -17948,6 +18027,7 @@ const isLikelyASubmitButton = el => { const dataTestId = el.getAttribute('data-test-id') || ''; const contentExcludingLabel = text + ' ' + title + ' ' + value; return (el.getAttribute('type') === 'submit' || // is explicitly set as "submit" + el.getAttribute('name') === 'submit' || // is called "submit" /primary|submit/i.test(el.className) || // has high-signal submit classes /submit/i.test(dataTestId) || SUBMIT_BUTTON_REGEX.test(contentExcludingLabel) || // has high-signal text el.offsetHeight * el.offsetWidth >= 10000 && !/secondary/i.test(el.className) // it's a large element 250x40px @@ -18246,7 +18326,11 @@ exports.constants = void 0; const constants = { ATTR_INPUT_TYPE: 'data-ddg-inputType', ATTR_AUTOFILL: 'data-ddg-autofill', - TEXT_LENGTH_CUTOFF: 50 + TEXT_LENGTH_CUTOFF: 50, + MAX_INPUTS_PER_PAGE: 100, + MAX_FORMS_PER_PAGE: 30, + MAX_INPUTS_PER_FORM: 80, + MAX_FORM_MUT_OBS_COUNT: 50 }; exports.constants = constants; diff --git a/swift-package/Resources/assets/autofill.js b/swift-package/Resources/assets/autofill.js index 04a70fc9a..628a7c963 100644 --- a/swift-package/Resources/assets/autofill.js +++ b/swift-package/Resources/assets/autofill.js @@ -6408,7 +6408,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope const { ATTR_AUTOFILL, - ATTR_INPUT_TYPE + ATTR_INPUT_TYPE, + MAX_FORM_MUT_OBS_COUNT, + MAX_INPUTS_PER_FORM } = _constants.constants; class Form { @@ -6418,8 +6420,6 @@ class Form { /** @type {HTMLInputElement | null} */ - /** @type {boolean | null} */ - /** * @param {HTMLElement} form * @param {HTMLInputElement|HTMLSelectElement} input @@ -6436,14 +6436,9 @@ class Form { _defineProperty(this, "activeInput", void 0); - _defineProperty(this, "isSignup", void 0); - this.form = form; this.matching = matching || (0, _matching.createMatching)(); this.formAnalyzer = new _FormAnalyzer.default(form, input, matching); - this.isLogin = this.formAnalyzer.isLogin; - this.isSignup = this.formAnalyzer.isSignup; - this.isHybrid = this.formAnalyzer.isHybrid; this.device = deviceInterface; /** @type Record<'all' | SupportedMainTypes, Set> */ @@ -6470,6 +6465,30 @@ class Form { for (const entry of entries) { if (!entry.isIntersecting) this.removeTooltip(); } + }); + this.mutObsCount = 0; + this.mutObsConfig = { + childList: true, + subtree: true + }; + this.mutObs = new MutationObserver(records => { + const anythingRemoved = records.some(record => record.removedNodes.length > 0); + + if (anythingRemoved) { + // Must check for inputs because a parent may be removed and not show up in record.removedNodes + if ([...this.inputs.all].some(input => !input.isConnected)) { + // If any known input has been removed from the DOM, reanalyze the whole form + window.requestIdleCallback(() => { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + }); + this.mutObsCount++; // If the form mutates too much, disconnect to avoid performance issues + + if (this.mutObsCount >= MAX_FORM_MUT_OBS_COUNT) { + this.mutObs.disconnect(); + } + } + } }); // This ensures we fire the handler again if the form is changed this.addListener(form, 'input', () => { @@ -6479,6 +6498,7 @@ class Form { } }); this.categorizeInputs(); + this.mutObs.observe(this.form, this.mutObsConfig); this.logFormInfo(); if (shouldAutoprompt) { @@ -6486,6 +6506,18 @@ class Form { } } + get isLogin() { + return this.formAnalyzer.isLogin; + } + + get isSignup() { + return this.formAnalyzer.isSignup; + } + + get isHybrid() { + return this.formAnalyzer.isHybrid; + } + logFormInfo() { if (!(0, _autofillUtils.shouldLog)()) return; console.log("Form type: %c".concat(this.getFormType()), 'font-weight: bold'); @@ -6677,6 +6709,7 @@ class Form { (0, _autofillUtils.removeInlineStyles)(input, (0, _inputStyles.getIconStylesBase)(input, this)); (0, _autofillUtils.removeInlineStyles)(input, (0, _inputStyles.getIconStylesAlternate)(input, this)); input.removeAttribute(ATTR_AUTOFILL); + input.removeAttribute(ATTR_INPUT_TYPE); } removeAllDecorations() { @@ -6707,6 +6740,7 @@ class Form { forgetAllInputs() { this.execOnInputs(input => { + input.removeAttribute(ATTR_AUTOFILL); input.removeAttribute(ATTR_INPUT_TYPE); }); Object.values(this.inputs).forEach(inputSet => inputSet.clear()); @@ -6717,6 +6751,7 @@ class Form { recategorizeAllInputs() { + this.initialScanComplete = false; this.removeAllDecorations(); this.forgetAllInputs(); this.categorizeInputs(); @@ -6739,6 +6774,7 @@ class Form { destroy() { this.removeAllDecorations(); this.removeTooltip(); + this.mutObs.disconnect(); this.matching.clear(); this.intObs = null; } @@ -6749,8 +6785,16 @@ class Form { if (this.form.matches(selector)) { this.addInput(this.form); } else { - this.form.querySelectorAll(selector).forEach(input => this.addInput(input)); + const foundInputs = this.form.querySelectorAll(selector); + + if (foundInputs.length < MAX_INPUTS_PER_FORM) { + foundInputs.forEach(input => this.addInput(input)); + } else { + console.log('The form has too many inputs, bailing.'); + } } + + this.initialScanComplete = true; } get submitButtons() { @@ -6806,9 +6850,23 @@ class Form { addInput(input) { var _this$device$settings; - // Nothing to do with 1-character fields + if (this.inputs.all.has(input)) return this; // If the form has too many inputs, destroy everything to avoid performance issues + + if (this.inputs.all.size > MAX_INPUTS_PER_FORM) { + console.log('The form has too many inputs, destroying.'); + this.destroy(); + return this; + } // When new inputs are added after the initial scan, reanalyze the whole form + + + if (this.initialScanComplete) { + this.formAnalyzer = new _FormAnalyzer.default(this.form, input, this.matching); + this.recategorizeAllInputs(); + return this; + } // Nothing to do with 1-character fields + + if (input.maxLength === 1) return this; - if (this.inputs.all.has(input)) return this; this.inputs.all.add(input); const opts = { isLogin: this.isLogin, @@ -7215,6 +7273,8 @@ const loginRegex = new RegExp(/sign(ing)?.?in(?!g)|log.?(i|o)n|log.?out|unsubscr const signupRegex = new RegExp(/sign(ing)?.?up|join|\bregist(er|ration)|newsletter|\bsubscri(be|ption)|contact|create|start|enroll|settings|preferences|profile|update|checkout|guest|purchase|buy|order|schedule|estimate|request|new.?customer|(confirm|retype|repeat) password|password confirm?/i); const conservativeSignupRegex = new RegExp(/sign.?up|join|register|enroll|newsletter|subscri(be|ption)|settings|preferences|profile|update/i); const strictSignupRegex = new RegExp(/sign.?up|join|register|(create|new).+account|enroll|settings|preferences|profile|update/i); +const resetPasswordLink = new RegExp(/(forgot(ten)?|reset|don't remember) (your )?password|password forgotten/i); +const loginProvidersRegex = new RegExp(/ with /i); class FormAnalyzer { /** @type HTMLElement */ @@ -7337,7 +7397,7 @@ class FormAnalyzer { shouldCheckUnifiedForm = false, shouldBeConservative = false } = _ref; - const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string); // Check explicitly for unified login/signup forms + const matchesLogin = /current.?password/i.test(string) || loginRegex.test(string) || resetPasswordLink.test(string); // Check explicitly for unified login/signup forms if (shouldCheckUnifiedForm && matchesLogin && strictSignupRegex.test(string)) { this.increaseHybridSignal(strength, signalType); @@ -7452,10 +7512,11 @@ class FormAnalyzer { if (el instanceof HTMLAnchorElement && el.href && el.getAttribute('href') !== '#' || (el.getAttribute('role') || '').toUpperCase() === 'LINK' || el.matches('button[class*=secondary]')) { - // Unless it's a forgotten password link, we don't flip those links let shouldFlip = true; - if (/(forgot(ten)?|reset) (your )?password|password forgotten| with /i.test(string)) { + if (resetPasswordLink.test(string) || // Don't flip forgotten password links + loginProvidersRegex.test(string) // Don't flip login providers links + ) { shouldFlip = false; } @@ -11426,29 +11487,40 @@ var _Form = require("./Form/Form.js"); var _selectorsCss = require("./Form/selectors-css.js"); +var _constants = require("./constants.js"); + var _matching = require("./Form/matching.js"); var _autofillUtils = require("./autofill-utils.js"); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +const { + MAX_INPUTS_PER_PAGE, + MAX_FORMS_PER_PAGE, + MAX_INPUTS_PER_FORM +} = _constants.constants; /** * @typedef {{ * forms: Map; * init(): ()=> void; * enqueue(elements: (HTMLElement|Document)[]): void; * findEligibleInputs(context): Scanner; + * options: ScannerOptions; * }} Scanner * * @typedef {{ * initialDelay: number, * bufferSize: number, * debounceTimePeriod: number, - * maxInputsOnPage: number, + * maxInputsPerPage: number, + * maxFormsPerPage: number, + * maxInputsPerForm: number * }} ScannerOptions */ /** @type {ScannerOptions} */ + const defaultScannerOptions = { // This buffer size is very large because it's an unexpected edge-case that // a DOM will be continually modified over and over without ever stopping. If we do see 1000 unique @@ -11461,7 +11533,9 @@ const defaultScannerOptions = { // How many inputs is too many on the page. If we detect that there's above // this maximum, then we don't scan the page. This will prevent slowdowns on // large pages which are unlikely to require autofill anyway. - maxInputsOnPage: 100 + maxInputsPerPage: MAX_INPUTS_PER_PAGE, + maxFormsPerPage: MAX_FORMS_PER_PAGE, + maxInputsPerForm: MAX_INPUTS_PER_FORM }; /** * This allows: @@ -11607,7 +11681,7 @@ class DefaultScanner { } else { const inputs = context.querySelectorAll(_selectorsCss.FORM_INPUTS_SELECTOR); - if (inputs.length > this.options.maxInputsOnPage) { + if (inputs.length > this.options.maxInputsPerPage) { return this; } @@ -11684,9 +11758,14 @@ class DefaultScanner { (_this$forms$get2 = this.forms.get(childForm)) === null || _this$forms$get2 === void 0 ? void 0 : _this$forms$get2.destroy(); this.forms.delete(childForm); - } + } // Only add the form if below the limit of forms per page + - this.forms.set(parentForm, new _Form.Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)); + if (this.forms.size < this.options.maxFormsPerPage) { + this.forms.set(parentForm, new _Form.Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)); + } else { + console.log('The page has too many forms, stop adding them.'); + } } } /** @@ -11754,7 +11833,7 @@ function createScanner(device, scannerOptions) { }); } -},{"./Form/Form.js":25,"./Form/matching.js":35,"./Form/selectors-css.js":36,"./autofill-utils.js":55}],44:[function(require,module,exports){ +},{"./Form/Form.js":25,"./Form/matching.js":35,"./Form/selectors-css.js":36,"./autofill-utils.js":55,"./constants.js":58}],44:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { @@ -14272,6 +14351,7 @@ const isLikelyASubmitButton = el => { const dataTestId = el.getAttribute('data-test-id') || ''; const contentExcludingLabel = text + ' ' + title + ' ' + value; return (el.getAttribute('type') === 'submit' || // is explicitly set as "submit" + el.getAttribute('name') === 'submit' || // is called "submit" /primary|submit/i.test(el.className) || // has high-signal submit classes /submit/i.test(dataTestId) || SUBMIT_BUTTON_REGEX.test(contentExcludingLabel) || // has high-signal text el.offsetHeight * el.offsetWidth >= 10000 && !/secondary/i.test(el.className) // it's a large element 250x40px @@ -14570,7 +14650,11 @@ exports.constants = void 0; const constants = { ATTR_INPUT_TYPE: 'data-ddg-inputType', ATTR_AUTOFILL: 'data-ddg-autofill', - TEXT_LENGTH_CUTOFF: 50 + TEXT_LENGTH_CUTOFF: 50, + MAX_INPUTS_PER_PAGE: 100, + MAX_FORMS_PER_PAGE: 30, + MAX_INPUTS_PER_FORM: 80, + MAX_FORM_MUT_OBS_COUNT: 50 }; exports.constants = constants; From 12399f7c40659f6cf6d4b2879b01e5650370e5e9 Mon Sep 17 00:00:00 2001 From: Emanuele Feliziani Date: Fri, 21 Jul 2023 13:03:44 +0200 Subject: [PATCH 5/6] Fix icon sizing Signed-off-by: Emanuele Feliziani --- dist/autofill-debug.js | 8 ++++---- dist/autofill.css | 4 ++-- dist/autofill.js | 8 ++++---- src/Form/inputStyles.js | 2 +- src/UI/HTMLTooltip.js | 6 +++--- src/UI/styles/autofill-tooltip-styles.css | 4 ++-- swift-package/Resources/assets/autofill-debug.js | 8 ++++---- swift-package/Resources/assets/autofill.css | 4 ++-- swift-package/Resources/assets/autofill.js | 8 ++++---- 9 files changed, 26 insertions(+), 26 deletions(-) diff --git a/dist/autofill-debug.js b/dist/autofill-debug.js index a33be6fe9..7486f3f0b 100644 --- a/dist/autofill-debug.js +++ b/dist/autofill-debug.js @@ -12221,7 +12221,7 @@ const getIcon = function (input, form) { const getBasicStyles = (input, icon) => ({ // Height must be > 0 to account for fields initially hidden - 'background-size': "auto ".concat(input.offsetHeight <= 30 && input.offsetHeight > 0 ? '100%' : '26px'), + 'background-size': "auto ".concat(input.offsetHeight <= 30 && input.offsetHeight > 0 ? '100%' : '24px'), 'background-position': 'center right', 'background-repeat': 'no-repeat', 'background-origin': 'content-box', @@ -16183,8 +16183,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope /** @type {HTMLTooltipOptions} */ const defaultOptions = { wrapperClass: '', - tooltipPositionClass: (top, left) => "\n .tooltip {\n transform: translate(".concat(left, "px, ").concat(top, "px) !important;\n }\n "), - caretPositionClass: (top, left, isAboveInput) => "\n .tooltip--email__caret {\n ".concat(isAboveInput ? "transform: translate(".concat(left, "px, ").concat(top, "px) rotate(180deg); transform-origin: 16px !important;") : "transform: translate(".concat(left, "px, ").concat(top, "px) !important;"), "\n }"), + tooltipPositionClass: (top, left) => "\n .tooltip {\n transform: translate(".concat(Math.floor(left), "px, ").concat(Math.floor(top), "px) !important;\n }\n "), + caretPositionClass: (top, left, isAboveInput) => "\n .tooltip--email__caret {\n ".concat(isAboveInput ? "transform: translate(".concat(Math.floor(left), "px, ").concat(Math.floor(top), "px) rotate(180deg); transform-origin: 18px !important;") : "transform: translate(".concat(Math.floor(left), "px, ").concat(Math.floor(top), "px) !important;"), "\n }"), css: ""), setSize: undefined, remove: () => { @@ -17613,7 +17613,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.CSS_STYLES = void 0; -const CSS_STYLES = ":root {\n color-scheme: light dark;\n}\n\n.wrapper *, .wrapper *::before, .wrapper *::after {\n box-sizing: border-box;\n}\n.wrapper {\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n font-family: 'DDG_ProximaNova', 'Proxima Nova', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n -webkit-font-smoothing: antialiased;\n z-index: 2147483647;\n}\n.wrapper--data {\n font-family: 'SF Pro Text', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n}\n:not(.top-autofill) .tooltip {\n position: absolute;\n width: 300px;\n max-width: calc(100vw - 25px);\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--data, #topAutofill {\n background-color: rgba(242, 240, 240, 1);\n -webkit-backdrop-filter: blur(40px);\n backdrop-filter: blur(40px);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data, #topAutofill {\n background: rgb(100, 98, 102, .9);\n }\n}\n.tooltip--data {\n padding: 6px;\n font-size: 13px;\n line-height: 14px;\n width: 315px;\n max-height: 290px;\n overflow-y: auto;\n}\n.top-autofill .tooltip--data {\n min-height: 100vh;\n}\n.tooltip--data.tooltip--incontext-signup {\n width: 360px;\n}\n:not(.top-autofill) .tooltip--data {\n top: 100%;\n left: 100%;\n border: 0.5px solid rgba(255, 255, 255, 0.2);\n border-radius: 6px;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);\n}\n@media (prefers-color-scheme: dark) {\n :not(.top-autofill) .tooltip--data {\n border: 1px solid rgba(255, 255, 255, 0.2);\n }\n}\n:not(.top-autofill) .tooltip--email {\n top: calc(100% + 6px);\n right: calc(100% - 46px);\n padding: 8px;\n border: 1px solid #D0D0D0;\n border-radius: 10px;\n background-color: #FFFFFF;\n font-size: 14px;\n line-height: 1.3;\n color: #333333;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);\n}\n.tooltip--email__caret {\n position: absolute;\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--email__caret::before,\n.tooltip--email__caret::after {\n content: \"\";\n width: 0;\n height: 0;\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n display: block;\n border-bottom: 8px solid #D0D0D0;\n position: absolute;\n right: -26px;\n}\n.tooltip--email__caret::before {\n border-bottom-color: #D0D0D0;\n top: -1px;\n}\n.tooltip--email__caret::after {\n border-bottom-color: #FFFFFF;\n top: 0px;\n}\n\n/* Buttons */\n.tooltip__button {\n display: flex;\n width: 100%;\n padding: 8px 8px 8px 0px;\n font-family: inherit;\n color: inherit;\n background: transparent;\n border: none;\n border-radius: 6px;\n}\n.tooltip__button.currentFocus,\n.wrapper:not(.top-autofill) .tooltip__button:hover {\n background-color: #3969EF;\n color: #FFFFFF;\n}\n\n/* Data autofill tooltip specific */\n.tooltip__button--data {\n position: relative;\n min-height: 48px;\n flex-direction: row;\n justify-content: flex-start;\n font-size: inherit;\n font-weight: 500;\n line-height: 16px;\n text-align: left;\n border-radius: 3px;\n}\n.tooltip--data__item-container {\n max-height: 220px;\n overflow: auto;\n}\n.tooltip__button--data:first-child {\n margin-top: 0;\n}\n.tooltip__button--data:last-child {\n margin-bottom: 0;\n}\n.tooltip__button--data::before {\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 20px 20px;\n background-repeat: no-repeat;\n background-position: center 6px;\n}\n#provider_locked::after {\n position: absolute;\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 11px 13px;\n background-repeat: no-repeat;\n background-position: right bottom;\n}\n.tooltip__button--data.currentFocus:not(.tooltip__button--data--bitwarden)::before,\n.wrapper:not(.top-autofill) .tooltip__button--data:not(.tooltip__button--data--bitwarden):hover::before {\n filter: invert(100%);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before,\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before {\n filter: invert(100%);\n opacity: .9;\n }\n}\n.tooltip__button__text-container {\n margin: auto 0;\n}\n.label {\n display: block;\n font-weight: 400;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.8);\n font-size: 13px;\n line-height: 1;\n}\n.label + .label {\n margin-top: 2px;\n}\n.label.label--medium {\n font-weight: 500;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.9);\n}\n.label.label--small {\n font-size: 11px;\n font-weight: 400;\n letter-spacing: 0.06px;\n color: rgba(0,0,0,0.6);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data .label {\n color: #ffffff;\n }\n .tooltip--data .label--medium {\n color: #ffffff;\n }\n .tooltip--data .label--small {\n color: #cdcdcd;\n }\n}\n.tooltip__button.currentFocus .label,\n.wrapper:not(.top-autofill) .tooltip__button:hover .label {\n color: #FFFFFF;\n}\n\n.tooltip__button--manage {\n font-size: 13px;\n padding: 5px 9px;\n border-radius: 3px;\n margin: 0;\n}\n\n/* Icons */\n.tooltip__button--data--credentials::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjYzNiA4LjY4MkM5LjYzNiA1LjU0NCAxMi4xOCAzIDE1LjMxOCAzIDE4LjQ1NiAzIDIxIDUuNTQ0IDIxIDguNjgyYzAgMy4xMzgtMi41NDQgNS42ODItNS42ODIgNS42ODItLjY5MiAwLTEuMzUzLS4xMjQtMS45NjQtLjM0OS0uMzcyLS4xMzctLjc5LS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NTdDOS4zNzQxNSA3LjE2MTMxIDkuMjM1NzQgNi43MzMzNSA4Ljk3OTIyIDYuMzc2NzhDOC44NzY4MyA2LjIzNDQ2IDguNzU3NjggNi4xMDYzNyA4LjYyNSA1Ljk5NDg5VjUuMTg3NUM4LjYyNSA0LjI3NTgyIDguMjYyODQgMy40MDE0OCA3LjYxODE4IDIuNzU2ODJDNi45NzM1MiAyLjExMjE2IDYuMDk5MTggMS43NSA1LjE4NzUgMS43NUM0LjI3NTgyIDEuNzUgMy40MDE0OCAyLjExMjE2IDIuNzU2ODIgMi43NTY4MkMyLjExMjE2IDMuNDAxNDggMS43NSA0LjI3NTgyIDEuNzUgNS4xODc1VjUuOTk0ODlDMS42MTczMiA2LjEwNjM3IDEuNDk4MTcgNi4yMzQ0NiAxLjM5NTc4IDYuMzc2NzhDMS4xMzkyNiA2LjczMzM1IDEuMDAwODUgNy4xNjEzMSAxIDcuNjAwNTdaTTQuOTY4NyA0Ljk2ODdDNS4wMjY5NCA0LjkxMDQ3IDUuMTA1MzIgNC44NzY5OSA1LjE4NzUgNC44NzUwN0M1LjI2OTY4IDQuODc2OTkgNS4zNDgwNiA0LjkxMDQ3IDUuNDA2MyA0Ljk2ODdDNS40NjU0MiA1LjAyNzgzIDUuNDk5MDQgNS4xMDc3NCA1LjUgNS4xOTEzVjUuNUg0Ljg3NVY1LjE5MTNDNC44NzU5NiA1LjEwNzc0IDQuOTA5NTggNS4wMjc4MyA0Ljk2ODcgNC45Njg3WiIgZmlsbD0iIzIyMjIyMiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=');\n}\n\nhr {\n display: block;\n margin: 5px 9px;\n border: none; /* reset the border */\n border-top: 1px solid rgba(0,0,0,.1);\n}\n\nhr:first-child {\n display: none;\n}\n\n@media (prefers-color-scheme: dark) {\n hr {\n border-top: 1px solid rgba(255,255,255,.2);\n }\n}\n\n#privateAddress {\n align-items: flex-start;\n}\n#personalAddress::before,\n#privateAddress::before,\n#incontextSignup::before,\n#personalAddress.currentFocus::before,\n#personalAddress:hover::before,\n#privateAddress.currentFocus::before,\n#privateAddress:hover::before {\n filter: none;\n /* This is the same icon as `daxBase64` in `src/Form/logo-svg.js` */\n background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibTY0IDEyOGMzNS4zNDYgMCA2NC0yOC42NTQgNjQtNjRzLTI4LjY1NC02NC02NC02NC02NCAyOC42NTQtNjQgNjQgMjguNjU0IDY0IDY0IDY0eiIgZmlsbD0iI2RlNTgzMyIgZmlsbC1ydWxlPSJldmVub2RkIi8+CiAgICA8cGF0aCBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Im03MyAxMTEuNzVjMC0uNS4xMjMtLjYxNC0xLjQ2Ni0zLjc4Mi00LjIyNC04LjQ1OS04LjQ3LTIwLjM4NC02LjU0LTI4LjA3NS4zNTMtMS4zOTctMy45NzgtNTEuNzQ0LTcuMDQtNTMuMzY1LTMuNDAyLTEuODEzLTcuNTg4LTQuNjktMTEuNDE4LTUuMzMtMS45NDMtLjMxLTQuNDktLjE2NC02LjQ4Mi4xMDUtLjM1My4wNDctLjM2OC42ODMtLjAzLjc5OCAxLjMwOC40NDMgMi44OTUgMS4yMTIgMy44MyAyLjM3NS4xNzguMjItLjA2LjU2Ni0uMzQyLjU3Ny0uODgyLjAzMi0yLjQ4Mi40MDItNC41OTMgMi4xOTUtLjI0NC4yMDctLjA0MS41OTIuMjczLjUzIDQuNTM2LS44OTcgOS4xNy0uNDU1IDExLjkgMi4wMjcuMTc3LjE2LjA4NC40NS0uMTQ3LjUxMi0yMy42OTQgNi40NC0xOS4wMDMgMjcuMDUtMTIuNjk2IDUyLjM0NCA1LjYxOSAy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GU9ImV2ZW5vZGQiIGQ9Im02NCAxMTcuNzVjMjkuNjg1IDAgNTMuNzUtMjQuMDY1IDUzLjc1LTUzLjc1cy0yNC4wNjUtNTMuNzUtNTMuNzUtNTMuNzUtNTMuNzUgMjQuMDY1LTUzLjc1IDUzLjc1IDI0LjA2NSA1My43NSA1My43NSA1My43NXptMCA1YzMyLjQ0NyAwIDU4Ljc1LTI2LjMwMyA1OC43NS01OC43NXMtMjYuMzAzLTU4Ljc1LTU4Ljc1LTU4Ljc1LTU4Ljc1IDI2LjMwMy01OC43NSA1OC43NSAyNi4zMDMgNTguNzUgNTguNzUgNTguNzV6IiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz4KPC9zdmc+');\n}\n\n/* Email tooltip specific */\n.tooltip__button--email {\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n font-size: 14px;\n padding: 4px 8px;\n}\n.tooltip__button--email__primary-text {\n font-weight: bold;\n}\n.tooltip__button--email__secondary-text {\n font-size: 12px;\n}\n\n/* Email Protection signup notice */\n:not(.top-autofill) .tooltip--email-signup {\n text-align: left;\n color: #222222;\n padding: 16px 20px;\n width: 380px;\n}\n\n.tooltip--email-signup h1 {\n font-weight: 700;\n font-size: 16px;\n line-height: 1.5;\n margin: 0;\n}\n\n.tooltip--email-signup p {\n font-weight: 400;\n font-size: 14px;\n line-height: 1.4;\n}\n\n.notice-controls {\n display: flex;\n}\n\n.tooltip--email-signup .notice-controls > * {\n border-radius: 8px;\n border: 0;\n cursor: pointer;\n display: inline-block;\n font-family: inherit;\n font-style: normal;\n font-weight: bold;\n padding: 8px 12px;\n text-decoration: none;\n}\n\n.notice-controls .ghost {\n margin-left: 1rem;\n}\n\n.tooltip--email-signup a.primary {\n background: #3969EF;\n color: #fff;\n}\n\n.tooltip--email-signup a.primary:hover,\n.tooltip--email-signup a.primary:focus {\n background: #2b55ca;\n}\n\n.tooltip--email-signup a.primary:active {\n background: #1e42a4;\n}\n\n.tooltip--email-signup button.ghost {\n background: transparent;\n color: #3969EF;\n}\n\n.tooltip--email-signup button.ghost:hover,\n.tooltip--email-signup button.ghost:focus {\n background-color: rgba(0, 0, 0, 0.06);\n color: #2b55ca;\n}\n\n.tooltip--email-signup button.ghost:active {\n background-color: rgba(0, 0, 0, 0.12);\n color: #1e42a4;\n}\n\n.tooltip--email-signup button.close-tooltip {\n background-color: transparent;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMiAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wLjI5Mjg5NCAwLjY1NjkwN0MwLjY4MzQxOCAwLjI2NjM4MyAxLjMxNjU4IDAuMjY2MzgzIDEuNzA3MTEgMC42NTY5MDdMNiA0Ljk0OThMMTAuMjkyOSAwLjY1NjkwN0MxMC42ODM0IDAuMjY2MzgzIDExLjMxNjYgMC4yNjYzODMgMTEuNzA3MSAwLjY1NjkwN0MxMi4wOTc2IDEuMDQ3NDMgMTIuMDk3NiAxLjY4MDYgMTEuNzA3MSAyLjA3MTEyTDcuNDE0MjEgNi4zNjQwMUwxMS43MDcxIDEwLjY1NjlDMTIuMDk3NiAxMS4wNDc0IDEyLjA5NzYgMTEuNjgwNiAxMS43MDcxIDEyLjA3MTFDMTEuMzE2NiAxMi40NjE2IDEwLjY4MzQgMTIuNDYxNiAxMC4yOTI5IDEyLjA3MTFMNiA3Ljc3ODIzTDEuNzA3MTEgMTIuMDcxMUMxLjMxNjU4IDEyLjQ2MTYgMC42ODM0MTcgMTIuNDYxNiAwLjI5Mjg5MyAxMi4wNzExQy0wLjA5NzYzMTEgMTEuNjgwNiAtMC4wOTc2MzExIDExLjA0NzQgMC4yOTI4OTMgMTAuNjU2OUw0LjU4NTc5IDYuMzY0MDFMMC4yOTI4OTQgMi4wNzExMkMtMC4wOTc2MzA2IDEuNjgwNiAtMC4wOTc2MzA2IDEuMDQ3NDMgMC4yOTI4OTQgMC42NTY5MDdaIiBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIwLjg0Ii8+Cjwvc3ZnPgo=);\n background-position: center center;\n background-repeat: no-repeat;\n border: 0;\n cursor: pointer;\n padding: 16px;\n position: absolute;\n right: 12px;\n top: 12px;\n}\n"; +const CSS_STYLES = ":root {\n color-scheme: light dark;\n}\n\n.wrapper *, .wrapper *::before, .wrapper *::after {\n box-sizing: border-box;\n}\n.wrapper {\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n font-family: 'DDG_ProximaNova', 'Proxima Nova', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n -webkit-font-smoothing: antialiased;\n z-index: 2147483647;\n}\n.wrapper--data {\n font-family: 'SF Pro Text', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n}\n:not(.top-autofill) .tooltip {\n position: absolute;\n width: 300px;\n max-width: calc(100vw - 25px);\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--data, #topAutofill {\n background-color: rgba(242, 240, 240, 1);\n -webkit-backdrop-filter: blur(40px);\n backdrop-filter: blur(40px);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data, #topAutofill {\n background: rgb(100, 98, 102, .9);\n }\n}\n.tooltip--data {\n padding: 6px;\n font-size: 13px;\n line-height: 14px;\n width: 315px;\n max-height: 290px;\n overflow-y: auto;\n}\n.top-autofill .tooltip--data {\n min-height: 100vh;\n}\n.tooltip--data.tooltip--incontext-signup {\n width: 360px;\n}\n:not(.top-autofill) .tooltip--data {\n top: 100%;\n left: 100%;\n border: 0.5px solid rgba(255, 255, 255, 0.2);\n border-radius: 6px;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);\n}\n@media (prefers-color-scheme: dark) {\n :not(.top-autofill) .tooltip--data {\n border: 1px solid rgba(255, 255, 255, 0.2);\n }\n}\n:not(.top-autofill) .tooltip--email {\n top: calc(100% + 6px);\n right: calc(100% - 48px);\n padding: 8px;\n border: 1px solid #D0D0D0;\n border-radius: 10px;\n background-color: #FFFFFF;\n font-size: 14px;\n line-height: 1.3;\n color: #333333;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);\n}\n.tooltip--email__caret {\n position: absolute;\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--email__caret::before,\n.tooltip--email__caret::after {\n content: \"\";\n width: 0;\n height: 0;\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n display: block;\n border-bottom: 8px solid #D0D0D0;\n position: absolute;\n right: -28px;\n}\n.tooltip--email__caret::before {\n border-bottom-color: #D0D0D0;\n top: -1px;\n}\n.tooltip--email__caret::after {\n border-bottom-color: #FFFFFF;\n top: 0px;\n}\n\n/* Buttons */\n.tooltip__button {\n display: flex;\n width: 100%;\n padding: 8px 8px 8px 0px;\n font-family: inherit;\n color: inherit;\n background: transparent;\n border: none;\n border-radius: 6px;\n}\n.tooltip__button.currentFocus,\n.wrapper:not(.top-autofill) .tooltip__button:hover {\n background-color: #3969EF;\n color: #FFFFFF;\n}\n\n/* Data autofill tooltip specific */\n.tooltip__button--data {\n position: relative;\n min-height: 48px;\n flex-direction: row;\n justify-content: flex-start;\n font-size: inherit;\n font-weight: 500;\n line-height: 16px;\n text-align: left;\n border-radius: 3px;\n}\n.tooltip--data__item-container {\n max-height: 220px;\n overflow: auto;\n}\n.tooltip__button--data:first-child {\n margin-top: 0;\n}\n.tooltip__button--data:last-child {\n margin-bottom: 0;\n}\n.tooltip__button--data::before {\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 20px 20px;\n background-repeat: no-repeat;\n background-position: center 6px;\n}\n#provider_locked::after {\n position: absolute;\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 11px 13px;\n background-repeat: no-repeat;\n background-position: right bottom;\n}\n.tooltip__button--data.currentFocus:not(.tooltip__button--data--bitwarden)::before,\n.wrapper:not(.top-autofill) .tooltip__button--data:not(.tooltip__button--data--bitwarden):hover::before {\n filter: invert(100%);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before,\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before {\n filter: invert(100%);\n opacity: .9;\n }\n}\n.tooltip__button__text-container {\n margin: auto 0;\n}\n.label {\n display: block;\n font-weight: 400;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.8);\n font-size: 13px;\n line-height: 1;\n}\n.label + .label {\n margin-top: 2px;\n}\n.label.label--medium {\n font-weight: 500;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.9);\n}\n.label.label--small {\n font-size: 11px;\n font-weight: 400;\n letter-spacing: 0.06px;\n color: rgba(0,0,0,0.6);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data .label {\n color: #ffffff;\n }\n .tooltip--data .label--medium {\n color: #ffffff;\n }\n .tooltip--data .label--small {\n color: #cdcdcd;\n }\n}\n.tooltip__button.currentFocus .label,\n.wrapper:not(.top-autofill) .tooltip__button:hover .label {\n color: #FFFFFF;\n}\n\n.tooltip__button--manage {\n font-size: 13px;\n padding: 5px 9px;\n border-radius: 3px;\n margin: 0;\n}\n\n/* Icons */\n.tooltip__button--data--credentials::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbG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eT0iLjkiLz4KPC9zdmc+');\n}\n.tooltip__button--data--creditCards::before {\n background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+CiAgICA8cGF0aCBkPSJNNSA5Yy0uNTUyIDAtMSAuNDQ4LTEgMXYyYzAgLjU1Mi40NDggMSAxIDFoM2MuNTUyIDAgMS0uNDQ4IDEtMXYtMmMwLS41NTItLjQ0OC0xLTEtMUg1eiIgZmlsbD0iIzAwMCIvPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDZjMC0yLjIxIDEuNzktNCA0LTRoMTRjMi4yMSAwIDQgMS43OSA0IDR2MTJjMCAyLjIxLTEuNzkgNC00IDRINWMtMi4yMSAwLTQtMS43OS00LTRWNnptNC0yYy0xLjEwNSAwLTIgLjg5NS0yIDJ2OWgxOFY2YzAtMS4xMDUtLjg5NS0yLTItMkg1em0wIDE2Yy0xLjEwNSAwLTItLjg5NS0yLTJoMThjMCAxLjEwNS0uODk1IDItMiAySDV6IiBmaWxsPSIjMDAwIi8+Cjwvc3ZnPgo=');\n}\n.tooltip__button--data--identities::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEyIDIxYzIuMTQzIDAgNC4xMTEtLjc1IDUuNjU3LTItLjYyNi0uNTA2LTEuMzE4LS45MjctMi4wNi0xLjI1LTEuMS0uNDgtMi4yODUtLjczNS0zLjQ4Ni0uNzUtMS4yLS4wMTQtMi4zOTIuMjExLTMuNTA0LjY2NC0uODE3LjMzMy0xLjU4Ljc4My0yLjI2NCAxLjMzNiAxLjU0NiAxLjI1IDMuNTE0IDIgNS42NTcgMnptNC4zOTctNS4wODNjLjk2Ny40MjIgMS44NjYuOTggMi42NzIgMS42NTVDMjAuMjc5IDE2LjAzOSAyMSAxNC4xMDQgMjEgMTJjMC00Ljk3LTQuMDMtOS05LTlzLTkgNC4wMy05IDljMCAyLjEwNC43MjIgNC4wNCAxLjkzMiA1LjU3Mi44NzQtLjczNCAxLjg2LTEuMzI4IDIuOTIxLTEuNzYgMS4zNi0uNTU0IDIuODE2LS44MyA0LjI4My0uODExIDEuNDY3LjAxOCAyLjkxNi4zMyA0LjI2LjkxNnpNMTIgMjNjNi4wNzUgMCAxMS00LjkyNSAxMS0xMVMxOC4wNzUgMSAxMiAxIDEgNS45MjUgMSAxMnM0LjkyNSAxMSAxMSAxMXptMy0xM2MwIDEuNjU3LTEuMzQzIDMtMyAzcy0zLTEuMzQzLTMtMyAxLjM0My0zIDMtMyAzIDEuMzQzIDMgM3ptMiAwYzAgMi43NjEtMi4yMzkgNS01IDVzLTUtMi4yMzktNS01IDIuMjM5LTUgNS01IDUgMi4yMzkgNSA1eiIgZmlsbD0iIzAwMCIvPgo8L3N2Zz4=');\n}\n.tooltip__button--data--credentials.tooltip__button--data--bitwarden::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiByeD0iOCIgZmlsbD0iIzE3NUREQyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE4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Igc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=');\n}\n\nhr {\n display: block;\n margin: 5px 9px;\n border: none; /* reset the border */\n border-top: 1px solid rgba(0,0,0,.1);\n}\n\nhr:first-child {\n display: none;\n}\n\n@media (prefers-color-scheme: dark) {\n hr {\n border-top: 1px solid rgba(255,255,255,.2);\n }\n}\n\n#privateAddress {\n align-items: flex-start;\n}\n#personalAddress::before,\n#privateAddress::before,\n#incontextSignup::before,\n#personalAddress.currentFocus::before,\n#personalAddress:hover::before,\n#privateAddress.currentFocus::before,\n#privateAddress:hover::before {\n filter: none;\n /* This is the same icon as `daxBase64` in `src/Form/logo-svg.js` */\n background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibTY0IDEyOGMzNS4zNDYgMCA2NC0yOC42NTQgNjQtNjRzLTI4LjY1NC02NC02NC02NC02NCAyOC42NTQtNjQgNjQgMjguNjU0IDY0IDY0IDY0eiIgZmlsbD0iI2RlNTgzMyIgZmlsbC1ydWxlPSJldmVub2RkIi8+CiAgICA8cGF0aCBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Im03MyAxMTEuNzVjMC0uNS4xMjMtLjYxNC0xLjQ2Ni0zLjc4Mi00LjIyNC04LjQ1OS04LjQ3LTIwLjM4NC02LjU0LTI4LjA3NS4zNTMtMS4zOTctMy45NzgtNTEuNzQ0LTcuMDQtNTMuMzY1LTMuNDAyLTEuODEzLTcuNTg4LTQuNjktMTEuNDE4LTUuMzMtMS45NDMtLjMxLTQuNDktLjE2NC02LjQ4Mi4xMDUtLjM1My4wNDctLjM2OC42ODMtLjAzLjc5OCAxLjMwOC40NDMgMi44OTUgMS4yMTIgMy44MyAyLjM3NS4xNzguMjItLjA2LjU2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Q1IDAgMCAxIDQuMDUtNC4wMzcgNC4wNDUgNC4wNDUgMCAwIDEgNC4wNSA0LjAzN3ptLTEuMTkzLTEuMzM4YTEuMDUgMS4wNSAwIDAgMCAtMi4wOTcgMCAxLjA0OCAxLjA0OCAwIDAgMCAyLjA5NyAweiIgZmlsbC1ydWxlPSJldmVub2RkIi8+CiAgICA8L2c+CiAgICA8cGF0aCBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Im02NCAxMTcuNzVjMjkuNjg1IDAgNTMuNzUtMjQuMDY1IDUzLjc1LTUzLjc1cy0yNC4wNjUtNTMuNzUtNTMuNzUtNTMuNzUtNTMuNzUgMjQuMDY1LTUzLjc1IDUzLjc1IDI0LjA2NSA1My43NSA1My43NSA1My43NXptMCA1YzMyLjQ0NyAwIDU4Ljc1LTI2LjMwMyA1OC43NS01OC43NXMtMjYuMzAzLTU4Ljc1LTU4Ljc1LTU4Ljc1LTU4Ljc1IDI2LjMwMy01OC43NSA1OC43NSAyNi4zMDMgNTguNzUgNTguNzUgNTguNzV6IiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz4KPC9zdmc+');\n}\n\n/* Email tooltip specific */\n.tooltip__button--email {\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n font-size: 14px;\n padding: 4px 8px;\n}\n.tooltip__button--email__primary-text {\n font-weight: bold;\n}\n.tooltip__button--email__secondary-text {\n font-size: 12px;\n}\n\n/* Email Protection signup notice */\n:not(.top-autofill) .tooltip--email-signup {\n text-align: left;\n color: #222222;\n padding: 16px 20px;\n width: 380px;\n}\n\n.tooltip--email-signup h1 {\n font-weight: 700;\n font-size: 16px;\n line-height: 1.5;\n margin: 0;\n}\n\n.tooltip--email-signup p {\n font-weight: 400;\n font-size: 14px;\n line-height: 1.4;\n}\n\n.notice-controls {\n display: flex;\n}\n\n.tooltip--email-signup .notice-controls > * {\n border-radius: 8px;\n border: 0;\n cursor: pointer;\n display: inline-block;\n font-family: inherit;\n font-style: normal;\n font-weight: bold;\n padding: 8px 12px;\n text-decoration: none;\n}\n\n.notice-controls .ghost {\n margin-left: 1rem;\n}\n\n.tooltip--email-signup a.primary {\n background: #3969EF;\n color: #fff;\n}\n\n.tooltip--email-signup a.primary:hover,\n.tooltip--email-signup a.primary:focus {\n background: #2b55ca;\n}\n\n.tooltip--email-signup a.primary:active {\n background: #1e42a4;\n}\n\n.tooltip--email-signup button.ghost {\n background: transparent;\n color: #3969EF;\n}\n\n.tooltip--email-signup button.ghost:hover,\n.tooltip--email-signup button.ghost:focus {\n background-color: rgba(0, 0, 0, 0.06);\n color: #2b55ca;\n}\n\n.tooltip--email-signup button.ghost:active {\n background-color: rgba(0, 0, 0, 0.12);\n color: #1e42a4;\n}\n\n.tooltip--email-signup button.close-tooltip {\n background-color: transparent;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMiAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wLjI5Mjg5NCAwLjY1NjkwN0MwLjY4MzQxOCAwLjI2NjM4MyAxLjMxNjU4IDAuMjY2MzgzIDEuNzA3MTEgMC42NTY5MDdMNiA0Ljk0OThMMTAuMjkyOSAwLjY1NjkwN0MxMC42ODM0IDAuMjY2MzgzIDExLjMxNjYgMC4yNjYzODMgMTEuNzA3MSAwLjY1NjkwN0MxMi4wOTc2IDEuMDQ3NDMgMTIuMDk3NiAxLjY4MDYgMTEuNzA3MSAyLjA3MTEyTDcuNDE0MjEgNi4zNjQwMUwxMS43MDcxIDEwLjY1NjlDMTIuMDk3NiAxMS4wNDc0IDEyLjA5NzYgMTEuNjgwNiAxMS43MDcxIDEyLjA3MTFDMTEuMzE2NiAxMi40NjE2IDEwLjY4MzQgMTIuNDYxNiAxMC4yOTI5IDEyLjA3MTFMNiA3Ljc3ODIzTDEuNzA3MTEgMTIuMDcxMUMxLjMxNjU4IDEyLjQ2MTYgMC42ODM0MTcgMTIuNDYxNiAwLjI5Mjg5MyAxMi4wNzExQy0wLjA5NzYzMTEgMTEuNjgwNiAtMC4wOTc2MzExIDExLjA0NzQgMC4yOTI4OTMgMTAuNjU2OUw0LjU4NTc5IDYuMzY0MDFMMC4yOTI4OTQgMi4wNzExMkMtMC4wOTc2MzA2IDEuNjgwNiAtMC4wOTc2MzA2IDEuMDQ3NDMgMC4yOTI4OTQgMC42NTY5MDdaIiBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIwLjg0Ii8+Cjwvc3ZnPgo=);\n background-position: center center;\n background-repeat: no-repeat;\n border: 0;\n cursor: pointer;\n padding: 16px;\n position: absolute;\n right: 12px;\n top: 12px;\n}\n"; exports.CSS_STYLES = CSS_STYLES; },{}],63:[function(require,module,exports){ diff --git a/dist/autofill.css b/dist/autofill.css index 3dbe7ac18..7eb2c493f 100644 --- a/dist/autofill.css +++ b/dist/autofill.css @@ -64,7 +64,7 @@ } :not(.top-autofill) .tooltip--email { top: calc(100% + 6px); - right: calc(100% - 46px); + right: calc(100% - 48px); padding: 8px; border: 1px solid #D0D0D0; border-radius: 10px; @@ -89,7 +89,7 @@ display: block; border-bottom: 8px solid #D0D0D0; position: absolute; - right: -26px; + right: -28px; } .tooltip--email__caret::before { border-bottom-color: #D0D0D0; diff --git a/dist/autofill.js b/dist/autofill.js index 628a7c963..a285cfa8a 100644 --- a/dist/autofill.js +++ b/dist/autofill.js @@ -8545,7 +8545,7 @@ const getIcon = function (input, form) { const getBasicStyles = (input, icon) => ({ // Height must be > 0 to account for fields initially hidden - 'background-size': "auto ".concat(input.offsetHeight <= 30 && input.offsetHeight > 0 ? '100%' : '26px'), + 'background-size': "auto ".concat(input.offsetHeight <= 30 && input.offsetHeight > 0 ? '100%' : '24px'), 'background-position': 'center right', 'background-repeat': 'no-repeat', 'background-origin': 'content-box', @@ -12507,8 +12507,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope /** @type {HTMLTooltipOptions} */ const defaultOptions = { wrapperClass: '', - tooltipPositionClass: (top, left) => "\n .tooltip {\n transform: translate(".concat(left, "px, ").concat(top, "px) !important;\n }\n "), - caretPositionClass: (top, left, isAboveInput) => "\n .tooltip--email__caret {\n ".concat(isAboveInput ? "transform: translate(".concat(left, "px, ").concat(top, "px) rotate(180deg); transform-origin: 16px !important;") : "transform: translate(".concat(left, "px, ").concat(top, "px) !important;"), "\n }"), + tooltipPositionClass: (top, left) => "\n .tooltip {\n transform: translate(".concat(Math.floor(left), "px, ").concat(Math.floor(top), "px) !important;\n }\n "), + caretPositionClass: (top, left, isAboveInput) => "\n .tooltip--email__caret {\n ".concat(isAboveInput ? "transform: translate(".concat(Math.floor(left), "px, ").concat(Math.floor(top), "px) rotate(180deg); transform-origin: 18px !important;") : "transform: translate(".concat(Math.floor(left), "px, ").concat(Math.floor(top), "px) !important;"), "\n }"), css: ""), setSize: undefined, remove: () => { @@ -13937,7 +13937,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.CSS_STYLES = void 0; -const CSS_STYLES = ":root {\n color-scheme: light dark;\n}\n\n.wrapper *, .wrapper *::before, .wrapper *::after {\n box-sizing: border-box;\n}\n.wrapper {\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n font-family: 'DDG_ProximaNova', 'Proxima Nova', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n -webkit-font-smoothing: antialiased;\n z-index: 2147483647;\n}\n.wrapper--data {\n font-family: 'SF Pro Text', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n}\n:not(.top-autofill) .tooltip {\n position: absolute;\n width: 300px;\n max-width: calc(100vw - 25px);\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--data, #topAutofill {\n background-color: rgba(242, 240, 240, 1);\n -webkit-backdrop-filter: blur(40px);\n backdrop-filter: blur(40px);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data, #topAutofill {\n background: rgb(100, 98, 102, .9);\n }\n}\n.tooltip--data {\n padding: 6px;\n font-size: 13px;\n line-height: 14px;\n width: 315px;\n max-height: 290px;\n overflow-y: auto;\n}\n.top-autofill .tooltip--data {\n min-height: 100vh;\n}\n.tooltip--data.tooltip--incontext-signup {\n width: 360px;\n}\n:not(.top-autofill) .tooltip--data {\n top: 100%;\n left: 100%;\n border: 0.5px solid rgba(255, 255, 255, 0.2);\n border-radius: 6px;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);\n}\n@media (prefers-color-scheme: dark) {\n :not(.top-autofill) .tooltip--data {\n border: 1px solid rgba(255, 255, 255, 0.2);\n }\n}\n:not(.top-autofill) .tooltip--email {\n top: calc(100% + 6px);\n right: calc(100% - 46px);\n padding: 8px;\n border: 1px solid #D0D0D0;\n border-radius: 10px;\n background-color: #FFFFFF;\n font-size: 14px;\n line-height: 1.3;\n color: #333333;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);\n}\n.tooltip--email__caret {\n position: absolute;\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--email__caret::before,\n.tooltip--email__caret::after {\n content: \"\";\n width: 0;\n height: 0;\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n display: block;\n border-bottom: 8px solid #D0D0D0;\n position: absolute;\n right: -26px;\n}\n.tooltip--email__caret::before {\n border-bottom-color: #D0D0D0;\n top: -1px;\n}\n.tooltip--email__caret::after {\n border-bottom-color: #FFFFFF;\n top: 0px;\n}\n\n/* Buttons */\n.tooltip__button {\n display: flex;\n width: 100%;\n padding: 8px 8px 8px 0px;\n font-family: inherit;\n color: inherit;\n background: transparent;\n border: none;\n border-radius: 6px;\n}\n.tooltip__button.currentFocus,\n.wrapper:not(.top-autofill) .tooltip__button:hover {\n background-color: #3969EF;\n color: #FFFFFF;\n}\n\n/* Data autofill tooltip specific */\n.tooltip__button--data {\n position: relative;\n min-height: 48px;\n flex-direction: row;\n justify-content: flex-start;\n font-size: inherit;\n font-weight: 500;\n line-height: 16px;\n text-align: left;\n border-radius: 3px;\n}\n.tooltip--data__item-container {\n max-height: 220px;\n overflow: auto;\n}\n.tooltip__button--data:first-child {\n margin-top: 0;\n}\n.tooltip__button--data:last-child {\n margin-bottom: 0;\n}\n.tooltip__button--data::before {\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 20px 20px;\n background-repeat: no-repeat;\n background-position: center 6px;\n}\n#provider_locked::after {\n position: absolute;\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 11px 13px;\n background-repeat: no-repeat;\n background-position: right bottom;\n}\n.tooltip__button--data.currentFocus:not(.tooltip__button--data--bitwarden)::before,\n.wrapper:not(.top-autofill) .tooltip__button--data:not(.tooltip__button--data--bitwarden):hover::before {\n filter: invert(100%);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before,\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before {\n filter: invert(100%);\n opacity: .9;\n }\n}\n.tooltip__button__text-container {\n margin: auto 0;\n}\n.label {\n display: block;\n font-weight: 400;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.8);\n font-size: 13px;\n line-height: 1;\n}\n.label + .label {\n margin-top: 2px;\n}\n.label.label--medium {\n font-weight: 500;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.9);\n}\n.label.label--small {\n font-size: 11px;\n font-weight: 400;\n letter-spacing: 0.06px;\n color: rgba(0,0,0,0.6);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data .label {\n color: #ffffff;\n }\n .tooltip--data .label--medium {\n color: #ffffff;\n }\n .tooltip--data .label--small {\n color: #cdcdcd;\n }\n}\n.tooltip__button.currentFocus .label,\n.wrapper:not(.top-autofill) .tooltip__button:hover .label {\n color: #FFFFFF;\n}\n\n.tooltip__button--manage {\n font-size: 13px;\n padding: 5px 9px;\n border-radius: 3px;\n margin: 0;\n}\n\n/* Icons */\n.tooltip__button--data--credentials::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjYzNiA4LjY4MkM5LjYzNiA1LjU0NCAxMi4xOCAzIDE1LjMxOCAzIDE4LjQ1NiAzIDIxIDUuNTQ0IDIxIDguNjgyYzAgMy4xMzgtMi41NDQgNS42ODItNS42ODIgNS42ODItLjY5MiAwLTEuMzUzLS4xMjQtMS45NjQtLjM0OS0uMzcyLS4xMzctLjc5LS4wNDEtMS4wNjYuMjQ1bC0uNzEzLjc0SDEwYy0uNTUyIDAtMSAuNDQ4LTEgMXYySDdjLS41NTIgMC0xIC40NDgtMSAxdjJIM3YtMi44ODFsNi42NjgtNi42NjhjLjI2NS0uMjY2LjM2LS42NTguMjQ0LTEuMDE1LS4xNzktLjU1MS0uMjc2LTEuMTQtLjI3Ni0xLjc1NHpNMTUuMzE4IDFjLTQuMjQyIDAtNy42ODIgMy40NC03LjY4MiA3LjY4MiAwIC42MDcuMDcxIDEuMi4yMDUgMS43NjdsLTYuNTQ4IDYuNTQ4Yy0uMTg4LjE4OC0uMjkzLjQ0Mi0uMjkzLjcwOFYyMmMwIC4yNjUuMTA1LjUyLjI5My43MDcuMTg3LjE4OC40NDIuMjkzLjcwNy4yOTNoNGMxLjEwNSAwIDItLjg5NSAyLTJ2LTFo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NiA2LjczMzM1IDEuMDAwODUgNy4xNjEzMSAxIDcuNjAwNTdaTTQuOTY4NyA0Ljk2ODdDNS4wMjY5NCA0LjkxMDQ3IDUuMTA1MzIgNC44NzY5OSA1LjE4NzUgNC44NzUwN0M1LjI2OTY4IDQuODc2OTkgNS4zNDgwNiA0LjkxMDQ3IDUuNDA2MyA0Ljk2ODdDNS40NjU0MiA1LjAyNzgzIDUuNDk5MDQgNS4xMDc3NCA1LjUgNS4xOTEzVjUuNUg0Ljg3NVY1LjE5MTNDNC44NzU5NiA1LjEwNzc0IDQuOTA5NTggNS4wMjc4MyA0Ljk2ODcgNC45Njg3WiIgZmlsbD0iIzIyMjIyMiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=');\n}\n\nhr {\n display: block;\n margin: 5px 9px;\n border: none; /* reset the border */\n border-top: 1px solid rgba(0,0,0,.1);\n}\n\nhr:first-child {\n display: none;\n}\n\n@media (prefers-color-scheme: dark) {\n hr {\n border-top: 1px solid rgba(255,255,255,.2);\n }\n}\n\n#privateAddress {\n align-items: flex-start;\n}\n#personalAddress::before,\n#privateAddress::before,\n#incontextSignup::before,\n#personalAddress.currentFocus::before,\n#personalAddress:hover::before,\n#privateAddress.currentFocus::before,\n#privateAddress:hover::before {\n filter: none;\n /* This is the same icon as `daxBase64` in `src/Form/logo-svg.js` */\n background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibTY0IDEyOGMzNS4zNDYgMCA2NC0yOC42NTQgNjQtNjRzLTI4LjY1NC02NC02NC02NC02NCAyOC42NTQtNjQgNjQgMjguNjU0IDY0IDY0IDY0eiIgZmlsbD0iI2RlNTgzMyIgZmlsbC1ydWxlPSJ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\n align-items: flex-start;\n font-size: 14px;\n padding: 4px 8px;\n}\n.tooltip__button--email__primary-text {\n font-weight: bold;\n}\n.tooltip__button--email__secondary-text {\n font-size: 12px;\n}\n\n/* Email Protection signup notice */\n:not(.top-autofill) .tooltip--email-signup {\n text-align: left;\n color: #222222;\n padding: 16px 20px;\n width: 380px;\n}\n\n.tooltip--email-signup h1 {\n font-weight: 700;\n font-size: 16px;\n line-height: 1.5;\n margin: 0;\n}\n\n.tooltip--email-signup p {\n font-weight: 400;\n font-size: 14px;\n line-height: 1.4;\n}\n\n.notice-controls {\n display: flex;\n}\n\n.tooltip--email-signup .notice-controls > * {\n border-radius: 8px;\n border: 0;\n cursor: pointer;\n display: inline-block;\n font-family: inherit;\n font-style: normal;\n font-weight: bold;\n padding: 8px 12px;\n text-decoration: none;\n}\n\n.notice-controls .ghost {\n margin-left: 1rem;\n}\n\n.tooltip--email-signup a.primary {\n background: #3969EF;\n color: #fff;\n}\n\n.tooltip--email-signup a.primary:hover,\n.tooltip--email-signup a.primary:focus {\n background: #2b55ca;\n}\n\n.tooltip--email-signup a.primary:active {\n background: #1e42a4;\n}\n\n.tooltip--email-signup button.ghost {\n background: transparent;\n color: #3969EF;\n}\n\n.tooltip--email-signup button.ghost:hover,\n.tooltip--email-signup button.ghost:focus {\n background-color: rgba(0, 0, 0, 0.06);\n color: #2b55ca;\n}\n\n.tooltip--email-signup button.ghost:active {\n background-color: rgba(0, 0, 0, 0.12);\n color: #1e42a4;\n}\n\n.tooltip--email-signup button.close-tooltip {\n background-color: transparent;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMiAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wLjI5Mjg5NCAwLjY1NjkwN0MwLjY4MzQxOCAwLjI2NjM4MyAxLjMxNjU4IDAuMjY2MzgzIDEuNzA3MTEgMC42NTY5MDdMNiA0Ljk0OThMMTAuMjkyOSAwLjY1NjkwN0MxMC42ODM0IDAuMjY2MzgzIDExLjMxNjYgMC4yNjYzODMgMTEuNzA3MSAwLjY1NjkwN0MxMi4wOTc2IDEuMDQ3NDMgMTIuMDk3NiAxLjY4MDYgMTEuNzA3MSAyLjA3MTEyTDcuNDE0MjEgNi4zNjQwMUwxMS43MDcxIDEwLjY1NjlDMTIuMDk3NiAxMS4wNDc0IDEyLjA5NzYgMTEuNjgwNiAxMS43MDcxIDEyLjA3MTFDMTEuMzE2NiAxMi40NjE2IDEwLjY4MzQgMTIuNDYxNiAxMC4yOTI5IDEyLjA3MTFMNiA3Ljc3ODIzTDEuNzA3MTEgMTIuMDcxMUMxLjMxNjU4IDEyLjQ2MTYgMC42ODM0MTcgMTIuNDYxNiAwLjI5Mjg5MyAxMi4wNzExQy0wLjA5NzYzMTEgMTEuNjgwNiAtMC4wOTc2MzExIDExLjA0NzQgMC4yOTI4OTMgMTAuNjU2OUw0LjU4NTc5IDYuMzY0MDFMMC4yOTI4OTQgMi4wNzExMkMtMC4wOTc2MzA2IDEuNjgwNiAtMC4wOTc2MzA2IDEuMDQ3NDMgMC4yOTI4OTQgMC42NTY5MDdaIiBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIwLjg0Ii8+Cjwvc3ZnPgo=);\n background-position: center center;\n background-repeat: no-repeat;\n border: 0;\n cursor: pointer;\n padding: 16px;\n position: absolute;\n right: 12px;\n top: 12px;\n}\n"; +const CSS_STYLES = ":root {\n color-scheme: light dark;\n}\n\n.wrapper *, .wrapper *::before, .wrapper *::after {\n box-sizing: border-box;\n}\n.wrapper {\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n font-family: 'DDG_ProximaNova', 'Proxima Nova', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n -webkit-font-smoothing: antialiased;\n z-index: 2147483647;\n}\n.wrapper--data {\n font-family: 'SF Pro Text', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n}\n:not(.top-autofill) .tooltip {\n position: absolute;\n width: 300px;\n max-width: calc(100vw - 25px);\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--data, #topAutofill {\n background-color: rgba(242, 240, 240, 1);\n -webkit-backdrop-filter: blur(40px);\n backdrop-filter: blur(40px);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data, #topAutofill {\n background: rgb(100, 98, 102, .9);\n }\n}\n.tooltip--data {\n padding: 6px;\n font-size: 13px;\n line-height: 14px;\n width: 315px;\n max-height: 290px;\n overflow-y: auto;\n}\n.top-autofill .tooltip--data {\n min-height: 100vh;\n}\n.tooltip--data.tooltip--incontext-signup {\n width: 360px;\n}\n:not(.top-autofill) .tooltip--data {\n top: 100%;\n left: 100%;\n border: 0.5px solid rgba(255, 255, 255, 0.2);\n border-radius: 6px;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);\n}\n@media (prefers-color-scheme: dark) {\n :not(.top-autofill) .tooltip--data {\n border: 1px solid rgba(255, 255, 255, 0.2);\n }\n}\n:not(.top-autofill) .tooltip--email {\n top: calc(100% + 6px);\n right: calc(100% - 48px);\n padding: 8px;\n border: 1px solid #D0D0D0;\n border-radius: 10px;\n background-color: #FFFFFF;\n font-size: 14px;\n line-height: 1.3;\n color: #333333;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);\n}\n.tooltip--email__caret {\n position: absolute;\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--email__caret::before,\n.tooltip--email__caret::after {\n content: \"\";\n width: 0;\n height: 0;\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n display: block;\n border-bottom: 8px solid #D0D0D0;\n position: absolute;\n right: -28px;\n}\n.tooltip--email__caret::before {\n border-bottom-color: #D0D0D0;\n top: -1px;\n}\n.tooltip--email__caret::after {\n border-bottom-color: #FFFFFF;\n top: 0px;\n}\n\n/* Buttons */\n.tooltip__button {\n display: flex;\n width: 100%;\n padding: 8px 8px 8px 0px;\n font-family: inherit;\n color: inherit;\n background: transparent;\n border: none;\n border-radius: 6px;\n}\n.tooltip__button.currentFocus,\n.wrapper:not(.top-autofill) .tooltip__button:hover {\n background-color: #3969EF;\n color: #FFFFFF;\n}\n\n/* Data autofill tooltip specific */\n.tooltip__button--data {\n position: relative;\n min-height: 48px;\n flex-direction: row;\n justify-content: flex-start;\n font-size: inherit;\n font-weight: 500;\n line-height: 16px;\n text-align: left;\n border-radius: 3px;\n}\n.tooltip--data__item-container {\n max-height: 220px;\n overflow: auto;\n}\n.tooltip__button--data:first-child {\n margin-top: 0;\n}\n.tooltip__button--data:last-child {\n margin-bottom: 0;\n}\n.tooltip__button--data::before {\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 20px 20px;\n background-repeat: no-repeat;\n background-position: center 6px;\n}\n#provider_locked::after {\n position: absolute;\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 11px 13px;\n background-repeat: no-repeat;\n background-position: right bottom;\n}\n.tooltip__button--data.currentFocus:not(.tooltip__button--data--bitwarden)::before,\n.wrapper:not(.top-autofill) .tooltip__button--data:not(.tooltip__button--data--bitwarden):hover::before {\n filter: invert(100%);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before,\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before {\n filter: invert(100%);\n opacity: .9;\n }\n}\n.tooltip__button__text-container {\n margin: auto 0;\n}\n.label {\n display: block;\n font-weight: 400;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.8);\n font-size: 13px;\n line-height: 1;\n}\n.label + .label {\n margin-top: 2px;\n}\n.label.label--medium {\n font-weight: 500;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.9);\n}\n.label.label--small {\n font-size: 11px;\n font-weight: 400;\n letter-spacing: 0.06px;\n color: rgba(0,0,0,0.6);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data .label {\n color: #ffffff;\n }\n .tooltip--data .label--medium {\n color: #ffffff;\n }\n .tooltip--data .label--small {\n color: #cdcdcd;\n }\n}\n.tooltip__button.currentFocus .label,\n.wrapper:not(.top-autofill) .tooltip__button:hover .label {\n color: #FFFFFF;\n}\n\n.tooltip__button--manage {\n font-size: 13px;\n padding: 5px 9px;\n border-radius: 3px;\n margin: 0;\n}\n\n/* Icons */\n.tooltip__button--data--credentials::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjYzNiA4LjY4MkM5LjYzNiA1LjU0NCAxMi4xOCAzIDE1LjMxOCAzIDE4LjQ1NiAzIDIxIDUuNTQ0IDIxIDguNjgyYzAgMy4xMzgtMi41NDQgNS42ODItNS42ODIgNS42ODItLjY5MiAwLTEuMzUzLS4xMjQtMS45NjQtLjM0OS0uMzcyLS4xMzctLjc5LS4wNDEtMS4wNjYuMjQ1bC0uNzEzLjc0SDEwYy0uNTUyIDAtMSAuNDQ4LTEgMXYySDdjLS41NTIgMC0xIC40NDgtMSAxdjJIM3YtMi44ODFsNi42NjgtNi42NjhjLjI2NS0uMjY2LjM2LS42NTguMjQ0LTEuMDE1LS4xNzktLjU1MS0uMjc2LTEuMTQtLjI3Ni0xLjc1NHpNMTUuMzE4IDFjLTQuMjQyI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Dk5MTggMS43NSA1LjE4NzUgMS43NUM0LjI3NTgyIDEuNzUgMy40MDE0OCAyLjExMjE2IDIuNzU2ODIgMi43NTY4MkMyLjExMjE2IDMuNDAxNDggMS43NSA0LjI3NTgyIDEuNzUgNS4xODc1VjUuOTk0ODlDMS42MTczMiA2LjEwNjM3IDEuNDk4MTcgNi4yMzQ0NiAxLjM5NTc4IDYuMzc2NzhDMS4xMzkyNiA2LjczMzM1IDEuMDAwODUgNy4xNjEzMSAxIDcuNjAwNTdaTTQuOTY4NyA0Ljk2ODdDNS4wMjY5NCA0LjkxMDQ3IDUuMTA1MzIgNC44NzY5OSA1LjE4NzUgNC44NzUwN0M1LjI2OTY4IDQuODc2OTkgNS4zNDgwNiA0LjkxMDQ3IDUuNDA2MyA0Ljk2ODdDNS40NjU0MiA1LjAyNzgzIDUuNDk5MDQgNS4xMDc3NCA1LjUgNS4xOTEzVjUuNUg0Ljg3NVY1LjE5MTNDNC44NzU5NiA1LjEwNzc0IDQuOTA5NTggNS4wMjc4MyA0Ljk2ODcgNC45Njg3WiIgZmlsbD0iIzIyMjIyMiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=');\n}\n\nhr {\n display: block;\n margin: 5px 9px;\n border: none; /* reset the border */\n border-top: 1px solid rgba(0,0,0,.1);\n}\n\nhr:first-child {\n display: none;\n}\n\n@media (prefers-color-scheme: dark) {\n hr {\n border-top: 1px solid rgba(255,255,255,.2);\n }\n}\n\n#privateAddress {\n align-items: flex-start;\n}\n#personalAddress::before,\n#privateAddress::before,\n#incontextSignup::before,\n#personalAddress.currentFocus::before,\n#personalAddress:hover::before,\n#privateAddress.currentFocus::before,\n#privateAddress:hover::before {\n filter: none;\n /* This is the same icon as `daxBase64` in `src/Form/logo-svg.js` */\n background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgeG1sbnM9Imh0dH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NS01OC43NXMtMjYuMzAzLTU4Ljc1LTU4Ljc1LTU4Ljc1LTU4Ljc1IDI2LjMwMy01OC43NSA1OC43NSAyNi4zMDMgNTguNzUgNTguNzUgNTguNzV6IiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz4KPC9zdmc+');\n}\n\n/* Email tooltip specific */\n.tooltip__button--email {\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n font-size: 14px;\n padding: 4px 8px;\n}\n.tooltip__button--email__primary-text {\n font-weight: bold;\n}\n.tooltip__button--email__secondary-text {\n font-size: 12px;\n}\n\n/* Email Protection signup notice */\n:not(.top-autofill) .tooltip--email-signup {\n text-align: left;\n color: #222222;\n padding: 16px 20px;\n width: 380px;\n}\n\n.tooltip--email-signup h1 {\n font-weight: 700;\n font-size: 16px;\n line-height: 1.5;\n margin: 0;\n}\n\n.tooltip--email-signup p {\n font-weight: 400;\n font-size: 14px;\n line-height: 1.4;\n}\n\n.notice-controls {\n display: flex;\n}\n\n.tooltip--email-signup .notice-controls > * {\n border-radius: 8px;\n border: 0;\n cursor: pointer;\n display: inline-block;\n font-family: inherit;\n font-style: normal;\n font-weight: bold;\n padding: 8px 12px;\n text-decoration: none;\n}\n\n.notice-controls .ghost {\n margin-left: 1rem;\n}\n\n.tooltip--email-signup a.primary {\n background: #3969EF;\n color: #fff;\n}\n\n.tooltip--email-signup a.primary:hover,\n.tooltip--email-signup a.primary:focus {\n background: #2b55ca;\n}\n\n.tooltip--email-signup a.primary:active {\n background: #1e42a4;\n}\n\n.tooltip--email-signup button.ghost {\n background: transparent;\n color: #3969EF;\n}\n\n.tooltip--email-signup button.ghost:hover,\n.tooltip--email-signup button.ghost:focus {\n background-color: rgba(0, 0, 0, 0.06);\n color: #2b55ca;\n}\n\n.tooltip--email-signup button.ghost:active {\n background-color: rgba(0, 0, 0, 0.12);\n color: #1e42a4;\n}\n\n.tooltip--email-signup button.close-tooltip {\n background-color: transparent;\n background-image: url(data:image/sv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 16px;\n position: absolute;\n right: 12px;\n top: 12px;\n}\n"; exports.CSS_STYLES = CSS_STYLES; },{}],55:[function(require,module,exports){ diff --git a/src/Form/inputStyles.js b/src/Form/inputStyles.js index fdf5fa06d..f1a695571 100644 --- a/src/Form/inputStyles.js +++ b/src/Form/inputStyles.js @@ -29,7 +29,7 @@ const getIcon = (input, form, type = 'base') => { */ const getBasicStyles = (input, icon) => ({ // Height must be > 0 to account for fields initially hidden - 'background-size': `auto ${input.offsetHeight <= 30 && input.offsetHeight > 0 ? '100%' : '26px'}`, + 'background-size': `auto ${input.offsetHeight <= 30 && input.offsetHeight > 0 ? '100%' : '24px'}`, 'background-position': 'center right', 'background-repeat': 'no-repeat', 'background-origin': 'content-box', diff --git a/src/UI/HTMLTooltip.js b/src/UI/HTMLTooltip.js index ce4875a61..4c7b7faba 100644 --- a/src/UI/HTMLTooltip.js +++ b/src/UI/HTMLTooltip.js @@ -27,14 +27,14 @@ export const defaultOptions = { wrapperClass: '', tooltipPositionClass: (top, left) => ` .tooltip { - transform: translate(${left}px, ${top}px) !important; + transform: translate(${Math.floor(left)}px, ${Math.floor(top)}px) !important; } `, caretPositionClass: (top, left, isAboveInput) => ` .tooltip--email__caret { ${isAboveInput - ? `transform: translate(${left}px, ${top}px) rotate(180deg); transform-origin: 16px !important;` - : `transform: translate(${left}px, ${top}px) !important;` + ? `transform: translate(${Math.floor(left)}px, ${Math.floor(top)}px) rotate(180deg); transform-origin: 18px !important;` + : `transform: translate(${Math.floor(left)}px, ${Math.floor(top)}px) !important;` } }`, css: ``, diff --git a/src/UI/styles/autofill-tooltip-styles.css b/src/UI/styles/autofill-tooltip-styles.css index 3dbe7ac18..7eb2c493f 100644 --- a/src/UI/styles/autofill-tooltip-styles.css +++ b/src/UI/styles/autofill-tooltip-styles.css @@ -64,7 +64,7 @@ } :not(.top-autofill) .tooltip--email { top: calc(100% + 6px); - right: calc(100% - 46px); + right: calc(100% - 48px); padding: 8px; border: 1px solid #D0D0D0; border-radius: 10px; @@ -89,7 +89,7 @@ display: block; border-bottom: 8px solid #D0D0D0; position: absolute; - right: -26px; + right: -28px; } .tooltip--email__caret::before { border-bottom-color: #D0D0D0; diff --git a/swift-package/Resources/assets/autofill-debug.js b/swift-package/Resources/assets/autofill-debug.js index a33be6fe9..7486f3f0b 100644 --- a/swift-package/Resources/assets/autofill-debug.js +++ b/swift-package/Resources/assets/autofill-debug.js @@ -12221,7 +12221,7 @@ const getIcon = function (input, form) { const getBasicStyles = (input, icon) => ({ // Height must be > 0 to account for fields initially hidden - 'background-size': "auto ".concat(input.offsetHeight <= 30 && input.offsetHeight > 0 ? '100%' : '26px'), + 'background-size': "auto ".concat(input.offsetHeight <= 30 && input.offsetHeight > 0 ? '100%' : '24px'), 'background-position': 'center right', 'background-repeat': 'no-repeat', 'background-origin': 'content-box', @@ -16183,8 +16183,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope /** @type {HTMLTooltipOptions} */ const defaultOptions = { wrapperClass: '', - tooltipPositionClass: (top, left) => "\n .tooltip {\n transform: translate(".concat(left, "px, ").concat(top, "px) !important;\n }\n "), - caretPositionClass: (top, left, isAboveInput) => "\n .tooltip--email__caret {\n ".concat(isAboveInput ? "transform: translate(".concat(left, "px, ").concat(top, "px) rotate(180deg); transform-origin: 16px !important;") : "transform: translate(".concat(left, "px, ").concat(top, "px) !important;"), "\n }"), + tooltipPositionClass: (top, left) => "\n .tooltip {\n transform: translate(".concat(Math.floor(left), "px, ").concat(Math.floor(top), "px) !important;\n }\n "), + caretPositionClass: (top, left, isAboveInput) => "\n .tooltip--email__caret {\n ".concat(isAboveInput ? "transform: translate(".concat(Math.floor(left), "px, ").concat(Math.floor(top), "px) rotate(180deg); transform-origin: 18px !important;") : "transform: translate(".concat(Math.floor(left), "px, ").concat(Math.floor(top), "px) !important;"), "\n }"), css: ""), setSize: undefined, remove: () => { @@ -17613,7 +17613,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.CSS_STYLES = void 0; -const CSS_STYLES = ":root {\n color-scheme: light dark;\n}\n\n.wrapper *, .wrapper *::before, .wrapper *::after {\n box-sizing: border-box;\n}\n.wrapper {\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n font-family: 'DDG_ProximaNova', 'Proxima Nova', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n -webkit-font-smoothing: antialiased;\n z-index: 2147483647;\n}\n.wrapper--data {\n font-family: 'SF Pro Text', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n}\n:not(.top-autofill) .tooltip {\n position: absolute;\n width: 300px;\n max-width: calc(100vw - 25px);\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--data, #topAutofill {\n background-color: rgba(242, 240, 240, 1);\n -webkit-backdrop-filter: blur(40px);\n backdrop-filter: blur(40px);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data, #topAutofill {\n background: rgb(100, 98, 102, .9);\n }\n}\n.tooltip--data {\n padding: 6px;\n font-size: 13px;\n line-height: 14px;\n width: 315px;\n max-height: 290px;\n overflow-y: auto;\n}\n.top-autofill .tooltip--data {\n min-height: 100vh;\n}\n.tooltip--data.tooltip--incontext-signup {\n width: 360px;\n}\n:not(.top-autofill) .tooltip--data {\n top: 100%;\n left: 100%;\n border: 0.5px solid rgba(255, 255, 255, 0.2);\n border-radius: 6px;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);\n}\n@media (prefers-color-scheme: dark) {\n :not(.top-autofill) .tooltip--data {\n border: 1px solid rgba(255, 255, 255, 0.2);\n }\n}\n:not(.top-autofill) .tooltip--email {\n top: calc(100% + 6px);\n right: calc(100% - 46px);\n padding: 8px;\n border: 1px solid #D0D0D0;\n border-radius: 10px;\n background-color: #FFFFFF;\n font-size: 14px;\n line-height: 1.3;\n color: #333333;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);\n}\n.tooltip--email__caret {\n position: absolute;\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--email__caret::before,\n.tooltip--email__caret::after {\n content: \"\";\n width: 0;\n height: 0;\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n display: block;\n border-bottom: 8px solid #D0D0D0;\n position: absolute;\n right: -26px;\n}\n.tooltip--email__caret::before {\n border-bottom-color: #D0D0D0;\n top: -1px;\n}\n.tooltip--email__caret::after {\n border-bottom-color: #FFFFFF;\n top: 0px;\n}\n\n/* Buttons */\n.tooltip__button {\n display: flex;\n width: 100%;\n padding: 8px 8px 8px 0px;\n font-family: inherit;\n color: inherit;\n background: transparent;\n border: none;\n border-radius: 6px;\n}\n.tooltip__button.currentFocus,\n.wrapper:not(.top-autofill) .tooltip__button:hover {\n background-color: #3969EF;\n color: #FFFFFF;\n}\n\n/* Data autofill tooltip specific */\n.tooltip__button--data {\n position: relative;\n min-height: 48px;\n flex-direction: row;\n justify-content: flex-start;\n font-size: inherit;\n font-weight: 500;\n line-height: 16px;\n text-align: left;\n border-radius: 3px;\n}\n.tooltip--data__item-container {\n max-height: 220px;\n overflow: auto;\n}\n.tooltip__button--data:first-child {\n margin-top: 0;\n}\n.tooltip__button--data:last-child {\n margin-bottom: 0;\n}\n.tooltip__button--data::before {\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 20px 20px;\n background-repeat: no-repeat;\n background-position: center 6px;\n}\n#provider_locked::after {\n position: absolute;\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 11px 13px;\n background-repeat: no-repeat;\n background-position: right bottom;\n}\n.tooltip__button--data.currentFocus:not(.tooltip__button--data--bitwarden)::before,\n.wrapper:not(.top-autofill) .tooltip__button--data:not(.tooltip__button--data--bitwarden):hover::before {\n filter: invert(100%);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before,\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before {\n filter: invert(100%);\n opacity: .9;\n }\n}\n.tooltip__button__text-container {\n margin: auto 0;\n}\n.label {\n display: block;\n font-weight: 400;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.8);\n font-size: 13px;\n line-height: 1;\n}\n.label + .label {\n margin-top: 2px;\n}\n.label.label--medium {\n font-weight: 500;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.9);\n}\n.label.label--small {\n font-size: 11px;\n font-weight: 400;\n letter-spacing: 0.06px;\n color: rgba(0,0,0,0.6);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data .label {\n color: #ffffff;\n }\n .tooltip--data .label--medium {\n color: #ffffff;\n }\n .tooltip--data .label--small {\n color: #cdcdcd;\n }\n}\n.tooltip__button.currentFocus .label,\n.wrapper:not(.top-autofill) .tooltip__button:hover .label {\n color: #FFFFFF;\n}\n\n.tooltip__button--manage {\n font-size: 13px;\n padding: 5px 9px;\n border-radius: 3px;\n margin: 0;\n}\n\n/* Icons */\n.tooltip__button--data--credentials::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjYzNiA4LjY4MkM5LjYzNiA1LjU0NCAxMi4xOCAzIDE1LjMxOCAzIDE4LjQ1NiAzIDIxIDUuNTQ0IDIxIDguNjgyYzAgMy4xMzgtMi41NDQgNS42ODItNS42ODIgNS42ODItLjY5MiAwLTEuMzUzLS4xMjQtMS45NjQtLjM0OS0uMzcyLS4xMzctLjc5LS4wNDEtMS4wNjYuMjQ1bC0uNzEzLjc0SDEwYy0u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MzMzNSA4Ljk3OTIyIDYuMzc2NzhDOC44NzY4MyA2LjIzNDQ2IDguNzU3NjggNi4xMDYzNyA4LjYyNSA1Ljk5NDg5VjUuMTg3NUM4LjYyNSA0LjI3NTgyIDguMjYyODQgMy40MDE0OCA3LjYxODE4IDIuNzU2ODJDNi45NzM1MiAyLjExMjE2IDYuMDk5MTggMS43NSA1LjE4NzUgMS43NUM0LjI3NTgyIDEuNzUgMy40MDE0OCAyLjExMjE2IDIuNzU2ODIgMi43NTY4MkMyLjExMjE2IDMuNDAxNDggMS43NSA0LjI3NTgyIDEuNzUgNS4xODc1VjUuOTk0ODlDMS42MTczMiA2LjEwNjM3IDEuNDk4MTcgNi4yMzQ0NiAxLjM5NTc4IDYuMzc2NzhDMS4xMzkyNiA2LjczMzM1IDEuMDAwODUgNy4xNjEzMSAxIDcuNjAwNTdaTTQuOTY4NyA0Ljk2ODdDNS4wMjY5NCA0LjkxMDQ3IDUuMTA1MzIgNC44NzY5OSA1LjE4NzUgNC44NzUwN0M1LjI2OTY4IDQuODc2OTkgNS4zNDgwNiA0LjkxMDQ3IDUuNDA2MyA0Ljk2ODdDNS40NjU0MiA1LjAyNzgzIDUuNDk5MDQgNS4xMDc3NCA1LjUgNS4xOTEzVjUuNUg0Ljg3NVY1LjE5MTNDNC44NzU5NiA1LjEwNzc0IDQuOTA5NTggNS4wMjc4MyA0Ljk2ODcgNC45Njg3WiIgZmlsbD0iIzIyMjIyMiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=');\n}\n\nhr {\n display: block;\n margin: 5px 9px;\n border: none; /* reset the border */\n border-top: 1px solid rgba(0,0,0,.1);\n}\n\nhr:first-child {\n display: none;\n}\n\n@media (prefers-color-scheme: dark) {\n hr {\n border-top: 1px solid rgba(255,255,255,.2);\n }\n}\n\n#privateAddress {\n align-items: flex-start;\n}\n#personalAddress::before,\n#privateAddress::before,\n#incontextSignup::before,\n#personalAddress.currentFocus::before,\n#personalAddress:hover::before,\n#privateAddress.currentFocus::before,\n#privateAddress:hover::before {\n filter: none;\n /* This is the same icon as `daxBase64` in `src/Form/logo-svg.js` */\n background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibTY0IDEyOGMzNS4zNDYgMCA2NC0yOC42NTQgNjQtNjRzLTI4LjY1NC02NC02NC02NC02NCAyOC42NTQtNjQgNjQgMjguNjU0IDY0IDY0IDY0eiIgZmlsbD0iI2RlNTgzMyIgZmlsbC1ydWxlPSJldmVub2RkIi8+CiAgICA8cGF0aCBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Im03MyAxMTEuNzVjMC0uNS4xMjMtLjYxNC0xLjQ2Ni0zLjc4Mi00LjIyNC04LjQ1OS04LjQ3LTIwLjM4NC02LjU0LTI4LjA3NS4zNTMtMS4zOTctMy45NzgtNTEuNzQ0LTcuMDQtNTMuMzY1LTMuNDAyLTEuODEzLTcuNTg4LTQuNjktMTEuNDE4LTUuMzMtMS45NDMtLjMxLTQuNDktLjE2NC02LjQ4Mi4xMDUtLjM1My4wNDctLjM2OC42ODMtLjAzLjc5OCAxLjMwOC40NDMgMi44OTUgMS4yMTIgMy44MyAyLjM3NS4xNzguMjItLjA2LjU2Ni0uMzQyLjU3Ny0uODgyLjAzMi0yLjQ4Mi40MDItNC41OTMgMi4xOTUtLjI0NC4yMDctLjA0MS41OTIuMjczLjUzIDQuNTM2LS44OTcgOS4xNy0uNDU1IDExLjkgMi4wMjcuMTc3LjE2LjA4NC40NS0uMTQ3LjUxMi0yMy42OTQgNi40NC0xOS4wMDMgMjcuMDUtMTIuNjk2IDUyLjM0NCA1LjYxOSAyMi41MyA3LjczMyAyOS43OTIgOC40IDMyLjAwNGEuNzE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uNjg1IDAgNTMuNzUtMjQuMDY1IDUzLjc1LTUzLjc1cy0yNC4wNjUtNTMuNzUtNTMuNzUtNTMuNzUtNTMuNzUgMjQuMDY1LTUzLjc1IDUzLjc1IDI0LjA2NSA1My43NSA1My43NSA1My43NXptMCA1YzMyLjQ0NyAwIDU4Ljc1LTI2LjMwMyA1OC43NS01OC43NXMtMjYuMzAzLTU4Ljc1LTU4Ljc1LTU4Ljc1LTU4Ljc1IDI2LjMwMy01OC43NSA1OC43NSAyNi4zMDMgNTguNzUgNTguNzUgNTguNzV6IiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz4KPC9zdmc+');\n}\n\n/* Email tooltip specific */\n.tooltip__button--email {\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n font-size: 14px;\n padding: 4px 8px;\n}\n.tooltip__button--email__primary-text {\n font-weight: bold;\n}\n.tooltip__button--email__secondary-text {\n font-size: 12px;\n}\n\n/* Email Protection signup notice */\n:not(.top-autofill) .tooltip--email-signup {\n text-align: left;\n color: #222222;\n padding: 16px 20px;\n width: 380px;\n}\n\n.tooltip--email-signup h1 {\n font-weight: 700;\n font-size: 16px;\n line-height: 1.5;\n margin: 0;\n}\n\n.tooltip--email-signup p {\n font-weight: 400;\n font-size: 14px;\n line-height: 1.4;\n}\n\n.notice-controls {\n display: flex;\n}\n\n.tooltip--email-signup .notice-controls > * {\n border-radius: 8px;\n border: 0;\n cursor: pointer;\n display: inline-block;\n font-family: inherit;\n font-style: normal;\n font-weight: bold;\n padding: 8px 12px;\n text-decoration: none;\n}\n\n.notice-controls .ghost {\n margin-left: 1rem;\n}\n\n.tooltip--email-signup a.primary {\n background: #3969EF;\n color: #fff;\n}\n\n.tooltip--email-signup a.primary:hover,\n.tooltip--email-signup a.primary:focus {\n background: #2b55ca;\n}\n\n.tooltip--email-signup a.primary:active {\n background: #1e42a4;\n}\n\n.tooltip--email-signup button.ghost {\n background: transparent;\n color: #3969EF;\n}\n\n.tooltip--email-signup button.ghost:hover,\n.tooltip--email-signup button.ghost:focus {\n background-color: rgba(0, 0, 0, 0.06);\n color: #2b55ca;\n}\n\n.tooltip--email-signup button.ghost:active {\n background-color: rgba(0, 0, 0, 0.12);\n color: #1e42a4;\n}\n\n.tooltip--email-signup button.close-tooltip {\n background-color: transparent;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMiAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wLjI5Mjg5NCAwLjY1NjkwN0MwLjY4MzQxOCAwLjI2NjM4MyAxLjMxNjU4IDAuMjY2MzgzIDEuNzA3MTEgMC42NTY5MDdMNiA0Ljk0OThMMTAuMjkyOSAwLjY1NjkwN0MxMC42ODM0IDAuMjY2MzgzIDExLjMxNjYgMC4yNjYzODMgMTEuNzA3MSAwLjY1NjkwN0MxMi4wOTc2IDEuMDQ3NDMgMTIuMDk3NiAxLjY4MDYgMTEuNzA3MSAyLjA3MTEyTDcuNDE0MjEgNi4zNjQwMUwxMS43MDcxIDEwLjY1NjlDMTIuMDk3NiAxMS4wNDc0IDEyLjA5NzYgMTEuNjgwNiAxMS43MDcxIDEyLjA3MTFDMTEuMzE2NiAxMi40NjE2IDEwLjY4MzQgMTIuNDYxNiAxMC4yOTI5IDEyLjA3MTFMNiA3Ljc3ODIzTDEuNzA3MTEgMTIuMDcxMUMxLjMxNjU4IDEyLjQ2MTYgMC42ODM0MTcgMTIuNDYxNiAwLjI5Mjg5MyAxMi4wNzExQy0wLjA5NzYzMTEgMTEuNjgwNiAtMC4wOTc2MzExIDExLjA0NzQgMC4yOTI4OTMgMTAuNjU2OUw0LjU4NTc5IDYuMzY0MDFMMC4yOTI4OTQgMi4wNzExMkMtMC4wOTc2MzA2IDEuNjgwNiAtMC4wOTc2MzA2IDEuMDQ3NDMgMC4yOTI4OTQgMC42NTY5MDdaIiBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIwLjg0Ii8+Cjwvc3ZnPgo=);\n background-position: center center;\n background-repeat: no-repeat;\n border: 0;\n cursor: pointer;\n padding: 16px;\n position: absolute;\n right: 12px;\n top: 12px;\n}\n"; +const CSS_STYLES = ":root {\n color-scheme: light dark;\n}\n\n.wrapper *, .wrapper *::before, .wrapper *::after {\n box-sizing: border-box;\n}\n.wrapper {\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n font-family: 'DDG_ProximaNova', 'Proxima Nova', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n -webkit-font-smoothing: antialiased;\n z-index: 2147483647;\n}\n.wrapper--data {\n font-family: 'SF Pro Text', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n}\n:not(.top-autofill) .tooltip {\n position: absolute;\n width: 300px;\n max-width: calc(100vw - 25px);\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--data, #topAutofill {\n background-color: rgba(242, 240, 240, 1);\n -webkit-backdrop-filter: blur(40px);\n backdrop-filter: blur(40px);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data, #topAutofill {\n background: rgb(100, 98, 102, .9);\n }\n}\n.tooltip--data {\n padding: 6px;\n font-size: 13px;\n line-height: 14px;\n width: 315px;\n max-height: 290px;\n overflow-y: auto;\n}\n.top-autofill .tooltip--data {\n min-height: 100vh;\n}\n.tooltip--data.tooltip--incontext-signup {\n width: 360px;\n}\n:not(.top-autofill) .tooltip--data {\n top: 100%;\n left: 100%;\n border: 0.5px solid rgba(255, 255, 255, 0.2);\n border-radius: 6px;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);\n}\n@media (prefers-color-scheme: dark) {\n :not(.top-autofill) .tooltip--data {\n border: 1px solid rgba(255, 255, 255, 0.2);\n }\n}\n:not(.top-autofill) .tooltip--email {\n top: calc(100% + 6px);\n right: calc(100% - 48px);\n padding: 8px;\n border: 1px solid #D0D0D0;\n border-radius: 10px;\n background-color: #FFFFFF;\n font-size: 14px;\n line-height: 1.3;\n color: #333333;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);\n}\n.tooltip--email__caret {\n position: absolute;\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--email__caret::before,\n.tooltip--email__caret::after {\n content: \"\";\n width: 0;\n height: 0;\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n display: block;\n border-bottom: 8px solid #D0D0D0;\n position: absolute;\n right: -28px;\n}\n.tooltip--email__caret::before {\n border-bottom-color: #D0D0D0;\n top: -1px;\n}\n.tooltip--email__caret::after {\n border-bottom-color: #FFFFFF;\n top: 0px;\n}\n\n/* Buttons */\n.tooltip__button {\n display: flex;\n width: 100%;\n padding: 8px 8px 8px 0px;\n font-family: inherit;\n color: inherit;\n background: transparent;\n border: none;\n border-radius: 6px;\n}\n.tooltip__button.currentFocus,\n.wrapper:not(.top-autofill) .tooltip__button:hover {\n background-color: #3969EF;\n color: #FFFFFF;\n}\n\n/* Data autofill tooltip specific */\n.tooltip__button--data {\n position: relative;\n min-height: 48px;\n flex-direction: row;\n justify-content: flex-start;\n font-size: inherit;\n font-weight: 500;\n line-height: 16px;\n text-align: left;\n border-radius: 3px;\n}\n.tooltip--data__item-container {\n max-height: 220px;\n overflow: auto;\n}\n.tooltip__button--data:first-child {\n margin-top: 0;\n}\n.tooltip__button--data:last-child {\n margin-bottom: 0;\n}\n.tooltip__button--data::before {\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 20px 20px;\n background-repeat: no-repeat;\n background-position: center 6px;\n}\n#provider_locked::after {\n position: absolute;\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 11px 13px;\n background-repeat: no-repeat;\n background-position: right bottom;\n}\n.tooltip__button--data.currentFocus:not(.tooltip__button--data--bitwarden)::before,\n.wrapper:not(.top-autofill) .tooltip__button--data:not(.tooltip__button--data--bitwarden):hover::before {\n filter: invert(100%);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before,\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before {\n filter: invert(100%);\n opacity: .9;\n }\n}\n.tooltip__button__text-container {\n margin: auto 0;\n}\n.label {\n display: block;\n font-weight: 400;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.8);\n font-size: 13px;\n line-height: 1;\n}\n.label + .label {\n margin-top: 2px;\n}\n.label.label--medium {\n font-weight: 500;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.9);\n}\n.label.label--small {\n font-size: 11px;\n font-weight: 400;\n letter-spacing: 0.06px;\n color: rgba(0,0,0,0.6);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data .label {\n color: #ffffff;\n }\n .tooltip--data .label--medium {\n color: #ffffff;\n }\n .tooltip--data .label--small {\n color: #cdcdcd;\n }\n}\n.tooltip__button.currentFocus .label,\n.wrapper:not(.top-autofill) .tooltip__button:hover .label {\n color: #FFFFFF;\n}\n\n.tooltip__button--manage {\n font-size: 13px;\n padding: 5px 9px;\n border-radius: 3px;\n margin: 0;\n}\n\n/* Icons */\n.tooltip__button--data--credentials::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjYzNi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ards::before {\n background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+CiAgICA8cGF0aCBkPSJNNSA5Yy0uNTUyIDAtMSAuNDQ4LTEgMXYyYzAgLjU1Mi40NDggMSAxIDFoM2MuNTUyIDAgMS0uNDQ4IDEtMXYtMmMwLS41NTItLjQ0OC0xLTEtMUg1eiIgZmlsbD0iIzAwMCIvPgogICAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDZjMC0yLjIxIDEuNzktNCA0LTRoMTRjMi4yMSAwIDQgMS43OSA0IDR2MTJjMCAyLjIxLTEuNzkgNC00IDRINWMtMi4yMSAwLTQtMS43OS00LTRWNnptNC0yYy0xLjEwNSAwLTIgLjg5NS0yIDJ2OWgxOFY2YzAtMS4xMDUtLjg5NS0yLTItMkg1em0wIDE2Yy0xLjEwNSAwLTItLjg5NS0yLTJoMThjMCAxLjEwNS0uODk1IDItMiAySDV6IiBmaWxsPSIjMDAwIi8+Cjwvc3ZnPgo=');\n}\n.tooltip__button--data--identities::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSI+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEyIDIxYzIuMTQzIDAgNC4xMTEtLjc1IDUuNjU3LTItLjYyNi0uNTA2LTEuMzE4LS45MjctMi4wNi0xLjI1LTEuMS0uNDgtMi4yODUtLjczNS0zLjQ4Ni0uNzUtMS4yLS4wMTQtMi4zOTIuMjExLTMuNTA0LjY2NC0uODE3LjMzMy0xLjU4Ljc4My0yLjI2NCAxLjMzNiAxLjU0NiAxLjI1IDMuNTE0IDIgNS42NTcgMnptNC4zOTctNS4wODNjLjk2Ny40MjIgMS44NjYuOTggMi42NzIgMS42NTVDMjAuMjc5IDE2LjAzOSAyMSAxNC4xMDQgMjEgMTJjMC00Ljk3LTQuMDMtOS05LTlzLTkgNC4wMy05IDljMCAyLjEwNC43MjIgNC4wNCAxLjkzMiA1LjU3Mi44NzQtLjczNCAxLjg2LTEuMzI4IDIuOTIxLTEuNzYgMS4zNi0uNTU0IDIuODE2LS44MyA0LjI4My0uODExIDEuNDY3LjAxOCAyLjkxNi4zMyA0LjI2LjkxNnpNMTIgMjNjNi4wNzUgMCAxMS00LjkyNSAxMS0xMVMxOC4wNzUgMSAxMiAxIDEgNS45MjUgMSAxMnM0LjkyNSAxMSAxMSAxMXptMy0xM2MwIDEuNjU3LTEuMzQzIDMtMyAzcy0zLTEuMzQzLTMtMyAxLjM0My0zIDMtMyAzIDEuMzQzIDMgM3ptMiAwYzAgMi43NjEtMi4yMzkgNS01IDVzLTUtMi4yMzktNS01IDIuMjM5LTUgNS01IDUgMi4yMzkgNSA1eiIgZmlsbD0iIzAwMCIvPgo8L3N2Zz4=');\n}\n.tooltip__button--data--credentials.tooltip__button--data--bitwarden::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiByeD0iOCIgZmlsbD0iIzE3NUREQyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE4LjU2OTYgNS40MzM1NUMxOC41MDg0IDUuMzc0NDIgM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o=');\n}\n\nhr {\n display: block;\n margin: 5px 9px;\n border: none; /* reset the border */\n border-top: 1px solid rgba(0,0,0,.1);\n}\n\nhr:first-child {\n display: none;\n}\n\n@media (prefers-color-scheme: dark) {\n hr {\n border-top: 1px solid rgba(255,255,255,.2);\n }\n}\n\n#privateAddress {\n align-items: flex-start;\n}\n#personalAddress::before,\n#privateAddress::before,\n#incontextSignup::before,\n#personalAddress.currentFocus::before,\n#personalAddress:hover::before,\n#privateAddress.currentFocus::before,\n#privateAddress:hover::before {\n filter: none;\n /* This is the same icon as `daxBase64` in `src/Form/logo-svg.js` */\n background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibTY0IDEyOGMzNS4zNDYgMCA2NC0yOC42NTQgNjQtNjRzLTI4LjY1NC02NC02NC02NC02NCAyOC42NTQtNjQgNjQgMjguNjU0IDY0IDY0IDY0eiIgZmlsbD0iI2RlNTgzMyIgZmlsbC1ydWxlPSJldmVub2RkIi8+CiAgICA8cGF0aCBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Im03MyAxMTEuNzVjMC0uNS4xMjMtLjYxNC0xLjQ2Ni0zLjc4Mi00LjIyNC04LjQ1OS04LjQ3LTIwLjM4NC02LjU0LTI4LjA3NS4zNTMtMS4zOTctMy45NzgtNTEuNzQ0LTcuMDQtNTMuMzY1LTMuNDAyLTEuODEzLTcuNTg4LTQuNjktMTEuNDE4LTUuMzMtMS45NDMtLjMxLTQuNDktLjE2NC02LjQ4Mi4xMDUtLjM1My4wNDctLjM2OC42ODMtLjAzLjc5OCAxLjMwOC40NDMgMi44OTUgMS4yMTIgMy44MyAyLjM3NS4xNzguMjItLjA2LjU2Ni0uMzQyLjU3Ny0uODgyLjAzMi0yLjQ4Mi40MD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NDUgMCAwIDEgNC4wNSA0LjAzN3ptLTEuMTkzLTEuMzM4YTEuMDUgMS4wNSAwIDAgMCAtMi4wOTcgMCAxLjA0OCAxLjA0OCAwIDAgMCAyLjA5NyAweiIgZmlsbC1ydWxlPSJldmVub2RkIi8+CiAgICA8L2c+CiAgICA8cGF0aCBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Im02NCAxMTcuNzVjMjkuNjg1IDAgNTMuNzUtMjQuMDY1IDUzLjc1LTUzLjc1cy0yNC4wNjUtNTMuNzUtNTMuNzUtNTMuNzUtNTMuNzUgMjQuMDY1LTUzLjc1IDUzLjc1IDI0LjA2NSA1My43NSA1My43NSA1My43NXptMCA1YzMyLjQ0NyAwIDU4Ljc1LTI2LjMwMyA1OC43NS01OC43NXMtMjYuMzAzLTU4Ljc1LTU4Ljc1LTU4Ljc1LTU4Ljc1IDI2LjMwMy01OC43NSA1OC43NSAyNi4zMDMgNTguNzUgNTguNzUgNTguNzV6IiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz4KPC9zdmc+');\n}\n\n/* Email tooltip specific */\n.tooltip__button--email {\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n font-size: 14px;\n padding: 4px 8px;\n}\n.tooltip__button--email__primary-text {\n font-weight: bold;\n}\n.tooltip__button--email__secondary-text {\n font-size: 12px;\n}\n\n/* Email Protection signup notice */\n:not(.top-autofill) .tooltip--email-signup {\n text-align: left;\n color: #222222;\n padding: 16px 20px;\n width: 380px;\n}\n\n.tooltip--email-signup h1 {\n font-weight: 700;\n font-size: 16px;\n line-height: 1.5;\n margin: 0;\n}\n\n.tooltip--email-signup p {\n font-weight: 400;\n font-size: 14px;\n line-height: 1.4;\n}\n\n.notice-controls {\n display: flex;\n}\n\n.tooltip--email-signup .notice-controls > * {\n border-radius: 8px;\n border: 0;\n cursor: pointer;\n display: inline-block;\n font-family: inherit;\n font-style: normal;\n font-weight: bold;\n padding: 8px 12px;\n text-decoration: none;\n}\n\n.notice-controls .ghost {\n margin-left: 1rem;\n}\n\n.tooltip--email-signup a.primary {\n background: #3969EF;\n color: #fff;\n}\n\n.tooltip--email-signup a.primary:hover,\n.tooltip--email-signup a.primary:focus {\n background: #2b55ca;\n}\n\n.tooltip--email-signup a.primary:active {\n background: #1e42a4;\n}\n\n.tooltip--email-signup button.ghost {\n background: transparent;\n color: #3969EF;\n}\n\n.tooltip--email-signup button.ghost:hover,\n.tooltip--email-signup button.ghost:focus {\n background-color: rgba(0, 0, 0, 0.06);\n color: #2b55ca;\n}\n\n.tooltip--email-signup button.ghost:active {\n background-color: rgba(0, 0, 0, 0.12);\n color: #1e42a4;\n}\n\n.tooltip--email-signup button.close-tooltip {\n background-color: transparent;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMiAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wLjI5Mjg5NCAwLjY1NjkwN0MwLjY4MzQxOCAwLjI2NjM4MyAxLjMxNjU4IDAuMjY2MzgzIDEuNzA3MTEgMC42NTY5MDdMNiA0Ljk0OThMMTAuMjkyOSAwLjY1NjkwN0MxMC42ODM0IDAuMjY2MzgzIDExLjMxNjYgMC4yNjYzODMgMTEuNzA3MSAwLjY1NjkwN0MxMi4wOTc2IDEuMDQ3NDMgMTIuMDk3NiAxLjY4MDYgMTEuNzA3MSAyLjA3MTEyTDcuNDE0MjEgNi4zNjQwMUwxMS43MDcxIDEwLjY1NjlDMTIuMDk3NiAxMS4wNDc0IDEyLjA5NzYgMTEuNjgwNiAxMS43MDcxIDEyLjA3MTFDMTEuMzE2NiAxMi40NjE2IDEwLjY4MzQgMTIuNDYxNiAxMC4yOTI5IDEyLjA3MTFMNiA3Ljc3ODIzTDEuNzA3MTEgMTIuMDcxMUMxLjMxNjU4IDEyLjQ2MTYgMC42ODM0MTcgMTIuNDYxNiAwLjI5Mjg5MyAxMi4wNzExQy0wLjA5NzYzMTEgMTEuNjgwNiAtMC4wOTc2MzExIDExLjA0NzQgMC4yOTI4OTMgMTAuNjU2OUw0LjU4NTc5IDYuMzY0MDFMMC4yOTI4OTQgMi4wNzExMkMtMC4wOTc2MzA2IDEuNjgwNiAtMC4wOTc2MzA2IDEuMDQ3NDMgMC4yOTI4OTQgMC42NTY5MDdaIiBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIwLjg0Ii8+Cjwvc3ZnPgo=);\n background-position: center center;\n background-repeat: no-repeat;\n border: 0;\n cursor: pointer;\n padding: 16px;\n position: absolute;\n right: 12px;\n top: 12px;\n}\n"; exports.CSS_STYLES = CSS_STYLES; },{}],63:[function(require,module,exports){ diff --git a/swift-package/Resources/assets/autofill.css b/swift-package/Resources/assets/autofill.css index 3dbe7ac18..7eb2c493f 100644 --- a/swift-package/Resources/assets/autofill.css +++ b/swift-package/Resources/assets/autofill.css @@ -64,7 +64,7 @@ } :not(.top-autofill) .tooltip--email { top: calc(100% + 6px); - right: calc(100% - 46px); + right: calc(100% - 48px); padding: 8px; border: 1px solid #D0D0D0; border-radius: 10px; @@ -89,7 +89,7 @@ display: block; border-bottom: 8px solid #D0D0D0; position: absolute; - right: -26px; + right: -28px; } .tooltip--email__caret::before { border-bottom-color: #D0D0D0; diff --git a/swift-package/Resources/assets/autofill.js b/swift-package/Resources/assets/autofill.js index 628a7c963..a285cfa8a 100644 --- a/swift-package/Resources/assets/autofill.js +++ b/swift-package/Resources/assets/autofill.js @@ -8545,7 +8545,7 @@ const getIcon = function (input, form) { const getBasicStyles = (input, icon) => ({ // Height must be > 0 to account for fields initially hidden - 'background-size': "auto ".concat(input.offsetHeight <= 30 && input.offsetHeight > 0 ? '100%' : '26px'), + 'background-size': "auto ".concat(input.offsetHeight <= 30 && input.offsetHeight > 0 ? '100%' : '24px'), 'background-position': 'center right', 'background-repeat': 'no-repeat', 'background-origin': 'content-box', @@ -12507,8 +12507,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope /** @type {HTMLTooltipOptions} */ const defaultOptions = { wrapperClass: '', - tooltipPositionClass: (top, left) => "\n .tooltip {\n transform: translate(".concat(left, "px, ").concat(top, "px) !important;\n }\n "), - caretPositionClass: (top, left, isAboveInput) => "\n .tooltip--email__caret {\n ".concat(isAboveInput ? "transform: translate(".concat(left, "px, ").concat(top, "px) rotate(180deg); transform-origin: 16px !important;") : "transform: translate(".concat(left, "px, ").concat(top, "px) !important;"), "\n }"), + tooltipPositionClass: (top, left) => "\n .tooltip {\n transform: translate(".concat(Math.floor(left), "px, ").concat(Math.floor(top), "px) !important;\n }\n "), + caretPositionClass: (top, left, isAboveInput) => "\n .tooltip--email__caret {\n ".concat(isAboveInput ? "transform: translate(".concat(Math.floor(left), "px, ").concat(Math.floor(top), "px) rotate(180deg); transform-origin: 18px !important;") : "transform: translate(".concat(Math.floor(left), "px, ").concat(Math.floor(top), "px) !important;"), "\n }"), css: ""), setSize: undefined, remove: () => { @@ -13937,7 +13937,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.CSS_STYLES = void 0; -const CSS_STYLES = ":root {\n color-scheme: light dark;\n}\n\n.wrapper *, .wrapper *::before, .wrapper *::after {\n box-sizing: border-box;\n}\n.wrapper {\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n font-family: 'DDG_ProximaNova', 'Proxima Nova', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n -webkit-font-smoothing: antialiased;\n z-index: 2147483647;\n}\n.wrapper--data {\n font-family: 'SF Pro Text', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n}\n:not(.top-autofill) .tooltip {\n position: absolute;\n width: 300px;\n max-width: calc(100vw - 25px);\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--data, #topAutofill {\n background-color: rgba(242, 240, 240, 1);\n -webkit-backdrop-filter: blur(40px);\n backdrop-filter: blur(40px);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data, #topAutofill {\n background: rgb(100, 98, 102, .9);\n }\n}\n.tooltip--data {\n padding: 6px;\n font-size: 13px;\n line-height: 14px;\n width: 315px;\n max-height: 290px;\n overflow-y: auto;\n}\n.top-autofill .tooltip--data {\n min-height: 100vh;\n}\n.tooltip--data.tooltip--incontext-signup {\n width: 360px;\n}\n:not(.top-autofill) .tooltip--data {\n top: 100%;\n left: 100%;\n border: 0.5px solid rgba(255, 255, 255, 0.2);\n border-radius: 6px;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);\n}\n@media (prefers-color-scheme: dark) {\n :not(.top-autofill) .tooltip--data {\n border: 1px solid rgba(255, 255, 255, 0.2);\n }\n}\n:not(.top-autofill) .tooltip--email {\n top: calc(100% + 6px);\n right: calc(100% - 46px);\n padding: 8px;\n border: 1px solid #D0D0D0;\n border-radius: 10px;\n background-color: #FFFFFF;\n font-size: 14px;\n line-height: 1.3;\n color: #333333;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);\n}\n.tooltip--email__caret {\n position: absolute;\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--email__caret::before,\n.tooltip--email__caret::after {\n content: \"\";\n width: 0;\n height: 0;\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n display: block;\n border-bottom: 8px solid #D0D0D0;\n position: absolute;\n right: -26px;\n}\n.tooltip--email__caret::before {\n border-bottom-color: #D0D0D0;\n top: -1px;\n}\n.tooltip--email__caret::after {\n border-bottom-color: #FFFFFF;\n top: 0px;\n}\n\n/* Buttons */\n.tooltip__button {\n display: flex;\n width: 100%;\n padding: 8px 8px 8px 0px;\n font-family: inherit;\n color: inherit;\n background: transparent;\n border: none;\n border-radius: 6px;\n}\n.tooltip__button.currentFocus,\n.wrapper:not(.top-autofill) .tooltip__button:hover {\n background-color: #3969EF;\n color: #FFFFFF;\n}\n\n/* Data autofill tooltip specific */\n.tooltip__button--data {\n position: relative;\n min-height: 48px;\n flex-direction: row;\n justify-content: flex-start;\n font-size: inherit;\n font-weight: 500;\n line-height: 16px;\n text-align: left;\n border-radius: 3px;\n}\n.tooltip--data__item-container {\n max-height: 220px;\n overflow: auto;\n}\n.tooltip__button--data:first-child {\n margin-top: 0;\n}\n.tooltip__button--data:last-child {\n margin-bottom: 0;\n}\n.tooltip__button--data::before {\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 20px 20px;\n background-repeat: no-repeat;\n background-position: center 6px;\n}\n#provider_locked::after {\n position: absolute;\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 11px 13px;\n background-repeat: no-repeat;\n background-position: right bottom;\n}\n.tooltip__button--data.currentFocus:not(.tooltip__button--data--bitwarden)::before,\n.wrapper:not(.top-autofill) .tooltip__button--data:not(.tooltip__button--data--bitwarden):hover::before {\n filter: invert(100%);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before,\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before {\n filter: invert(100%);\n opacity: .9;\n }\n}\n.tooltip__button__text-container {\n margin: auto 0;\n}\n.label {\n display: block;\n font-weight: 400;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.8);\n font-size: 13px;\n line-height: 1;\n}\n.label + .label {\n margin-top: 2px;\n}\n.label.label--medium {\n font-weight: 500;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.9);\n}\n.label.label--small {\n font-size: 11px;\n font-weight: 400;\n letter-spacing: 0.06px;\n color: rgba(0,0,0,0.6);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data .label {\n color: #ffffff;\n }\n .tooltip--data .label--medium {\n color: #ffffff;\n }\n .tooltip--data .label--small {\n color: #cdcdcd;\n }\n}\n.tooltip__button.currentFocus .label,\n.wrapper:not(.top-autofill) .tooltip__button:hover .label {\n color: #FFFFFF;\n}\n\n.tooltip__button--manage {\n font-size: 13px;\n padding: 5px 9px;\n border-radius: 3px;\n margin: 0;\n}\n\n/* Icons */\n.tooltip__button--data--credentials::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjYzNiA4LjY4MkM5LjYzNiA1LjU0NCAxMi4xOCAzIDE1LjMxOCAzIDE4LjQ1NiAzIDIxIDUuNTQ0IDIxIDguNjgyYzAgMy4xMzgtMi41NDQgNS42ODItNS42ODIgNS42ODItLjY5MiAwLTEuMzUzLS4xMjQtMS45NjQtLjM0OS0uMzcyLS4xMzctLjc5LS4wNDEtMS4wNjYuMjQ1bC0uNzEzLjc0SDEwYy0uNTUyIDAtMSAuNDQ4LTEgMXYySDdjLS41NTIgMC0xIC40NDgtMSAxdjJIM3YtMi44ODFsNi42NjgtNi42NjhjLjI2NS0uMjY2LjM2LS42NTguMjQ0LTEuMDE1LS4xNzktLjU1MS0uMjc2LTEuMTQtLjI3Ni0xLjc1NHpNMTUuMzE4IDFjLTQuMjQyIDAtNy42ODIgMy40NC03LjY4MiA3LjY4MiAwIC42MDcuMDcxIDEuMi4yMDUgMS43NjdsLTYuNTQ4IDYuNTQ4Yy0uMTg4LjE4OC0uMjkzLjQ0Mi0uMjkzLjcwOFYyMmMwIC4yNjUuMTA1LjUyLjI5My43MDcuMTg3LjE4OC40NDIuMjkzLjcwNy4yOTN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0NiAxLjM5NTc4IDYuMzc2NzhDMS4xMzkyNiA2LjczMzM1IDEuMDAwODUgNy4xNjEzMSAxIDcuNjAwNTdaTTQuOTY4NyA0Ljk2ODdDNS4wMjY5NCA0LjkxMDQ3IDUuMTA1MzIgNC44NzY5OSA1LjE4NzUgNC44NzUwN0M1LjI2OTY4IDQuODc2OTkgNS4zNDgwNiA0LjkxMDQ3IDUuNDA2MyA0Ljk2ODdDNS40NjU0MiA1LjAyNzgzIDUuNDk5MDQgNS4xMDc3NCA1LjUgNS4xOTEzVjUuNUg0Ljg3NVY1LjE5MTNDNC44NzU5NiA1LjEwNzc0IDQuOTA5NTggNS4wMjc4MyA0Ljk2ODcgNC45Njg3WiIgZmlsbD0iIzIyMjIyMiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=');\n}\n\nhr {\n display: block;\n margin: 5px 9px;\n border: none; /* reset the border */\n border-top: 1px solid rgba(0,0,0,.1);\n}\n\nhr:first-child {\n display: none;\n}\n\n@media (prefers-color-scheme: dark) {\n hr {\n border-top: 1px solid rgba(255,255,255,.2);\n }\n}\n\n#privateAddress {\n align-items: flex-start;\n}\n#personalAddress::before,\n#privateAddress::before,\n#incontextSignup::before,\n#personalAddress.currentFocus::before,\n#personalAddress:hover::before,\n#privateAddress.currentFocus::before,\n#privateAddress:hover::before {\n filter: none;\n /* This is the same icon as `daxBase64` in `src/Form/logo-svg.js` */\n background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibTY0IDEyOGMzNS4zNDYgMCA2NC0yOC42NTQgNjQtNjRzLTI4LjY1NC02NC02NC02NC02NCAyOC42NTQtNjQgNjQgMjguNjU0IDY0IDY0IDY0eiIgZm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ific */\n.tooltip__button--email {\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n font-size: 14px;\n padding: 4px 8px;\n}\n.tooltip__button--email__primary-text {\n font-weight: bold;\n}\n.tooltip__button--email__secondary-text {\n font-size: 12px;\n}\n\n/* Email Protection signup notice */\n:not(.top-autofill) .tooltip--email-signup {\n text-align: left;\n color: #222222;\n padding: 16px 20px;\n width: 380px;\n}\n\n.tooltip--email-signup h1 {\n font-weight: 700;\n font-size: 16px;\n line-height: 1.5;\n margin: 0;\n}\n\n.tooltip--email-signup p {\n font-weight: 400;\n font-size: 14px;\n line-height: 1.4;\n}\n\n.notice-controls {\n display: flex;\n}\n\n.tooltip--email-signup .notice-controls > * {\n border-radius: 8px;\n border: 0;\n cursor: pointer;\n display: inline-block;\n font-family: inherit;\n font-style: normal;\n font-weight: bold;\n padding: 8px 12px;\n text-decoration: none;\n}\n\n.notice-controls .ghost {\n margin-left: 1rem;\n}\n\n.tooltip--email-signup a.primary {\n background: #3969EF;\n color: #fff;\n}\n\n.tooltip--email-signup a.primary:hover,\n.tooltip--email-signup a.primary:focus {\n background: #2b55ca;\n}\n\n.tooltip--email-signup a.primary:active {\n background: #1e42a4;\n}\n\n.tooltip--email-signup button.ghost {\n background: transparent;\n color: #3969EF;\n}\n\n.tooltip--email-signup button.ghost:hover,\n.tooltip--email-signup button.ghost:focus {\n background-color: rgba(0, 0, 0, 0.06);\n color: #2b55ca;\n}\n\n.tooltip--email-signup button.ghost:active {\n background-color: rgba(0, 0, 0, 0.12);\n color: #1e42a4;\n}\n\n.tooltip--email-signup button.close-tooltip {\n background-color: transparent;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMiAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wLjI5Mjg5NCAwLjY1NjkwN0MwLjY4MzQxOCAwLjI2NjM4MyAxLjMxNjU4IDAuMjY2MzgzIDEuNzA3MTEgMC42NTY5MDdMNiA0Ljk0OThMMTAuMjkyOSAwLjY1NjkwN0MxMC42ODM0IDAuMjY2MzgzIDExLjMxNjYgMC4yNjYzODMgMTEuNzA3MSAwLjY1NjkwN0MxMi4wOTc2IDEuMDQ3NDMgMTIuMDk3NiAxLjY4MDYgMTEuNzA3MSAyLjA3MTEyTDcuNDE0MjEgNi4zNjQwMUwxMS43MDcxIDEwLjY1NjlDMTIuMDk3NiAxMS4wNDc0IDEyLjA5NzYgMTEuNjgwNiAxMS43MDcxIDEyLjA3MTFDMTEuMzE2NiAxMi40NjE2IDEwLjY4MzQgMTIuNDYxNiAxMC4yOTI5IDEyLjA3MTFMNiA3Ljc3ODIzTDEuNzA3MTEgMTIuMDcxMUMxLjMxNjU4IDEyLjQ2MTYgMC42ODM0MTcgMTIuNDYxNiAwLjI5Mjg5MyAxMi4wNzExQy0wLjA5NzYzMTEgMTEuNjgwNiAtMC4wOTc2MzExIDExLjA0NzQgMC4yOTI4OTMgMTAuNjU2OUw0LjU4NTc5IDYuMzY0MDFMMC4yOTI4OTQgMi4wNzExMkMtMC4wOTc2MzA2IDEuNjgwNiAtMC4wOTc2MzA2IDEuMDQ3NDMgMC4yOTI4OTQgMC42NTY5MDdaIiBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIwLjg0Ii8+Cjwvc3ZnPgo=);\n background-position: center center;\n background-repeat: no-repeat;\n border: 0;\n cursor: pointer;\n padding: 16px;\n position: absolute;\n right: 12px;\n top: 12px;\n}\n"; +const CSS_STYLES = ":root {\n color-scheme: light dark;\n}\n\n.wrapper *, .wrapper *::before, .wrapper *::after {\n box-sizing: border-box;\n}\n.wrapper {\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n font-family: 'DDG_ProximaNova', 'Proxima Nova', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n -webkit-font-smoothing: antialiased;\n z-index: 2147483647;\n}\n.wrapper--data {\n font-family: 'SF Pro Text', system-ui, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',\n 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n}\n:not(.top-autofill) .tooltip {\n position: absolute;\n width: 300px;\n max-width: calc(100vw - 25px);\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--data, #topAutofill {\n background-color: rgba(242, 240, 240, 1);\n -webkit-backdrop-filter: blur(40px);\n backdrop-filter: blur(40px);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data, #topAutofill {\n background: rgb(100, 98, 102, .9);\n }\n}\n.tooltip--data {\n padding: 6px;\n font-size: 13px;\n line-height: 14px;\n width: 315px;\n max-height: 290px;\n overflow-y: auto;\n}\n.top-autofill .tooltip--data {\n min-height: 100vh;\n}\n.tooltip--data.tooltip--incontext-signup {\n width: 360px;\n}\n:not(.top-autofill) .tooltip--data {\n top: 100%;\n left: 100%;\n border: 0.5px solid rgba(255, 255, 255, 0.2);\n border-radius: 6px;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);\n}\n@media (prefers-color-scheme: dark) {\n :not(.top-autofill) .tooltip--data {\n border: 1px solid rgba(255, 255, 255, 0.2);\n }\n}\n:not(.top-autofill) .tooltip--email {\n top: calc(100% + 6px);\n right: calc(100% - 48px);\n padding: 8px;\n border: 1px solid #D0D0D0;\n border-radius: 10px;\n background-color: #FFFFFF;\n font-size: 14px;\n line-height: 1.3;\n color: #333333;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);\n}\n.tooltip--email__caret {\n position: absolute;\n transform: translate(-1000px, -1000px);\n z-index: 2147483647;\n}\n.tooltip--email__caret::before,\n.tooltip--email__caret::after {\n content: \"\";\n width: 0;\n height: 0;\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n display: block;\n border-bottom: 8px solid #D0D0D0;\n position: absolute;\n right: -28px;\n}\n.tooltip--email__caret::before {\n border-bottom-color: #D0D0D0;\n top: -1px;\n}\n.tooltip--email__caret::after {\n border-bottom-color: #FFFFFF;\n top: 0px;\n}\n\n/* Buttons */\n.tooltip__button {\n display: flex;\n width: 100%;\n padding: 8px 8px 8px 0px;\n font-family: inherit;\n color: inherit;\n background: transparent;\n border: none;\n border-radius: 6px;\n}\n.tooltip__button.currentFocus,\n.wrapper:not(.top-autofill) .tooltip__button:hover {\n background-color: #3969EF;\n color: #FFFFFF;\n}\n\n/* Data autofill tooltip specific */\n.tooltip__button--data {\n position: relative;\n min-height: 48px;\n flex-direction: row;\n justify-content: flex-start;\n font-size: inherit;\n font-weight: 500;\n line-height: 16px;\n text-align: left;\n border-radius: 3px;\n}\n.tooltip--data__item-container {\n max-height: 220px;\n overflow: auto;\n}\n.tooltip__button--data:first-child {\n margin-top: 0;\n}\n.tooltip__button--data:last-child {\n margin-bottom: 0;\n}\n.tooltip__button--data::before {\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 20px 20px;\n background-repeat: no-repeat;\n background-position: center 6px;\n}\n#provider_locked::after {\n position: absolute;\n content: '';\n flex-shrink: 0;\n display: block;\n width: 32px;\n height: 32px;\n margin: 0 8px;\n background-size: 11px 13px;\n background-repeat: no-repeat;\n background-position: right bottom;\n}\n.tooltip__button--data.currentFocus:not(.tooltip__button--data--bitwarden)::before,\n.wrapper:not(.top-autofill) .tooltip__button--data:not(.tooltip__button--data--bitwarden):hover::before {\n filter: invert(100%);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before,\n .tooltip__button--data:not(.tooltip__button--data--bitwarden)::before {\n filter: invert(100%);\n opacity: .9;\n }\n}\n.tooltip__button__text-container {\n margin: auto 0;\n}\n.label {\n display: block;\n font-weight: 400;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.8);\n font-size: 13px;\n line-height: 1;\n}\n.label + .label {\n margin-top: 2px;\n}\n.label.label--medium {\n font-weight: 500;\n letter-spacing: -0.25px;\n color: rgba(0,0,0,.9);\n}\n.label.label--small {\n font-size: 11px;\n font-weight: 400;\n letter-spacing: 0.06px;\n color: rgba(0,0,0,0.6);\n}\n@media (prefers-color-scheme: dark) {\n .tooltip--data .label {\n color: #ffffff;\n }\n .tooltip--data .label--medium {\n color: #ffffff;\n }\n .tooltip--data .label--small {\n color: #cdcdcd;\n }\n}\n.tooltip__button.currentFocus .label,\n.wrapper:not(.top-autofill) .tooltip__button:hover .label {\n color: #FFFFFF;\n}\n\n.tooltip__button--manage {\n font-size: 13px;\n padding: 5px 9px;\n border-radius: 3px;\n margin: 0;\n}\n\n/* Icons */\n.tooltip__button--data--credentials::before {\n background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05LjYzNiA4LjY4MkM5LjYzNiA1LjU0NCAxMi4xOCAzIDE1LjMxOCAzIDE4LjQ1NiAzIDIxIDUuNTQ0IDIxIDguNjgyYzAgMy4xMzgtMi41NDQgNS42ODItNS42ODIgNS42ODItLjY5MiAwLTEuMzUzLS4xMjQtMS45NjQtLjM0OS0uMzcyLS4xMzctLjc5LS4wNDEtMS4wNjYuMjQ1bC0uNzEzLjc0SDEwYy0uNTUyIDAtMSAuNDQ4LTEgMXYySDdjLS41NTIgMC0xIC40NDgtMSAxdjJIM3YtMi44ODFsNi42NjgtNi42NjhjLjI2NS0uMjY2LjM2LS42NTguMjQ0LTEuMDE1LS4xNzktLjU1MS0uMjc2LTEuMTQtLjI3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IuNzU2ODJDNi45NzM1MiAyLjExMjE2IDYuMDk5MTggMS43NSA1LjE4NzUgMS43NUM0LjI3NTgyIDEuNzUgMy40MDE0OCAyLjExMjE2IDIuNzU2ODIgMi43NTY4MkMyLjExMjE2IDMuNDAxNDggMS43NSA0LjI3NTgyIDEuNzUgNS4xODc1VjUuOTk0ODlDMS42MTczMiA2LjEwNjM3IDEuNDk4MTcgNi4yMzQ0NiAxLjM5NTc4IDYuMzc2NzhDMS4xMzkyNiA2LjczMzM1IDEuMDAwODUgNy4xNjEzMSAxIDcuNjAwNTdaTTQuOTY4NyA0Ljk2ODdDNS4wMjY5NCA0LjkxMDQ3IDUuMTA1MzIgNC44NzY5OSA1LjE4NzUgNC44NzUwN0M1LjI2OTY4IDQuODc2OTkgNS4zNDgwNiA0LjkxMDQ3IDUuNDA2MyA0Ljk2ODdDNS40NjU0MiA1LjAyNzgzIDUuNDk5MDQgNS4xMDc3NCA1LjUgNS4xOTEzVjUuNUg0Ljg3NVY1LjE5MTNDNC44NzU5NiA1LjEwNzc0IDQuOTA5NTggNS4wMjc4MyA0Ljk2ODcgNC45Njg3WiIgZmlsbD0iIzIyMjIyMiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo=');\n}\n\nhr {\n display: block;\n margin: 5px 9px;\n border: none; /* reset the border */\n border-top: 1px solid rgba(0,0,0,.1);\n}\n\nhr:first-child {\n display: none;\n}\n\n@media (prefers-color-scheme: dark) {\n hr {\n border-top: 1px solid rgba(255,255,255,.2);\n }\n}\n\n#privateAddress {\n align-items: flex-start;\n}\n#personalAddress::before,\n#privateAddress::before,\n#incontextSignup::before,\n#personalAddress.currentFocus::before,\n#personalAddress:hover::before,\n#privateAddress.currentFocus::before,\n#privateAddress:hover::before {\n filter: none;\n /* This is the same icon as `daxBase64` in `src/Form/logo-svg.js` */\n background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94P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LjQ0NyAwIDU4Ljc1LTI2LjMwMyA1OC43NS01OC43NXMtMjYuMzAzLTU4Ljc1LTU4Ljc1LTU4Ljc1LTU4Ljc1IDI2LjMwMy01OC43NSA1OC43NSAyNi4zMDMgNTguNzUgNTguNzUgNTguNzV6IiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz4KPC9zdmc+');\n}\n\n/* Email tooltip specific */\n.tooltip__button--email {\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n font-size: 14px;\n padding: 4px 8px;\n}\n.tooltip__button--email__primary-text {\n font-weight: bold;\n}\n.tooltip__button--email__secondary-text {\n font-size: 12px;\n}\n\n/* Email Protection signup notice */\n:not(.top-autofill) .tooltip--email-signup {\n text-align: left;\n color: #222222;\n padding: 16px 20px;\n width: 380px;\n}\n\n.tooltip--email-signup h1 {\n font-weight: 700;\n font-size: 16px;\n line-height: 1.5;\n margin: 0;\n}\n\n.tooltip--email-signup p {\n font-weight: 400;\n font-size: 14px;\n line-height: 1.4;\n}\n\n.notice-controls {\n display: flex;\n}\n\n.tooltip--email-signup .notice-controls > * {\n border-radius: 8px;\n border: 0;\n cursor: pointer;\n display: inline-block;\n font-family: inherit;\n font-style: normal;\n font-weight: bold;\n padding: 8px 12px;\n text-decoration: none;\n}\n\n.notice-controls .ghost {\n margin-left: 1rem;\n}\n\n.tooltip--email-signup a.primary {\n background: #3969EF;\n color: #fff;\n}\n\n.tooltip--email-signup a.primary:hover,\n.tooltip--email-signup a.primary:focus {\n background: #2b55ca;\n}\n\n.tooltip--email-signup a.primary:active {\n background: #1e42a4;\n}\n\n.tooltip--email-signup button.ghost {\n background: transparent;\n color: #3969EF;\n}\n\n.tooltip--email-signup button.ghost:hover,\n.tooltip--email-signup button.ghost:focus {\n background-color: rgba(0, 0, 0, 0.06);\n color: #2b55ca;\n}\n\n.tooltip--email-signup button.ghost:active {\n background-color: rgba(0, 0, 0, 0.12);\n color: #1e42a4;\n}\n\n.tooltip--email-signup button.close-tooltip {\n background-color: transparent;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMiAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wLjI5Mjg5NCAwLjY1NjkwN0MwLjY4MzQxOCAwLjI2NjM4MyAxLjMxNjU4IDAuMjY2MzgzIDEuNzA3MTEgMC42NTY5MDdMNiA0Ljk0OThMMTAuMjkyOSAwLjY1NjkwN0MxMC42ODM0IDAuMjY2MzgzIDExLjMxNjYgMC4yNjYzODMgMTEuNzA3MSAwLjY1NjkwN0MxMi4wOTc2IDEuMDQ3NDMgMTIuMDk3NiAxLjY4MDYgMTEuNzA3MSAyLjA3MTEyTDcuNDE0MjEgNi4zNjQwMUwxMS43MDcxIDEwLjY1NjlDMTIuMDk3NiAxMS4wNDc0IDEyLjA5NzYgMTEuNjgwNiAxMS43MDcxIDEyLjA3MTFDMTEuMzE2NiAxMi40NjE2IDEwLjY4MzQgMTIuNDYxNiAxMC4yOTI5IDEyLjA3MTFMNiA3Ljc3ODIzTDEuNzA3MTEgMTIuMDcxMUMxLjMxNjU4IDEyLjQ2MTYgMC42ODM0MTcgMTIuNDYxNiAwLjI5Mjg5MyAxMi4wNzExQy0wLjA5NzYzMTEgMTEuNjgwNiAtMC4wOTc2MzExIDExLjA0NzQgMC4yOTI4OTMgMTAuNjU2OUw0LjU4NTc5IDYuMzY0MDFMMC4yOTI4OTQgMi4wNzExMkMtMC4wOTc2MzA2IDEuNjgwNiAtMC4wOTc2MzA2IDEuMDQ3NDMgMC4yOTI4OTQgMC42NTY5MDdaIiBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIwLjg0Ii8+Cjwvc3ZnPgo=);\n background-position: center center;\n background-repeat: no-repeat;\n border: 0;\n cursor: pointer;\n padding: 16px;\n position: absolute;\n right: 12px;\n top: 12px;\n}\n"; exports.CSS_STYLES = CSS_STYLES; },{}],55:[function(require,module,exports){ From e4c0181d001bf7fcd78dbac31aca0f1fcdae7f15 Mon Sep 17 00:00:00 2001 From: Emanuele Feliziani Date: Fri, 21 Jul 2023 14:45:04 +0200 Subject: [PATCH 6/6] Guard logs with shouldLog Signed-off-by: Emanuele Feliziani --- dist/autofill-debug.js | 13 ++++++++++--- dist/autofill.js | 13 ++++++++++--- src/Form/Form.js | 8 ++++++-- src/Scanner.js | 6 ++++-- swift-package/Resources/assets/autofill-debug.js | 13 ++++++++++--- swift-package/Resources/assets/autofill.js | 13 ++++++++++--- 6 files changed, 50 insertions(+), 16 deletions(-) diff --git a/dist/autofill-debug.js b/dist/autofill-debug.js index 7486f3f0b..299c70623 100644 --- a/dist/autofill-debug.js +++ b/dist/autofill-debug.js @@ -10466,7 +10466,9 @@ class Form { if (foundInputs.length < MAX_INPUTS_PER_FORM) { foundInputs.forEach(input => this.addInput(input)); } else { - console.log('The form has too many inputs, bailing.'); + if ((0, _autofillUtils.shouldLog)()) { + console.log('The form has too many inputs, bailing.'); + } } } @@ -10529,7 +10531,10 @@ class Form { if (this.inputs.all.has(input)) return this; // If the form has too many inputs, destroy everything to avoid performance issues if (this.inputs.all.size > MAX_INPUTS_PER_FORM) { - console.log('The form has too many inputs, destroying.'); + if ((0, _autofillUtils.shouldLog)()) { + console.log('The form has too many inputs, destroying.'); + } + this.destroy(); return this; } // When new inputs are added after the initial scan, reanalyze the whole form @@ -15440,7 +15445,9 @@ class DefaultScanner { if (this.forms.size < this.options.maxFormsPerPage) { this.forms.set(parentForm, new _Form.Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)); } else { - console.log('The page has too many forms, stop adding them.'); + if ((0, _autofillUtils.shouldLog)()) { + console.log('The page has too many forms, stop adding them.'); + } } } } diff --git a/dist/autofill.js b/dist/autofill.js index a285cfa8a..1c487d492 100644 --- a/dist/autofill.js +++ b/dist/autofill.js @@ -6790,7 +6790,9 @@ class Form { if (foundInputs.length < MAX_INPUTS_PER_FORM) { foundInputs.forEach(input => this.addInput(input)); } else { - console.log('The form has too many inputs, bailing.'); + if ((0, _autofillUtils.shouldLog)()) { + console.log('The form has too many inputs, bailing.'); + } } } @@ -6853,7 +6855,10 @@ class Form { if (this.inputs.all.has(input)) return this; // If the form has too many inputs, destroy everything to avoid performance issues if (this.inputs.all.size > MAX_INPUTS_PER_FORM) { - console.log('The form has too many inputs, destroying.'); + if ((0, _autofillUtils.shouldLog)()) { + console.log('The form has too many inputs, destroying.'); + } + this.destroy(); return this; } // When new inputs are added after the initial scan, reanalyze the whole form @@ -11764,7 +11769,9 @@ class DefaultScanner { if (this.forms.size < this.options.maxFormsPerPage) { this.forms.set(parentForm, new _Form.Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)); } else { - console.log('The page has too many forms, stop adding them.'); + if ((0, _autofillUtils.shouldLog)()) { + console.log('The page has too many forms, stop adding them.'); + } } } } diff --git a/src/Form/Form.js b/src/Form/Form.js index 3e9eed099..1ad16ef97 100644 --- a/src/Form/Form.js +++ b/src/Form/Form.js @@ -366,7 +366,9 @@ class Form { if (foundInputs.length < MAX_INPUTS_PER_FORM) { foundInputs.forEach(input => this.addInput(input)) } else { - console.log('The form has too many inputs, bailing.') + if (shouldLog()) { + console.log('The form has too many inputs, bailing.') + } } } this.initialScanComplete = true @@ -427,7 +429,9 @@ class Form { // If the form has too many inputs, destroy everything to avoid performance issues if (this.inputs.all.size > MAX_INPUTS_PER_FORM) { - console.log('The form has too many inputs, destroying.') + if (shouldLog()) { + console.log('The form has too many inputs, destroying.') + } this.destroy() return this } diff --git a/src/Scanner.js b/src/Scanner.js index dc05439f3..a8c4fad06 100644 --- a/src/Scanner.js +++ b/src/Scanner.js @@ -2,7 +2,7 @@ import { Form } from './Form/Form.js' import { SUBMIT_BUTTON_SELECTOR, FORM_INPUTS_SELECTOR } from './Form/selectors-css.js' import { constants } from './constants.js' import { createMatching } from './Form/matching.js' -import {isFormLikelyToBeUsedAsPageWrapper} from './autofill-utils.js' +import {isFormLikelyToBeUsedAsPageWrapper, shouldLog} from './autofill-utils.js' const { MAX_INPUTS_PER_PAGE, @@ -216,7 +216,9 @@ class DefaultScanner { if (this.forms.size < this.options.maxFormsPerPage) { this.forms.set(parentForm, new Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)) } else { - console.log('The page has too many forms, stop adding them.') + if (shouldLog()) { + console.log('The page has too many forms, stop adding them.') + } } } } diff --git a/swift-package/Resources/assets/autofill-debug.js b/swift-package/Resources/assets/autofill-debug.js index 7486f3f0b..299c70623 100644 --- a/swift-package/Resources/assets/autofill-debug.js +++ b/swift-package/Resources/assets/autofill-debug.js @@ -10466,7 +10466,9 @@ class Form { if (foundInputs.length < MAX_INPUTS_PER_FORM) { foundInputs.forEach(input => this.addInput(input)); } else { - console.log('The form has too many inputs, bailing.'); + if ((0, _autofillUtils.shouldLog)()) { + console.log('The form has too many inputs, bailing.'); + } } } @@ -10529,7 +10531,10 @@ class Form { if (this.inputs.all.has(input)) return this; // If the form has too many inputs, destroy everything to avoid performance issues if (this.inputs.all.size > MAX_INPUTS_PER_FORM) { - console.log('The form has too many inputs, destroying.'); + if ((0, _autofillUtils.shouldLog)()) { + console.log('The form has too many inputs, destroying.'); + } + this.destroy(); return this; } // When new inputs are added after the initial scan, reanalyze the whole form @@ -15440,7 +15445,9 @@ class DefaultScanner { if (this.forms.size < this.options.maxFormsPerPage) { this.forms.set(parentForm, new _Form.Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)); } else { - console.log('The page has too many forms, stop adding them.'); + if ((0, _autofillUtils.shouldLog)()) { + console.log('The page has too many forms, stop adding them.'); + } } } } diff --git a/swift-package/Resources/assets/autofill.js b/swift-package/Resources/assets/autofill.js index a285cfa8a..1c487d492 100644 --- a/swift-package/Resources/assets/autofill.js +++ b/swift-package/Resources/assets/autofill.js @@ -6790,7 +6790,9 @@ class Form { if (foundInputs.length < MAX_INPUTS_PER_FORM) { foundInputs.forEach(input => this.addInput(input)); } else { - console.log('The form has too many inputs, bailing.'); + if ((0, _autofillUtils.shouldLog)()) { + console.log('The form has too many inputs, bailing.'); + } } } @@ -6853,7 +6855,10 @@ class Form { if (this.inputs.all.has(input)) return this; // If the form has too many inputs, destroy everything to avoid performance issues if (this.inputs.all.size > MAX_INPUTS_PER_FORM) { - console.log('The form has too many inputs, destroying.'); + if ((0, _autofillUtils.shouldLog)()) { + console.log('The form has too many inputs, destroying.'); + } + this.destroy(); return this; } // When new inputs are added after the initial scan, reanalyze the whole form @@ -11764,7 +11769,9 @@ class DefaultScanner { if (this.forms.size < this.options.maxFormsPerPage) { this.forms.set(parentForm, new _Form.Form(parentForm, input, this.device, this.matching, this.shouldAutoprompt)); } else { - console.log('The page has too many forms, stop adding them.'); + if ((0, _autofillUtils.shouldLog)()) { + console.log('The page has too many forms, stop adding them.'); + } } } }