From 340bca2b1e917d16e1489976a25b919370556bc5 Mon Sep 17 00:00:00 2001 From: Emanuele Feliziani Date: Tue, 30 Jan 2024 12:59:15 +0100 Subject: [PATCH] Autofill shadow dom follow up (#184) * Stupid minor text changes Signed-off-by: Emanuele Feliziani * Update the form in modal Signed-off-by: Emanuele Feliziani * Update package name Signed-off-by: Emanuele Feliziani --------- Signed-off-by: Emanuele Feliziani --- autofill/autoprompt/2-form-in-modal.html | 58 +++++++++++++++--------- autofill/shadow-dom.html | 4 +- package-lock.json | 3 +- package.json | 2 +- 4 files changed, 41 insertions(+), 26 deletions(-) diff --git a/autofill/autoprompt/2-form-in-modal.html b/autofill/autoprompt/2-form-in-modal.html index 072d154..5d3afc4 100644 --- a/autofill/autoprompt/2-form-in-modal.html +++ b/autofill/autoprompt/2-form-in-modal.html @@ -20,41 +20,55 @@ -

+

+ +

Some random text to use as "something outside the dialog element". Clicking here should close the dialog (if open).

Form created in modal after click (should not prompt automatically).

-
-

-
- -
- + loginForm?.addEventListener('submit', handler, true); + }); + diff --git a/autofill/shadow-dom.html b/autofill/shadow-dom.html index c78b66d..d57ba8f 100644 --- a/autofill/shadow-dom.html +++ b/autofill/shadow-dom.html @@ -14,7 +14,7 @@

-

Form in shadow DOM created after click.

+

Form in nested shadow DOM created after click.

@@ -41,7 +41,7 @@ // Create a div element inside the shadow root const div = document.createElement('div'); const initialButton = document.createElement('button'); - initialButton.textContent = 'Click here to login'; + initialButton.textContent = 'Click here to sign up'; initialButton.type = 'button'; div.appendChild(initialButton); shadowRoot.appendChild(div); diff --git a/package-lock.json b/package-lock.json index ba7d863..5c4db6d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,9 +1,10 @@ { - "name": "privacy-test-pages", + "name": "@duckduckgo/privacy-test-pages", "lockfileVersion": 2, "requires": true, "packages": { "": { + "name": "@duckduckgo/privacy-test-pages", "dependencies": { "body-parser": "^1.20.1", "express": "^4.17.1", diff --git a/package.json b/package.json index e0ff7b8..8c5eb11 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "privacy-test-pages", + "name": "@duckduckgo/privacy-test-pages", "description": "This project contains a collection of pages that are meant to be used for testing various privacy and security features of browsers and browser extensions.", "main": "server.js", "engines": {