Closed Bug 2033596 Opened 5 months ago Closed 5 months ago

Perma [tier 2] browser/extensions/newtab/test/browser/browser_customize_menu_content.js | test_render_customizeMenu - Uncaught exception in test - TypeError: can't access property "MutationObserver", subject.documentGlobal is undefined

Categories

(Firefox :: New Tab Page, defect, P5)

defect

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox150 --- unaffected
firefox151 --- fixed
firefox152 --- fixed

People

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

References

(Regression)

Details

(Keywords: intermittent-failure, intermittent-testcase, regression, Whiteboard: [collect_confirm_failure])

Attachments

(1 file)

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


[task 2026-04-20T20:23:18.974+00:00] 20:23:18     INFO - TEST-PASS | browser/extensions/newtab/test/browser/browser_customize_menu_content.js | test_render_customizeMenu - Shortcuts section is not rendered - true == true
[task 2026-04-20T20:23:18.979+00:00] 20:23:18     INFO - Buffered messages finished
[task 2026-04-20T20:23:18.979+00:00] 20:23:18     INFO - TEST-UNEXPECTED-FAIL | browser/extensions/newtab/test/browser/browser_customize_menu_content.js | test_render_customizeMenu - Uncaught exception in test - TypeError: can't access property "MutationObserver", subject.documentGlobal is undefined
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - waitForMutationCondition/<@resource://testing-common/ContentTaskUtils.sys.mjs:203:17
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - waitForMutationCondition@resource://testing-common/ContentTaskUtils.sys.mjs:202:12
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - promiseSectionShown@chrome://mochitests/content/browser/browser/extensions/newtab/test/browser/browser_customize_menu_content.js:75:31
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - test_render_customizeMenu@chrome://mochitests/content/browser/browser/extensions/newtab/test/browser/browser_customize_menu_content.js:116:50
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - async*execute@resource://testing-common/SpecialPowersSandbox.sys.mjs:139:12
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - _spawnTask@resource://testing-common/SpecialPowersChild.sys.mjs:1624:15
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - receiveMessage@resource://testing-common/SpecialPowersChild.sys.mjs:256:21
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - JSActor query*receiveMessage@resource://testing-common/SpecialPowersParent.sys.mjs:1415:14
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - JSActor query*spawn@resource://testing-common/SpecialPowersChild.sys.mjs:1551:17
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - testTask@chrome://mochitests/content/browser/browser/extensions/newtab/test/browser/head.js:222:47
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1380:26
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1470:18
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1621:14
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1360:14
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1060:13
[task 2026-04-20T20:23:18.980+00:00] 20:23:18     INFO - Leaving test test_render_customizeMenu
[task 2026-04-20T20:23:18.981+00:00] 20:23:18     INFO - Entering test test_render_customizeMenuWeather
[task 2026-04-20T20:23:19.199+00:00] 20:23:19     INFO - GECKO(3694) | console.log: PrefsFeed: "Activation window evaluation skipped."
[task 2026-04-20T20:23:19.199+00:00] 20:23:19     INFO - GECKO(3694) | console.debug: PrefsFeed: "enabled:false, createdInstant:2026-04-20T20:21:06.899Z, variant: "
[task 2026-04-20T20:23:19.686+00:00] 20:23:19     INFO - TEST-PASS | browser/extensions/newtab/test/browser/browser_customize_menu_content.js | test_render_customizeMenuWeather - Weather pref is turned off - true == true

Flags: needinfo?(emilio)

This seems expected given the trainhop nature of this test. Do you know how to deal with this Mike?

Flags: needinfo?(emilio) → needinfo?(mconley)

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

(In reply to Emilio Cobos Álvarez [:emilio] from comment #1)

This seems expected given the trainhop nature of this test. Do you know how to deal with this Mike?

Hi! Yeah, we're going to need to shim the usage of documentGlobal so that it falls back to ownerGlobal if documentGlobal does not exist.

Something like the ones we removed for the old Search service getter here: https://bugzilla.mozilla.org/show_bug.cgi?id=2024674

Flags: needinfo?(mconley)
Assignee: nobody → mconley
Pushed by mconley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d39046542722 https://hg.mozilla.org/integration/autoland/rev/d8b0688bd99d Shim documentGlobal in ContentTaskUtils.waitForMutationCondition for newtab train-hop tests until 152 makes it to release. r=emilio
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: