Closed Bug 1662365 Opened 4 years ago Closed 4 years ago

Intermittent toolkit/components/printing/tests/browser_modal_print.js | Initial focus on printer picker - Got [object HTMLBodyElement], expected [object HTMLSelectElement]

Categories

(Toolkit :: Printing, defect, P5)

defect

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox80 --- unaffected
firefox81 --- disabled
firefox82 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: mstriemer)

References

(Regression)

Details

(Keywords: intermittent-failure, regression, Whiteboard: [print2020_v82][retriggered][stockwell disable-recommended])

Attachments

(2 files)

Filed by: btara [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=314546044&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/N8s1WeNXT3SCfdg1u28WiA/runs/0/artifacts/public/logs/live_backing.log


[task 2020-09-01T08:06:28.443Z] 08:06:28     INFO - TEST-START | toolkit/components/printing/tests/browser_modal_print.js
[task 2020-09-01T08:06:28.449Z] 08:06:28     INFO - GECKO(3136) | [Child 3138: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x10d4e6c00 == 2 [pid = 3138] [id = {7610f0ac-a5fd-5046-9ffe-55064026fe68}]
...
[task 2020-09-01T08:06:33.445Z] 08:06:33     INFO - GECKO(3136) | [Child 3138: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 32 (0x10d408800) [pid = 3138] [serial = 32] [outer = 0x1354b3b70]
[task 2020-09-01T08:06:33.557Z] 08:06:33     INFO - TEST-INFO | started process screencapture
[task 2020-09-01T08:06:33.692Z] 08:06:33     INFO - TEST-INFO | screencapture: exit 0
[task 2020-09-01T08:06:33.692Z] 08:06:33     INFO - Buffered messages logged at 08:06:28
[task 2020-09-01T08:06:33.692Z] 08:06:33     INFO - Entering test bound testModalPrintDialog
[task 2020-09-01T08:06:33.693Z] 08:06:33     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.com/browser/toolkit/components/printing/tests/simplifyArticleSample.html" line: 0}]
[task 2020-09-01T08:06:33.693Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There are no print dialogs - 
[task 2020-09-01T08:06:33.693Z] 08:06:33     INFO - Global property added while loading chrome://global/content/printUtils.js: gFocusedElement
[task 2020-09-01T08:06:33.693Z] 08:06:33     INFO - Global property added while loading chrome://global/content/printUtils.js: PRINT_TAB_MODAL
[task 2020-09-01T08:06:33.694Z] 08:06:33     INFO - Global property added while loading chrome://global/content/printUtils.js: PRINT_ALWAYS_SILENT
[task 2020-09-01T08:06:33.694Z] 08:06:33     INFO - Global property added while loading chrome://global/content/printUtils.js: PromptUtils
[task 2020-09-01T08:06:33.694Z] 08:06:33     INFO - Buffered messages logged at 08:06:29
[task 2020-09-01T08:06:33.694Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There is one print dialog - 
[task 2020-09-01T08:06:33.695Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | The dialog exists - 
[task 2020-09-01T08:06:33.695Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | The URL of the browser is the one we expect - 
[task 2020-09-01T08:06:33.695Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | The dialog exists - 
[task 2020-09-01T08:06:33.695Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There are no print dialogs - 
[task 2020-09-01T08:06:33.695Z] 08:06:33     INFO - Console message: [JavaScript Error: "[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDocShell.exitPrintPreview]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://gre/actors/PrintingChild.jsm :: exitPrintPreview :: line 404"  data: no]"]
[task 2020-09-01T08:06:33.696Z] 08:06:33     INFO - exitPrintPreview@resource://gre/actors/PrintingChild.jsm:404:19
[task 2020-09-01T08:06:33.696Z] 08:06:33     INFO - receiveMessage@resource://gre/actors/PrintingChild.jsm:99:14
[task 2020-09-01T08:06:33.696Z] 08:06:33     INFO - receiveMessage@resource://gre/modules/ActorManagerChild.jsm:179:30
[task 2020-09-01T08:06:33.696Z] 08:06:33     INFO - 
[task 2020-09-01T08:06:33.696Z] 08:06:33     INFO - Console message: [JavaScript Error: "[Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://gre/actors/PrintingChild.jsm :: printPreviewInitialize :: line 370"  data: no]"]
[task 2020-09-01T08:06:33.696Z] 08:06:33     INFO - printPreviewInitialize@resource://gre/actors/PrintingChild.jsm:370:25
[task 2020-09-01T08:06:33.696Z] 08:06:33     INFO - 
[task 2020-09-01T08:06:33.697Z] 08:06:33     INFO - Console message: [JavaScript Error: "NS_ERROR_NOT_INITIALIZED: " {file: "resource://gre/actors/PrintingChild.jsm" line: 376}]
[task 2020-09-01T08:06:33.697Z] 08:06:33     INFO - printPreviewInitialize@resource://gre/actors/PrintingChild.jsm:376:19
[task 2020-09-01T08:06:33.697Z] 08:06:33     INFO - 
[task 2020-09-01T08:06:33.697Z] 08:06:33     INFO - Leaving test bound testModalPrintDialog
[task 2020-09-01T08:06:33.697Z] 08:06:33     INFO - Entering test bound testPrintMultiple
[task 2020-09-01T08:06:33.697Z] 08:06:33     INFO - Buffered messages logged at 08:06:30
[task 2020-09-01T08:06:33.698Z] 08:06:33     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.com/browser/toolkit/components/printing/tests/simplifyArticleSample.html" line: 0}]
[task 2020-09-01T08:06:33.698Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There are no print dialogs - 
[task 2020-09-01T08:06:33.698Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There is one print dialog - 
[task 2020-09-01T08:06:33.698Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | The dialog exists - 
[task 2020-09-01T08:06:33.698Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | The URL of the browser is the one we expect - 
[task 2020-09-01T08:06:33.698Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There is one print dialog - 
[task 2020-09-01T08:06:33.699Z] 08:06:33     INFO - Buffered messages logged at 08:06:31
[task 2020-09-01T08:06:33.699Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There is one print dialog - 
[task 2020-09-01T08:06:33.699Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There is one print dialog - 
[task 2020-09-01T08:06:33.700Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | The dialog exists - 
[task 2020-09-01T08:06:33.700Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | The URL of the browser is the one we expect - 
[task 2020-09-01T08:06:33.700Z] 08:06:33     INFO - Leaving test bound testPrintMultiple
[task 2020-09-01T08:06:33.701Z] 08:06:33     INFO - Entering test bound testCancelButton
[task 2020-09-01T08:06:33.703Z] 08:06:33     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.com/browser/toolkit/components/printing/tests/simplifyArticleSample.html" line: 0}]
[task 2020-09-01T08:06:33.703Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There are no print dialogs - 
[task 2020-09-01T08:06:33.704Z] 08:06:33     INFO - Buffered messages logged at 08:06:32
[task 2020-09-01T08:06:33.704Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There is one print dialog - 
[task 2020-09-01T08:06:33.704Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | The dialog exists - 
[task 2020-09-01T08:06:33.704Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | Got the cancel button - 
[task 2020-09-01T08:06:33.704Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | The dialog exists - 
[task 2020-09-01T08:06:33.705Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There are no print dialogs - 
[task 2020-09-01T08:06:33.705Z] 08:06:33     INFO - Console message: [JavaScript Error: "[Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://gre/actors/PrintingChild.jsm :: printPreviewInitialize :: line 370"  data: no]"]
[task 2020-09-01T08:06:33.705Z] 08:06:33     INFO - printPreviewInitialize@resource://gre/actors/PrintingChild.jsm:370:25
[task 2020-09-01T08:06:33.705Z] 08:06:33     INFO - 
[task 2020-09-01T08:06:33.705Z] 08:06:33     INFO - Leaving test bound testCancelButton
[task 2020-09-01T08:06:33.707Z] 08:06:33     INFO - Entering test bound testTabOrder
[task 2020-09-01T08:06:33.707Z] 08:06:33     INFO - Buffered messages logged at 08:06:33
[task 2020-09-01T08:06:33.707Z] 08:06:33     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://example.com/browser/toolkit/components/printing/tests/simplifyArticleSample.html" line: 0}]
[task 2020-09-01T08:06:33.707Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There are no print dialogs - 
[task 2020-09-01T08:06:33.707Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There is one print dialog - 
[task 2020-09-01T08:06:33.714Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | The dialog exists - 
[task 2020-09-01T08:06:33.715Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | The dialog exists - 
[task 2020-09-01T08:06:33.715Z] 08:06:33     INFO - Buffered messages finished
[task 2020-09-01T08:06:33.715Z] 08:06:33     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/printing/tests/browser_modal_print.js | Initial focus on printer picker - Got [object HTMLBodyElement], expected [object HTMLSelectElement]
[task 2020-09-01T08:06:33.715Z] 08:06:33     INFO - Stack trace:
[task 2020-09-01T08:06:33.715Z] 08:06:33     INFO - chrome://mochikit/content/browser-test.js:test_is:1332
[task 2020-09-01T08:06:33.715Z] 08:06:33     INFO - chrome://mochitests/content/browser/toolkit/components/printing/tests/browser_modal_print.js:testTabOrder/<:81
[task 2020-09-01T08:06:33.716Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | The dialog exists - 
[task 2020-09-01T08:06:33.716Z] 08:06:33     INFO - GECKO(3136) | [Parent 3136, Main Thread] WARNING: Caller should supply a printer name.: file /builds/worker/checkouts/gecko/widget/nsPrintSettingsService.cpp, line 1020
[task 2020-09-01T08:06:33.716Z] 08:06:33     INFO - GECKO(3136) | [Child 3138, Main Thread] WARNING: NS_ENSURE_TRUE(rootView) failed: file /builds/worker/checkouts/gecko/layout/base/nsPresContext.cpp, line 882
[task 2020-09-01T08:06:33.716Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | Got the print preview browser - 
[task 2020-09-01T08:06:33.716Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | Print preview focused after shift+tab - 
[task 2020-09-01T08:06:33.757Z] 08:06:33     INFO - GECKO(3136) | [Child 3138, Main Thread] WARNING: NS_ENSURE_TRUE(info) failed: file /builds/worker/checkouts/gecko/extensions/permissions/PermissionDelegateHandler.cpp, line 348
[task 2020-09-01T08:06:33.757Z] 08:06:33     INFO - GECKO(3136) | [Child 3138, Main Thread] WARNING: NS_ENSURE_TRUE(info) failed: file /builds/worker/checkouts/gecko/extensions/permissions/PermissionDelegateHandler.cpp, line 348
[task 2020-09-01T08:06:33.909Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | Toolbox focused after shift+tab - 
[task 2020-09-01T08:06:33.909Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | Print preview focused after tab - 
[task 2020-09-01T08:06:33.909Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | Printer picker focused after tab - 
[task 2020-09-01T08:06:33.909Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | The dialog exists - 
[task 2020-09-01T08:06:33.909Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | Got the cancel button - 
[task 2020-09-01T08:06:33.910Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | Cancel button focused - 
[task 2020-09-01T08:06:33.912Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | Toolbox focused after tab - 
[task 2020-09-01T08:06:33.926Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | Cancel button focused after shift+tab - 
[task 2020-09-01T08:06:33.962Z] 08:06:33     INFO - TEST-PASS | toolkit/components/printing/tests/browser_modal_print.js | There are no print dialogs - 
[task 2020-09-01T08:06:34.114Z] 08:06:34     INFO - Leaving test bound testTabOrder
[task 2020-09-01T08:06:34.115Z] 08:06:34     INFO - GECKO(3136) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2020-09-01T08:06:34.115Z] 08:06:34     INFO - GECKO(3136) | MEMORY STAT | vsize 7628MB | residentFast 348MB | heapAllocated 154MB
[task 2020-09-01T08:06:34.115Z] 08:06:34     INFO - TEST-OK | toolkit/components/printing/tests/browser_modal_print.js | took 5686ms
Whiteboard: [print2020_v82]
Has Regression Range: --- → yes
Keywords: regression

Set release status flags based on info from the regressing bug 1661361

Assignee: nobody → rmaries
Status: NEW → ASSIGNED
Assignee: rmaries → nobody
Status: ASSIGNED → NEW
Whiteboard: [print2020_v82][stockwell disable-recommended] → [print2020_v82][retriggered][stockwell disable-recommended]
Assignee: nobody → rmaries
Status: NEW → ASSIGNED
Pushed by rmaries@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/69f60b82ebf6 Disabled browser_modal_print.js on multiple platforms. r=aryx DONTBUILD
Assignee: rmaries → nobody
Status: ASSIGNED → NEW
Keywords: leave-open
Whiteboard: [print2020_v82][retriggered][stockwell disable-recommended] → [print2020_v82][retriggered][stockwell disabled]
Assignee: nobody → rmaries
Status: NEW → ASSIGNED
Assignee: rmaries → mstriemer
Flags: needinfo?(mstriemer)
Keywords: leave-open
Whiteboard: [print2020_v82][retriggered][stockwell disabled] → [print2020_v82][retriggered]
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

The patch landed in nightly and beta is affected.
:mstriemer, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(mstriemer)
Flags: needinfo?(mstriemer)
Whiteboard: [print2020_v82][retriggered][stockwell disable-recommended] → [print2020_v82][retriggered][stockwell disable-recommended][checkin-needed-release]

Sorry for the noise, I thought this was test-only.

Flags: needinfo?(mstriemer)
Whiteboard: [print2020_v82][retriggered][stockwell disable-recommended][checkin-needed-release] → [print2020_v82][retriggered][stockwell disable-recommended]

We aren't targetting 81 anymore, so I don't think the test needs to be uplifted.

Flags: needinfo?(mstriemer)

I was probably going to disable the test at least because it's nearly permafail on release at the moment.

Disabling the test on 81 works for me

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: