Firefox(72-0-2) closes automatically after printing.
Categories
(Core :: Print Preview, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
relnote-firefox | --- | 73+ |
firefox-esr68 | --- | unaffected |
firefox73 | --- | verified |
firefox74 | --- | verified |
firefox75 | --- | verified |
People
(Reporter: Bkuehlert, Assigned: bdahl)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-release+
|
Details | Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0
Steps to reproduce:
Open Menu/print. A preview appears. If I want to leave the preview I press the X at the top/right of the preview window.
Actual results:
Since some days, perhaps after the last update, Firefox closes automatically and I have to restart it.
Expected results:
Firefox returns back to the website. This was the behaviour in the past.
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•5 years ago
|
||
I can reproduce, running mozregression now.
Comment 3•5 years ago
|
||
It's difficult to know exactly what introduced the regression, because there is an initial change that hid that cross:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=1a964a2674d330898518affd0f9de9520b46b1fa&tochange=d967ac6c56aeec99c2fba3814c8550a1c5971384
So, this would be from bug 1492582.
That regression is fixed and the cross re-appears here (and has the new behaviour):
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=3bd8841fab31690f88f9e1475a3a42e5f9780202&tochange=b70e9a9a448663b4f39abf0b222e99a6ba053bf4
So, from bug 1596709.
bdahl - was this change of behaviour for Print Preview deliberate?
I imagine it will confuse/annoy a fair number of people.
Reporter | ||
Comment 4•5 years ago
|
||
Workaround: install this addon https://addons.mozilla.org/de/firefox/addon/print-print-preview-context/
and print from context menu.
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
When print preview loads it adds an onclose
attribute to the root element. With a XUL <window>
the onclose event is dispatched there. However, with an <html> root the onclose event is dispatched to the JS window
object.
I think we need to update all the "onclose" things in https://searchfox.org/mozilla-central/rev/7e92a667e3829831c31e8d46aefe7ef67ad5be1c/toolkit/components/printing/content/printUtils.js#640 to use window.onclose instead.
Assignee | ||
Comment 6•5 years ago
|
||
For HTML documents the onclose event is not dispatched to the root <html>
element.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 8•5 years ago
|
||
bugherder |
Comment 9•5 years ago
|
||
Please request uplift when you get a chance.
Assignee | ||
Comment 10•5 years ago
•
|
||
Comment on attachment 9126141 [details]
Bug 1611133 - Fix print preview close handler. r=bgrins
Beta/Release Uplift Approval Request
- User impact if declined: Close window (the X) in print preview doesn't work as before.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: See comment #1
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Should only change the behavior of print preview.
- String changes made/needed:
Comment 11•5 years ago
|
||
Comment on attachment 9126141 [details]
Bug 1611133 - Fix print preview close handler. r=bgrins
Minor print preview fix which can prevent windows from closing unexpectedly when printing. Approved for 74.0b3.
Assignee | ||
Comment 12•5 years ago
•
|
||
Comment on attachment 9126141 [details]
Bug 1611133 - Fix print preview close handler. r=bgrins
Beta/Release Uplift Approval Request
- User impact if declined: See previous uplift approval.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: See comment #1
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky):
- String changes made/needed:
Comment 13•5 years ago
|
||
bugherder uplift |
Updated•5 years ago
|
Comment 14•5 years ago
|
||
I've managed to reproduce this issue on Firefox 74.0a1 (2020-01-23) using Windows 10x64 by following the STR from comment 0.
This issue is verified fixed on Firefox 74.0b3 and Firefox 75.0a1 (2020-02-13) on the following OSes: Windows 10x64, Windows 7x64 and Ubuntu 18.04x64.
Updated•5 years ago
|
Comment 15•5 years ago
|
||
Comment on attachment 9126141 [details]
Bug 1611133 - Fix print preview close handler. r=bgrins
Minor print preview fix which can prevent windows from closing unexpectedly when printing. Approved for 73.0.1.
Comment 16•5 years ago
|
||
bugherder uplift |
Comment 17•5 years ago
|
||
Added to the Firefox 73.0.1 release notes:
Fixed Firefox unexpectedly exiting when leaving Print Preview mode
Comment 18•5 years ago
|
||
This issue is verified fixed on Firefox 73.0.1 on the following OSes: Windows 10x64, Windows 7x64 and Ubuntu 18.04x64.
Updated•5 years ago
|
Description
•