A page spamming `prompt()` can trigger window prompts when the containing browser window goes away
Categories
(Toolkit Graveyard :: Notifications and Alerts, defect, P3)
Tracking
(firefox-esr78 unaffected, firefox88 disabled, firefox89 wontfix, firefox90 verified)
| Tracking | Status | |
|---|---|---|
| firefox-esr78 | --- | unaffected |
| firefox88 | --- | disabled |
| firefox89 | --- | wontfix |
| firefox90 | --- | verified |
People
(Reporter: mystiquewolf, Assigned: Gijs)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression, Whiteboard: [proton-modals])
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0
Steps to reproduce:
- Open the file with a single tab in Firefox 89 Beta
- A prompt appears when the page loads. Do not confirm or close the prompt.
- Close the single tab while the prompt is open.
Actual results:
The browser closes. The prompt appears on its own window after the browser is closed.
Expected results:
The prompt should not appear at all after closing the browser.
| Reporter | ||
Comment 1•5 years ago
|
||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=803c26c0927131a6e1fffc5ebdebb55e95161ce6&tochange=89c0c4d8d57ce6370cdd095ae1fbaa88031afb96
Regressed by Bug 1680066
Setting prompts.contentPromptSubDialog to false fixes the problem.
Bug 1702495 enabled the preference since firefox89.
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 3•5 years ago
|
||
This page infinite-loops if the prompt() doesn't return a name, so it's not the same prompt that's reshowing, it's the page showing a second (or third, or fourth, ...) identical prompt. You can also see this (but as "normal" prompts, not separate windowed ones) if you just cancel out of the prompt instead of closing the browser window.
Still looking at why the windowed prompt happens - it's kind of weird because the problem goes away when I attach a JS debugger...
Updated•5 years ago
|
| Assignee | ||
Comment 4•5 years ago
|
||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 6•5 years ago
•
|
||
Backed out for failures on tabPrompts
-
backout: https://hg.mozilla.org/integration/autoland/rev/e7499e0e51345ec72dc38cfccc8875c7f1b45b81
-
failure logs:
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 7•5 years ago
|
||
With many thanks to Mike for helping me debug the strange test issues I was seeing (some of which got filed as 1711740). Try now appears happy: https://treeherder.mozilla.org/jobs?repo=try&revision=c543ecaef781c088bb0e2e9f2b882b0502f2ade1 so I'm relanding.
Comment 9•5 years ago
|
||
| bugherder | ||
Updated•5 years ago
|
Comment 10•5 years ago
|
||
This issue is Verified as fixed in our latest Nightly build 90.0a1 (2021-05-21) on Windows, Mac and Ubuntu.
Updated•3 years ago
|
Description
•