Perma trainhop [tier 2] browser/extensions/newtab/test/browser/browser_activation_window.js | test_activation_window_entry - Uncaught exception in test - TypeError: can't access property "documentGlobal", tabbrowser is undefined | single tracking bug
Categories
(Firefox :: New Tab Page, defect, P5)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr140 | --- | unaffected |
| firefox150 | --- | unaffected |
| firefox151 | --- | unaffected |
| firefox152 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: emilio)
References
(Regression)
Details
(Keywords: intermittent-failure, intermittent-testcase, regression, Whiteboard: [collect_confirm_failure])
Attachments
(1 file)
Filed by: amarc [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=563904840&repo=autoland&task=bf1jRLnsSsKuPe_B84pm1w.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/bf1jRLnsSsKuPe_B84pm1w/runs/0/artifacts/public/logs/live_backing.log
[task 2026-05-01T19:58:01.042+00:00] 19:58:01 INFO - TEST-PASS | browser/extensions/newtab/test/browser/browser_activation_window.js | test_createdInstant_getter - Should have been constructed with a createdInstant - "2026-05-01T19:57:56.998Z" == true
[task 2026-05-01T19:58:01.043+00:00] 19:58:01 INFO - TEST-PASS | browser/extensions/newtab/test/browser/browser_activation_window.js | test_createdInstant_getter - ActivityStream.createdInstant should equal the profile creation instant. - true == true
[task 2026-05-01T19:58:01.044+00:00] 19:58:01 INFO - Leaving test test_createdInstant_getter
[task 2026-05-01T19:58:01.045+00:00] 19:58:01 INFO - Entering test test_activation_window_entry
[task 2026-05-01T19:58:01.046+00:00] 19:58:01 INFO - Buffered messages finished
[task 2026-05-01T19:58:01.048+00:00] 19:58:01 INFO - TEST-UNEXPECTED-FAIL | browser/extensions/newtab/test/browser/browser_activation_window.js | test_activation_window_entry - Uncaught exception in test - TypeError: can't access property "documentGlobal", tabbrowser is undefined
[task 2026-05-01T19:58:01.048+00:00] 19:58:01 INFO - switchTab@resource://testing-common/BrowserTestUtils.sys.mjs:371:29
[task 2026-05-01T19:58:01.048+00:00] 19:58:01 INFO - openNewForegroundTab@resource://testing-common/BrowserTestUtils.sys.mjs:222:26
[task 2026-05-01T19:58:01.048+00:00] 19:58:01 INFO - test_activation_window_entry@chrome://mochitests/content/browser/browser/extensions/newtab/test/browser/browser_activation_window.js:223:38
[task 2026-05-01T19:58:01.048+00:00] 19:58:01 INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1380:26
[task 2026-05-01T19:58:01.048+00:00] 19:58:01 INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1470:18
[task 2026-05-01T19:58:01.048+00:00] 19:58:01 INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1622:14
[task 2026-05-01T19:58:01.048+00:00] 19:58:01 INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1360:14
[task 2026-05-01T19:58:01.048+00:00] 19:58:01 INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1060:13
[task 2026-05-01T19:58:01.049+00:00] 19:58:01 INFO - Leaving test test_activation_window_entry
[task 2026-05-01T19:58:01.050+00:00] 19:58:01 INFO - Entering test test_user_enabling_persists_topsites
[task 2026-05-01T19:58:01.051+00:00] 19:58:01 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:01.051+00:00] 19:58:01 INFO - GECKO(8348) | Queued update for enrollment newtabTrainhop-experiment-0.5912951748279967
[task 2026-05-01T19:58:01.052+00:00] 19:58:01 INFO - GECKO(8348) | console.debug: ExperimentManager:
[task 2026-05-01T19:58:01.052+00:00] 19:58:01 INFO - GECKO(8348) | New experiment started: newtabTrainhop-experiment-0.5912951748279967, control
[task 2026-05-01T19:58:01.053+00:00] 19:58:01 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:01.053+00:00] 19:58:01 INFO - GECKO(8348) | Flushing 1 enrollments, 0 timestamps to database
[task 2026-05-01T19:58:01.055+00:00] 19:58:01 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:01.055+00:00] 19:58:01 INFO - GECKO(8348) | Created active enrollment newtabTrainhop-experiment-0.5912951748279967
[task 2026-05-01T19:58:01.056+00:00] 19:58:01 INFO - GECKO(8348) | console.error: (new InvalidStateError("An attempt was made to use an object that is not, or is no longer, usable", (void 0), 428))
[task 2026-05-01T19:58:01.056+00:00] 19:58:01 INFO - GECKO(8348) | console.error: (new InvalidStateError("JSWindowActorParent.sendAsyncMessage: JSWindowActorParent cannot send at the moment", (void 0), 627))
[task 2026-05-01T19:58:04.880+00:00] 19:58:04 INFO - GECKO(8348) | console.debug: AboutNewTabResourceMapping: "_updateAddonStateDeferredTask running"
[task 2026-05-01T19:58:04.882+00:00] 19:58:04 INFO - GECKO(8348) | console.debug: AboutNewTabResourceMapping: "Force restartless install: " false
[task 2026-05-01T19:58:04.883+00:00] 19:58:04 INFO - GECKO(8348) | console.debug: AboutNewTabResourceMapping: "Received addon version:" null
[task 2026-05-01T19:58:04.883+00:00] 19:58:04 INFO - GECKO(8348) | console.debug: AboutNewTabResourceMapping: "Received XPI download path:" null
[task 2026-05-01T19:58:04.884+00:00] 19:58:04 INFO - GECKO(8348) | console.debug: AboutNewTabResourceMapping: "train-hop cancelled: client not enrolled"
[task 2026-05-01T19:58:04.884+00:00] 19:58:04 INFO - GECKO(8348) | console.debug: AboutNewTabResourceMapping: "_updateAddonStateDeferredTask completed"
[task 2026-05-01T19:58:06.089+00:00] 19:58:06 INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-05-01T19:58:06.094+00:00] 19:58:06 INFO - TEST-UNEXPECTED-FAIL | browser/extensions/newtab/test/browser/browser_activation_window.js | test_user_enabling_persists_topsites - Uncaught exception in test - Wait for expected activation window config - timed out after 50 tries.
[task 2026-05-01T19:58:06.095+00:00] 19:58:06 INFO - Leaving test test_user_enabling_persists_topsites
[task 2026-05-01T19:58:06.096+00:00] 19:58:06 INFO - Entering test test_user_enabling_persists_topstories
[task 2026-05-01T19:58:06.096+00:00] 19:58:06 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:06.097+00:00] 19:58:06 INFO - GECKO(8348) | Queued update for enrollment newtabTrainhop-experiment-0.039021348202299855
[task 2026-05-01T19:58:06.097+00:00] 19:58:06 INFO - GECKO(8348) | console.debug: ExperimentManager:
[task 2026-05-01T19:58:06.098+00:00] 19:58:06 INFO - GECKO(8348) | New experiment started: newtabTrainhop-experiment-0.039021348202299855, control
[task 2026-05-01T19:58:06.098+00:00] 19:58:06 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:06.099+00:00] 19:58:06 INFO - GECKO(8348) | Flushing 1 enrollments, 0 timestamps to database
[task 2026-05-01T19:58:06.099+00:00] 19:58:06 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:06.100+00:00] 19:58:06 INFO - GECKO(8348) | Created active enrollment newtabTrainhop-experiment-0.039021348202299855
[task 2026-05-01T19:58:11.686+00:00] 19:58:11 INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-05-01T19:58:11.688+00:00] 19:58:11 INFO - TEST-UNEXPECTED-FAIL | browser/extensions/newtab/test/browser/browser_activation_window.js | test_user_enabling_persists_topstories - Uncaught exception in test - Wait for expected activation window config - timed out after 50 tries.
[task 2026-05-01T19:58:11.689+00:00] 19:58:11 INFO - Leaving test test_user_enabling_persists_topstories
[task 2026-05-01T19:58:11.690+00:00] 19:58:11 INFO - Entering test test_user_disabling_persists_topsites
[task 2026-05-01T19:58:11.690+00:00] 19:58:11 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:11.691+00:00] 19:58:11 INFO - GECKO(8348) | Queued update for enrollment newtabTrainhop-experiment-0.0023881778938970033
[task 2026-05-01T19:58:11.692+00:00] 19:58:11 INFO - GECKO(8348) | console.debug: ExperimentManager:
[task 2026-05-01T19:58:11.693+00:00] 19:58:11 INFO - GECKO(8348) | New experiment started: newtabTrainhop-experiment-0.0023881778938970033, control
[task 2026-05-01T19:58:11.695+00:00] 19:58:11 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:11.695+00:00] 19:58:11 INFO - GECKO(8348) | Flushing 1 enrollments, 0 timestamps to database
[task 2026-05-01T19:58:11.696+00:00] 19:58:11 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:11.696+00:00] 19:58:11 INFO - GECKO(8348) | Created active enrollment newtabTrainhop-experiment-0.0023881778938970033
[task 2026-05-01T19:58:17.307+00:00] 19:58:17 INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-05-01T19:58:17.310+00:00] 19:58:17 INFO - TEST-UNEXPECTED-FAIL | browser/extensions/newtab/test/browser/browser_activation_window.js | test_user_disabling_persists_topsites - Uncaught exception in test - Wait for expected activation window config - timed out after 50 tries.
[task 2026-05-01T19:58:17.311+00:00] 19:58:17 INFO - Leaving test test_user_disabling_persists_topsites
[task 2026-05-01T19:58:17.312+00:00] 19:58:17 INFO - Entering test test_user_disabling_persists_topstories
[task 2026-05-01T19:58:17.312+00:00] 19:58:17 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:17.313+00:00] 19:58:17 INFO - GECKO(8348) | Queued update for enrollment newtabTrainhop-experiment-0.16986936262282226
[task 2026-05-01T19:58:17.314+00:00] 19:58:17 INFO - GECKO(8348) | console.debug: ExperimentManager:
[task 2026-05-01T19:58:17.315+00:00] 19:58:17 INFO - GECKO(8348) | New experiment started: newtabTrainhop-experiment-0.16986936262282226, control
[task 2026-05-01T19:58:17.315+00:00] 19:58:17 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:17.316+00:00] 19:58:17 INFO - GECKO(8348) | Flushing 1 enrollments, 0 timestamps to database
[task 2026-05-01T19:58:17.316+00:00] 19:58:17 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:17.316+00:00] 19:58:17 INFO - GECKO(8348) | Created active enrollment newtabTrainhop-experiment-0.16986936262282226
[task 2026-05-01T19:58:22.347+00:00] 19:58:22 INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-05-01T19:58:22.350+00:00] 19:58:22 INFO - TEST-UNEXPECTED-FAIL | browser/extensions/newtab/test/browser/browser_activation_window.js | test_user_disabling_persists_topstories - Uncaught exception in test - Wait for expected activation window config - timed out after 50 tries.
[task 2026-05-01T19:58:22.351+00:00] 19:58:22 INFO - Leaving test test_user_disabling_persists_topstories
[task 2026-05-01T19:58:22.352+00:00] 19:58:22 INFO - Entering test test_restart_reapplies_defaults
[task 2026-05-01T19:58:22.352+00:00] 19:58:22 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:22.353+00:00] 19:58:22 INFO - GECKO(8348) | Queued update for enrollment newtabTrainhop-experiment-0.7238984235708937
[task 2026-05-01T19:58:22.353+00:00] 19:58:22 INFO - GECKO(8348) | console.debug: ExperimentManager:
[task 2026-05-01T19:58:22.354+00:00] 19:58:22 INFO - GECKO(8348) | New experiment started: newtabTrainhop-experiment-0.7238984235708937, control
[task 2026-05-01T19:58:22.355+00:00] 19:58:22 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:22.356+00:00] 19:58:22 INFO - GECKO(8348) | Flushing 1 enrollments, 0 timestamps to database
[task 2026-05-01T19:58:22.356+00:00] 19:58:22 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:22.357+00:00] 19:58:22 INFO - GECKO(8348) | Created active enrollment newtabTrainhop-experiment-0.7238984235708937
[task 2026-05-01T19:58:27.389+00:00] 19:58:27 INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-05-01T19:58:27.392+00:00] 19:58:27 INFO - TEST-UNEXPECTED-FAIL | browser/extensions/newtab/test/browser/browser_activation_window.js | test_restart_reapplies_defaults - Uncaught exception in test - Wait for expected activation window config - timed out after 50 tries.
[task 2026-05-01T19:58:27.393+00:00] 19:58:27 INFO - Leaving test test_restart_reapplies_defaults
[task 2026-05-01T19:58:27.394+00:00] 19:58:27 INFO - Entering test test_defaults_restored_after_exit
[task 2026-05-01T19:58:27.394+00:00] 19:58:27 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:27.395+00:00] 19:58:27 INFO - GECKO(8348) | Queued update for enrollment newtabTrainhop-experiment-0.006772232611725215
[task 2026-05-01T19:58:27.395+00:00] 19:58:27 INFO - GECKO(8348) | console.debug: ExperimentManager:
[task 2026-05-01T19:58:27.397+00:00] 19:58:27 INFO - GECKO(8348) | New experiment started: newtabTrainhop-experiment-0.006772232611725215, control
[task 2026-05-01T19:58:27.397+00:00] 19:58:27 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:27.398+00:00] 19:58:27 INFO - GECKO(8348) | Flushing 1 enrollments, 0 timestamps to database
[task 2026-05-01T19:58:27.398+00:00] 19:58:27 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:27.399+00:00] 19:58:27 INFO - GECKO(8348) | Created active enrollment newtabTrainhop-experiment-0.006772232611725215
[task 2026-05-01T19:58:32.435+00:00] 19:58:32 INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-05-01T19:58:32.437+00:00] 19:58:32 INFO - TEST-UNEXPECTED-FAIL | browser/extensions/newtab/test/browser/browser_activation_window.js | test_defaults_restored_after_exit - Uncaught exception in test - Wait for expected activation window config - timed out after 50 tries.
[task 2026-05-01T19:58:32.438+00:00] 19:58:32 INFO - Leaving test test_defaults_restored_after_exit
[task 2026-05-01T19:58:32.439+00:00] 19:58:32 INFO - Entering test test_activation_window_variants
[task 2026-05-01T19:58:32.440+00:00] 19:58:32 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:32.440+00:00] 19:58:32 INFO - GECKO(8348) | Queued update for enrollment newtabTrainhop-experiment-0.16766389513900515
[task 2026-05-01T19:58:32.441+00:00] 19:58:32 INFO - GECKO(8348) | console.debug: ExperimentManager:
[task 2026-05-01T19:58:32.441+00:00] 19:58:32 INFO - GECKO(8348) | New experiment started: newtabTrainhop-experiment-0.16766389513900515, control
[task 2026-05-01T19:58:32.442+00:00] 19:58:32 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:32.442+00:00] 19:58:32 INFO - GECKO(8348) | Flushing 1 enrollments, 0 timestamps to database
[task 2026-05-01T19:58:32.443+00:00] 19:58:32 INFO - GECKO(8348) | console.debug: NimbusEnrollments:
[task 2026-05-01T19:58:32.443+00:00] 19:58:32 INFO - GECKO(8348) | Created active enrollment newtabTrainhop-experiment-0.16766389513900515
[task 2026-05-01T19:58:37.476+00:00] 19:58:37 INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-05-01T19:58:37.478+00:00] 19:58:37 INFO - TEST-UNEXPECTED-FAIL | browser/extensions/newtab/test/browser/browser_activation_window.js | test_activation_window_variants - Uncaught exception in test - Wait for expected activation window config - timed out after 50 tries.
[task 2026-05-01T19:58:37.479+00:00] 19:58:37 INFO - Leaving test test_activation_window_variants
[task 2026-05-01T19:58:37.517+00:00] 19:58:37 INFO - GECKO(8348) | MEMORY STAT | vsize 2104376MB | vsizeMaxContiguous 65060916MB | residentFast 303MB | heapAllocated 105MB
[task 2026-05-01T19:58:37.527+00:00] 19:58:37 INFO - checking for open sidebars
[task 2026-05-01T19:58:37.527+00:00] 19:58:37 INFO - checking window state
[task 2026-05-01T19:58:37.528+00:00] 19:58:37 INFO - Not taking screenshot here: see the one that was previously logged
[task 2026-05-01T19:58:37.528+00:00] 19:58:37 INFO - TEST-UNEXPECTED-FAIL | browser/extensions/newtab/test/browser/browser_activation_window.js | finished in 36535ms
[task 2026-05-01T19:58:37.528+00:00] 19:58:37 INFO - TEST-INFO took 36603ms
[task 2026-05-01T19:58:37.549+00:00] 19:58:37 INFO - TEST-START | browser/extensions/newtab/test/browser/browser_as_load_location.js
Comment 1•1 month ago
|
||
Set release status flags based on info from the regressing bug 2033243
:emilio, since you are the author of the regressor, bug 2033243, could you take a look?
For more information, please visit BugBot documentation.
Comment 2•1 month ago
|
||
FYI the newtab extension may be packaged and run on a Firefox version older than the tree ("train hop"). It is likely that you need to add fallbacks to ownerGlobal, or maybe use properties that exist across all channels.
| Assignee | ||
Comment 3•1 month ago
|
||
I'm a bit confused tho, the error seems to come from BrowserTestUtils. I assume I don't need to make BrowserTestUtil work across all channels?
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 4•1 month ago
|
||
Updated•1 month ago
|
| Assignee | ||
Comment 6•1 month ago
|
||
So this is, I think the right fix, but comment 3 still fails probably not unexpectedly... Are we using the BrowserTestUtils from central on beta? That seems unfortunate to have to fix...
| Assignee | ||
Comment 7•1 month ago
|
||
Comment 8•1 month ago
•
|
||
Looks like you do need to maintain a compatibility layer until it goes to release. Something similar happened with the Cu.now deprecation: bug 1983850 (reverted in bug 1983851).
The patch that you put up fixes the implementation, which is important for users. But without a test fix, I would imagine there to not be confidence in doing the train hop. So I guess that if you can fix them at once it would be nice.
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 10•1 month ago
|
||
Comment 11•1 month ago
|
||
Comment 12•1 month ago
|
||
Comment 13•1 month ago
|
||
Revert for causing newtab failures. So far, this happened only on Linux.
| Assignee | ||
Updated•1 month ago
|
Comment 14•1 month ago
|
||
Comment 15•29 days ago
|
||
| bugherder | ||
| Comment hidden (Intermittent Failures Robot) |
Comment 17•28 days ago
|
||
Comment 18•28 days ago
|
||
Backed out for causing for causing doc generate failures
Backout Link
Push with failures
Failure Log
Failure line sphinx.errors.ExtensionError: Handler <function analyze at 0x7fb28db62ca0> for event 'builder-inited' threw an exception (exception: Your code contains multiple documented objects at each of these paths:
| Assignee | ||
Updated•28 days ago
|
Comment 19•28 days ago
|
||
Comment 20•28 days ago
|
||
Re-landed
Comment 21•28 days ago
|
||
| bugherder | ||
Description
•