Closed Bug 1716866 Opened 3 years ago Closed 2 years ago

Do not throw a (non-standardized) exception when doing window.print() while unloading or non-fully-active

Categories

(Core :: DOM: Window and Location, defect, P3)

defect

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox91 --- wontfix
firefox96 --- fixed

People

(Reporter: d, Assigned: sideshowbarker, NeedInfo)

Details

(Keywords: good-first-bug)

Attachments

(3 files)

https://github.com/whatwg/html/pull/6777 and https://github.com/whatwg/html/pull/6778 standardizes the behavior of silently returning from window.print() while the document is unloading or not fully active. This matches the behavior of Safari and Chrome.

Firefox instead throws an exception, as shown from the tests at https://github.com/web-platform-tests/wpt/pull/29405 and https://github.com/web-platform-tests/wpt/pull/29406.

Summary: Do not throw a (non-standardized) exception when doing window.print() while unloading → Do not throw a (non-standardized) exception when doing window.print() while unloading or non-fully-active
Severity: -- → N/A
Priority: -- → P3
Severity: N/A → S4
Keywords: good-first-bug
Assignee: nobody → mike
Status: NEW → ASSIGNED
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4e3ce91389bb
Don’t throw for window.print() when unloading or non-fully-active r=smaug

Backed out for causing wpt failures on print-during-beforeunload.html

Flags: needinfo?(mike)
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d8a16efe2d2c
Don’t throw for window.print() when unloading or non-fully-active r=smaug
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
Attachment #9251940 - Attachment description: WIP: Bug 1716866 - set html/semantics/embedded-content/the-iframe-element/iframe_sandbox_block_modals-4.html as passing → Bug 1716866 - set html/semantics/embedded-content/the-iframe-element/iframe_sandbox_block_modals-4.html as passing
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/autoland/rev/6e717ac6eedc
set html/semantics/embedded-content/the-iframe-element/iframe_sandbox_block_modals-4.html as passing
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/autoland/rev/f5ae12d2f76e
add back timeout expectation on Android for html/semantics/embedded-content/the-iframe-element/iframe_sandbox_block_modals-4.html
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: