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`: https://searchfox.org/mozilla-central/rev/829f90aa365a9d9ebfd51e3966cf9333826d7268/dom/base/nsGlobalWindowOuter.cpp#5417-5421,5435-5436 But that happens shortly after the tab modal door hanger is opened.
Bug 1747682 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
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`: https://searchfox.org/mozilla-central/rev/829f90aa365a9d9ebfd51e3966cf9333826d7268/dom/base/nsGlobalWindowOuter.cpp#5417-5421,5435-5436 But that `bc` is discarded shortly after the tab modal door hanger is opened.