Closed Bug 1751131 Opened 4 years ago Closed 4 years ago

window.print() not blocking

Categories

(Core :: Printing: Output, defect)

Firefox 96
defect

Tracking

()

RESOLVED DUPLICATE of bug 1663290

People

(Reporter: behzad.safamanesh, Unassigned)

Details

Attachments

(1 file)

Attached file test.html

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0

Steps to reproduce:

<script language="javascript">
window.onafterprint = event => {
console.log('after print');
};
window.print();
</script>

Actual results:

The 'after print' is printed BEFORE the print dialog is dismissed.

Expected results:

I expected the 'after print' prints AFTER the print dialog is dismissed. It was OK in FF 94 and lower.

The Bugbug bot thinks this bug should belong to the 'Core::Printing: Output' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Printing: Output
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: