Closed
Bug 1747682
Opened 3 years ago
Closed 3 years ago
window.print() followed by window.close() is not waiting for print to finish (again)
Categories
(Core :: Printing: Output, defect, P3)
Core
Printing: Output
Tracking
()
RESOLVED
INVALID
People
(Reporter: jwatt, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
text/html
|
Details |
Bug 1662975 intended to fix:
newWin=window.open();
newWin.focus();
newWin.print();
newWin.close();
to wait until the print had completed. But it seems broken (again?).
nsGlobalWindowOuter
waits for bc->IsDiscarded()==true
:
But that bc
is discarded shortly after the tab modal door hanger is opened.
Comment 1•3 years ago
|
||
Works here? I don't see the tab being closed instantaneously when I run that on the console, what am I missing?
Flags: needinfo?(jwatt)
Comment 2•3 years ago
|
||
(We have tests for this fwiw, so I'm curious about how are you reproducing this)
Reporter | ||
Comment 3•3 years ago
|
||
This repro's for me in Firefox 95 on Fedora.
Flags: needinfo?(jwatt)
Reporter | ||
Comment 4•3 years ago
|
||
Attachment #9257283 -
Attachment is obsolete: true
Reporter | ||
Updated•3 years ago
|
Attachment #9257284 -
Attachment mime type: text/plain → text/html
Comment 5•3 years ago
|
||
Well, that's a slightly different test-case as the window you're trying to print is the initial about:blank
(Chrome seems to try to print about:blank there)
Reporter | ||
Comment 6•3 years ago
|
||
Bah, indeed. Sorry for the wasted time. :-/
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•