Closed Bug 1962274 Opened 1 year ago Closed 1 year ago

Add a print-preview test with printInColor disabled

Categories

(Core :: Printing: Output, task)

task

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

Bug 1961975 clued us into the fact that our automation tests don't currently exercise our print-preview UI with the black-and-white printing setting (printInColor disabled). We had a debug-only crash that tripped in that configuration for a few weeks without our automation detecting it.

--> Filing this bug on adding a test that exercises this codepath.

Here's a Try run[1], based on a build without bug 1961975's fix, which demonstrates that my new test (which I'll post shortly) does indeed serve as a regression test for bug 1961975. The orange "c1" test runs are cases where this test would have caught the problem - they all show PROCESS-CRASH | application crashed [@ nsINode::GetBoolFlag] | layout/base/tests/chrome/test_printpreview.xhtml which is the same crash described in bug 1961975.

[1] https://treeherder.mozilla.org/jobs?repo=try&revision=0d59416b17557eb468fcbcb187ec5c66150bd104

Assignee: nobody → dholbert
Status: NEW → ASSIGNED

Try runs, with the test version that's in phabricator, rooted on a commit...

The test does trigger a crash on linux debug c1 in the "before" try run (which is good and indicates that it's giving us the test coverage that we need).

I don't know offhand how we're managing to avoid crashing on windows debug test runs in that same "before" Try run, but I'm not going to worry about it too much, since this is kind of an afterthought anyway and we've now got some test coverage for this.

Pushed by dholbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e13d255b2d52 Add a print-preview test with printInColor disabled. r=jwatt
Severity: -- → S3
Type: defect → task
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
QA Whiteboard: [qa-triage-done-c140/b139]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: