Closed Bug 1685773 Opened 3 years ago Closed 3 years ago

Perma toolkit/components/printing/tests/browser_print_context_menu.js | Uncaught exception - undefined - timed out after 50 tries. when Gecko switches to Late Beta on 2021-02-05

Categories

(Toolkit :: Printing, defect)

defect

Tracking

()

VERIFIED FIXED
86 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox84 --- unaffected
firefox85 --- unaffected
firefox86 + verified

People

(Reporter: aryx, Assigned: emmamalysz)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

central-as-late-beta simulation
Failure log

[task 2021-01-08T15:06:48.709Z] 15:06:48 INFO - TEST-START | toolkit/components/printing/tests/browser_print_context_menu.js
[task 2021-01-08T15:06:49.196Z] 15:06:49 INFO - GECKO(12637) | [Parent 12637, Main Thread] WARNING: GDBus.Error:org.freedesktop.DBus.Error.Spawn.FileInvalid: Cannot do system-bus activation with no user
[task 2021-01-08T15:06:49.197Z] 15:06:49 INFO - GECKO(12637) | : 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:135
[task 2021-01-08T15:06:49.198Z] 15:06:49 INFO - GECKO(12637) | ** (firefox:12637): WARNING **: 15:06:49.192: GDBus.Error:org.freedesktop.DBus.Error.Spawn.FileInvalid: Cannot do system-bus activation with no user
[task 2021-01-08T15:06:49.198Z] 15:06:49 INFO - GECKO(12637) | [Parent 12637, Main Thread] WARNING: GDBus.Error:org.freedesktop.DBus.Error.Spawn.FileInvalid: Cannot do system-bus activation with no user
[task 2021-01-08T15:06:49.199Z] 15:06:49 INFO - GECKO(12637) | : 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:135
[task 2021-01-08T15:06:49.199Z] 15:06:49 INFO - GECKO(12637) | ** (firefox:12637): WARNING **: 15:06:49.192: GDBus.Error:org.freedesktop.DBus.Error.Spawn.FileInvalid: Cannot do system-bus activation with no user
[task 2021-01-08T15:06:54.228Z] 15:06:54 INFO - TEST-INFO | started process screentopng
[task 2021-01-08T15:06:54.506Z] 15:06:54 INFO - TEST-INFO | screentopng: exit 0
[task 2021-01-08T15:06:54.507Z] 15:06:54 INFO - Buffered messages logged at 15:06:48
[task 2021-01-08T15:06:54.507Z] 15:06:54 INFO - Entering test bound
[task 2021-01-08T15:06:54.508Z] 15:06:54 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: "data:text/html,<html><h1>Top level text</h1><iframe srcdoc='<a href="about:mozilla">Inner frame</a>' id="f"></iframe></html>" line: 0}]
[task 2021-01-08T15:06:54.509Z] 15:06:54 INFO - Console message: [JavaScript Error: "Unknown Collection "main/partitioning-exempt-urls"" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 160}]
[task 2021-01-08T15:06:54.509Z] 15:06:54 INFO - UnknownCollectionError@resource://services-settings/RemoteSettingsClient.jsm:160:5
[task 2021-01-08T15:06:54.509Z] 15:06:54 INFO - sync@resource://services-settings/RemoteSettingsClient.jsm:470:13
[task 2021-01-08T15:06:54.509Z] 15:06:54 INFO -
[task 2021-01-08T15:06:54.509Z] 15:06:54 INFO - Buffered messages finished
[task 2021-01-08T15:06:54.509Z] 15:06:54 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/printing/tests/browser_print_context_menu.js | Uncaught exception - undefined - timed out after 50 tries.
[task 2021-01-08T15:06:54.509Z] 15:06:54 INFO - Leaving test bound
[task 2021-01-08T15:06:54.509Z] 15:06:54 INFO - GECKO(12637) | MEMORY STAT | vsize 3417MB | residentFast 353MB | heapAllocated 114MB
[task 2021-01-08T15:06:54.509Z] 15:06:54 INFO - TEST-OK | toolkit/components/printing/tests/browser_print_context_menu.js | took 5519ms
[task 2021-01-08T15:06:54.509Z] 15:06:54 INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-01-08T15:06:54.509Z] 15:06:54 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/printing/tests/browser_print_context_menu.js | Found an unexpected tab at the end of test run: data:text/html,<html><h1>Top level text</h1><iframe srcdoc='<a href="about:mozilla">Inner frame</a>' id="f"></iframe></html> -
[task 2021-01-08T15:06:54.509Z] 15:06:54 INFO - checking window state
[task 2021-01-08T15:06:54.509Z] 15:06:54 INFO - GECKO(12637) | must wait for focus
[task 2021-01-08T15:13:04.516Z] 15:13:04 INFO - Buffered messages finished

Flags: needinfo?(emalysz)

:aryx, is this still a problem? I was unable to reproduce this failure on a recent try push https://treeherder.mozilla.org/jobs?repo=try&revision=71f037b671f11613ffb03051e9eadb441146baea&selectedTaskRun=DjmYmUrsSHS3XgDf6yMAcA.0

Flags: needinfo?(emalysz) → needinfo?(aryx.bugmail)

It affects only central-as-late-beta simulations (or Firefox 86 beta starting on 2021-02-05). https://wiki.mozilla.org/Sheriffing/How_To/Beta_simulations has information how to run it.

Based on the screenshot artifact attached to the log in comment 0, the test fails to find the new print preview.

This should fix it:

await SpecialPowers.pushPrefEnv({
 set: [["print.tab_modal.enabled", true]],
});
Flags: needinfo?(aryx.bugmail) → needinfo?(emalysz)

Thanks for linking that! I'll make sure to change that

Flags: needinfo?(emalysz)
Assignee: nobody → emalysz
Pushed by emalysz@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3c8aa1b34f87
fix browser_print_context_menu.js test to include pref value r=mstriemer
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: