Open Bug 1535670 Opened 5 years ago Updated 2 years ago

Preferences in tests throw errors from register_module on undefined global variables g*Pane

Categories

(Firefox :: Settings UI, defect, P3)

defect

Tracking

()

People

(Reporter: zbraniecki, Unassigned)

Details

See bug 1532712 comment 37

What seems to be happening is that if the test opens/closes the page real fast, the DOMContentLoaded listener init_all gets fired when some/all of the g*Pane global variables are not present (anymore?).

This results in messages such as:

[task 2019-03-13T22:57:27.819Z] 22:57:27 INFO - Console message: [JavaScript Error: "ReferenceError: gMainPane is not defined" {file: "chrome://browser/content/preferences/in-content/preferences.js" line: 76}]

in task bc13 in most debug builds, but for some reason this is not reported as an error in try build.

If you want to surface this error, switch init_all to be async and it'll start showing up in try.

Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.