aboutsummaryrefslogtreecommitdiff
path: root/test-suite/unit/overlay.test.mjs
AgeCommit message (Collapse)Author
6 daysoverlay.clear: read closed shadow roots and remove the host elementIgor Soarez
Diagnostics on 1Password's inline prompt: the page holds a <com-1password-uso> element and no iframe in its own DOM; the frame is inside a closed shadow root. Run in the isolated world, where chrome.dom.openOrClosedShadowRoot can read it, and remove the element that hosts a foreign extension frame. Drop the body-click events: they were never shown to help.
6 daysoverlay.clear: run in the page's own world with the click the fallback usesIgor Soarez
The isolated-world body events did not free a 1Password-blocked tab; the DOM click fallback (MAIN world, full pointer event shape, el.click()) did. Use that shape, aimed at the page root so no control is clicked.
6 daysoverlay.clear: click the page body outside the prompt, and wait for it to goIgor Soarez
Measured on 1Password's inline menu: blur and Escape did not free the tab, a click outside did. overlay.clear now also sends pointer/mouse events to the body and polls the debugger for about a second instead of checking once.
6 daysoverlay: the agent decides whether a password-manager prompt is in the wayIgor Soarez
The error, the tool description and the primer no longer tell the agent to ask the user first. It clears the prompt when it is only in the way, and leaves it alone and says so when it is waiting for the user to sign in or approve.
6 daysoverlay: tell the agent about a blocking password-manager prompt; ↵Igor Soarez
chrome_clear_overlay closes it on request Another extension's frame (1Password's inline prompt) makes Chrome refuse the debugger on the tab. The old path sent Escape on its own, which cannot reach that frame and would close a prompt the user may be using. Now nothing is closed automatically: the error says what is blocking and tells the agent to ask the user; chrome_clear_overlay removes the frame, blurs the field, sends Escape and reports whether the tab is usable again.