Remove the redundant Windows range/ifame selection code
Categories
(Core :: Printing: Setup, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
(Whiteboard: [print2020_v73])
Attachments
(2 files)
The Windows file nsPrintDialogUtil.cpp has some code that checks the nsIWebBrowserPrint (a proxy object with e10s enabled) for range/iframe selection and sets the kEnableSelectionRB bit on the nsIPrintSettings if so:
But nsPrintJob already sets these flags on the nsIPrintSettings before calling ShowPrintDialog:
When e10s is enabled the nsIWebBrowserPrint is actually a MockWebBrowserPrint instance, but the kEnableSelectionRB bit is still propagated/deserialized correctly:
So this code in nsPrintDialogUtil.cpp is redundant.
![]() |
Assignee | |
Comment 1•6 years ago
|
||
There is no need for this code to set the kEnableSelectionRB bit. nsPrintJob
already sets it before it calls nsIPrintingPromptService::ShowPrintDialog.
![]() |
Assignee | |
Comment 2•6 years ago
|
||
It's worth mentioning that the macOS and Linux code works without this extra bit setting that the windows code has precisely because it can rely on nsPrintJob setting it.
![]() |
Assignee | |
Comment 4•6 years ago
|
||
This code should have been removed in the original part, landed as:
https://hg.mozilla.org/mozilla-central/rev/3a6a9814936d
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3a6a9814936d
https://hg.mozilla.org/mozilla-central/rev/c125d40bb4d8
Comment 7•6 years ago
|
||
Does the improvement below make sense for this?
== Change summary for alert #24302 (as of Fri, 06 Dec 2019 21:00:15 GMT) ==
Improvements:
57% raptor-tp6m-cnn-geckoview-cold loadtime android-hw-g5-7-0-arm7-api-16 pgo 14,311.17 -> 6,125.67
26% raptor-tp6m-cnn-geckoview-cold android-hw-g5-7-0-arm7-api-16 pgo 4,560.85 -> 3,357.70
18% raptor-tp6m-cnn-geckoview-cold fcp android-hw-g5-7-0-arm7-api-16 pgo 7,610.58 -> 6,224.92
For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=24302
![]() |
Assignee | |
Updated•5 years ago
|
![]() |
Assignee | |
Updated•5 years ago
|
Description
•