Simplify the complex and broken 'beforeprint'/'afterprint' dispatching code
Categories
(Core :: Printing: Setup, enhancement, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox80 | --- | fixed |
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
Attachments
(2 files)
| Assignee | ||
Comment 1•7 years ago
|
||
This fixes two issue.
First, the code shouldn't be dispatching these events every time it gets a new
Print or PrintPreview call. It only needs to dispatch the events to the
original document that we're going to clone from. When cloning from existing
static clones any changes made by 'beforeprint' will be present in the existing
static clone.
Second, the code tries to delay the 'afterprint' event until after
mozPrintCallback callbacks have been invoked, but those callbacks are invoked
in the cloned document, whereas the events are sent to the original document!
So there is no reason to do this.
| Assignee | ||
Comment 2•7 years ago
|
||
After refactoring the 'beforeprint'/'afterprint' code, this method is not used
any more.
| Assignee | ||
Updated•6 years ago
|
Comment 4•6 years ago
|
||
Backed out as requested.
Backout link: https://hg.mozilla.org/integration/autoland/rev/e3325d8cbd90340adb29a9585926e4397da4c3c1
Comment 6•6 years ago
|
||
Backed outfor failures at table-background-print.html.
Backout link: https://hg.mozilla.org/integration/autoland/rev/b9825b191c1c7179a42ddf932736061bd0430542
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=309425604&repo=autoland&lineNumber=1342
| Assignee | ||
Updated•6 years ago
|
Comment 8•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/25fa445f9702
https://hg.mozilla.org/mozilla-central/rev/907d8172c495
Description
•