Closed Bug 1829248 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 39636 - beforeunload returnValue is empty string should not prompt confirmation

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 39636 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/39636
Details from upstream follow.

Di Zhang <dizhangg@chromium.org> wrote:

beforeunload returnValue is empty string should not prompt confirmation

By HTML spec, setting the returnValue to be the empty string should not
prompt the confirmation dialog for beforeunload event.

[1] https://html.spec.whatwg.org/multipage/browsing-the-web.html#unloading-documents:event-beforeunload:~:text=the%20returnValue%20attribute%20of%20event%20is%20not%20the%20empty%20string

Fixed: 1434509
Change-Id: Ib509150b471a137c7af50d3557a8230ecaaf7f7e
Reviewed-on: https://chromium-review.googlesource.com/4452046
WPT-Export-Revision: ceeba10f3068e8975049baea4cff95013e734277

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 22 subtests

Status Summary

Firefox

OK : 1
PASS: 22

Chrome

OK : 1
PASS: 22

Safari

OK : 1
PASS: 22

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/39bc72c9b04e [wpt PR 39636] - beforeunload returnValue is empty string should not prompt confirmation, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in before you can comment on or make changes to this bug.