Closed Bug 1709062 Opened 4 years ago Closed 4 years ago

Make printpreview_helper use a <browser> rather than depending on OS window size.

Categories

(Core :: Print Preview, task)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(2 files)

No description provided.

Recently (due to probably a system upgrade) this test fails locally for
me with an exception in compareCanvases(), because the two preview
windows aren't always the same size.

This is more reliable, faster, more similar to what we actually do
in print preview, and more easily debuggable.

Warn when some of the pre-conditions fail and such, so that it's easy to
see what's going wrong without having to use a debugger.

Remove some useless null-checks (we were dealing with null arguments
anyways, and the return value is never null).

Depends on D114078

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f3e98d3f836c Make printpreview_helper use a fixed viewport width. r=dholbert https://hg.mozilla.org/integration/autoland/rev/b110e23dbb1a Minor cleanups to nsDOMWindowUtils::CompareCanvases. r=dholbert
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Regressions: 1709873
No longer regressions: 1709873
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: