beforeunload doesn't prevent closing a tab (or window, or quitting Firefox)
Categories
(Core :: DOM: Navigation, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox80 | --- | unaffected |
firefox81 | --- | unaffected |
firefox82 | --- | unaffected |
firefox83 | + | verified |
People
(Reporter: agashlin, Assigned: kmag)
References
(Regression)
Details
(Keywords: dataloss, regression)
Attachments
(2 files)
STR:
- Navigate to the attached page (just sets up a beforeunload listener with preventDefault)
- Click somewhere in the client area to allow it to prevent nagivation
- Close the tab
Expected:
"This page is asking you to confirm..." dialog appears, preventing the tab from closing.
Actual:
Dialog appears, but before any interaction (~1 sec) the tab closes anyway.
Seen on Windows 10 64 bit, with a clean profile.
Regression range from mozregression:
Last good revision: c0db57c7f9f0d7df1fcb3e7afcd823256c9bbe6b
First bad revision: 091a4043d78af274fd5639829f17e4195d262e4a
Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=c0db57c7f9f0d7df1fcb3e7afcd823256c9bbe6b&tochange=091a4043d78af274fd5639829f17e4195d262e4a
This seems to point to bug 1655866, which involves beforeunload.
(apologies if I've misunderstood and this is now intended)
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•5 years ago
|
||
[Tracking Requested - why for this release]:
This also affects quitting or closing the entire window, and some of our users' web apps will be relying on these prompts to prevent user dataloss. We shouldn't ship with this.
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Backed out for wpt failures on scroll-behavior-smooth.html
Backout link: https://hg.mozilla.org/integration/autoland/rev/ffb52170db5c5cdbe24093c0c39e05becd23c130
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=317238320&repo=autoland&lineNumber=1930
Assignee | ||
Comment 7•5 years ago
|
||
There's no plausible way that WPT failure was caused by my patch.
Comment 10•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Comment 11•5 years ago
•
|
||
Reproduced the initial issue in Nightly 83.0a1 (build id: 20200922094538) using Windows 10.
Verified - Fixed in latest Nightly 84.0a1 (2020-10-22) and Beta 83.0b3 (build id: 20201022171613) on Windows 10 and Ubuntu 18.04.
Updated•5 years ago
|
Description
•