Bug: Perma TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_newtab_userTypedValue.js | Test timed out when Gecko 100 merges to Beta on 2022-04-04
Status: VERIFIED
Priority: P1
Resolution: FIXED
Created: 2022-03-26 14:11:36+00:00
Resolved: 2022-03-30 14:43:52+00:00

[Central-as-beta-simulation](https://treeherder.mozilla.org/jobs?repo=try&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel%2Crunnable&revision=fa94c90120343fa86a820dce365c40b0bff3d1f6)

[How to run these simulations](https://wiki.mozilla.org/Sheriffing/How_To/Beta_simulations#TRUNK_AS_EARLY_BETA)

[Failure log](https://treeherder.mozilla.org/logviewer?job_id=372443084&repo=try&lineNumber=6735)

```[task 2022-03-26T12:32:00.086Z] 12:32:00     INFO - TEST-PASS | browser/components/sessionstore/test/browser_newtab_userTypedValue.js | userTypedValue should be undefined on the tab's state - 
[task 2022-03-26T12:32:00.087Z] 12:32:00     INFO - Removing tab - Sat Mar 26 2022 12:26:05 GMT+0000 (Coordinated Universal Time)
[task 2022-03-26T12:32:00.088Z] 12:32:00     INFO - Buffered messages logged at 12:26:06
[task 2022-03-26T12:32:00.089Z] 12:32:00     INFO - Finished removing tab - Sat Mar 26 2022 12:26:06 GMT+0000 (Coordinated Universal Time)
[task 2022-03-26T12:32:00.090Z] 12:32:00     INFO - Testing about:myfirefox - Sat Mar 26 2022 12:26:06 GMT+0000 (Coordinated Universal Time)
[task 2022-03-26T12:32:00.091Z] 12:32:00     INFO - Buffered messages logged at 12:27:29
[task 2022-03-26T12:32:00.092Z] 12:32:00     INFO - Longer timeout required, waiting longer...  Remaining timeouts: 3
[task 2022-03-26T12:32:00.093Z] 12:32:00     INFO - Buffered messages logged at 12:28:59
[task 2022-03-26T12:32:00.094Z] 12:32:00     INFO - Longer timeout required, waiting longer...  Remaining timeouts: 2
[task 2022-03-26T12:32:00.095Z] 12:32:00     INFO - Buffered messages logged at 12:30:29
[task 2022-03-26T12:32:00.095Z] 12:32:00     INFO - Longer timeout required, waiting longer...  Remaining timeouts: 1
[task 2022-03-26T12:32:00.096Z] 12:32:00     INFO - Buffered messages finished
[task 2022-03-26T12:32:00.097Z] 12:32:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_newtab_userTypedValue.js | Test timed out - 
[task 2022-03-26T12:32:00.098Z] 12:32:00     INFO - GECKO(3430) | MEMORY STAT | vsize 20983847MB | residentFast 1787MB
[task 2022-03-26T12:32:00.099Z] 12:32:00     INFO - TEST-OK | browser/components/sessionstore/test/browser_newtab_userTypedValue.js | took 360068ms
[task 2022-03-26T12:32:00.099Z] 12:32:00     INFO - checking window state
[task 2022-03-26T12:32:00.100Z] 12:32:00     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-03-26T12:32:00.101Z] 12:32:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_newtab_userTypedValue.js | Found a browser window after previous test timed out - 
[task 2022-03-26T12:32:00.102Z] 12:32:00     INFO - GECKO(3430) | must wait for focus
[task 2022-03-26T12:32:00.103Z] 12:32:00     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-03-26T12:32:00.104Z] 12:32:00     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_newtab_userTypedValue.js | Uncaught exception received from previously timed out test - at resource://testing-common/BrowserTestUtils.jsm:516 - Error: The window unloaded while we were waiting for the browser to load - this should never happen.
[task 2022-03-26T12:32:00.104Z] 12:32:00     INFO - Stack trace:
[task 2022-03-26T12:32:00.104Z] 12:32:00     INFO - listener@resource://testing-common/BrowserTestUtils.jsm:516:15
[task 2022-03-26T12:32:00.159Z] 12:32:00     INFO - TEST-START | browser/components/sessionstore/test/browser_not_collect_when_idle.js
[task 2022-03-26T12:32:00.226Z] 12:32:00     INFO - GECKO(3430) | JavaScript error: chrome://mochikit/content/browser-test.js, line 1052: TypeError: currentScope.__tasks is null
[task 2022-03-26T12:32:06.555Z] 12:32:06     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-03-26T12:32:06.555Z] 12:32:06     INFO - Buffered messages logged at 12:32:00
[task 2022-03-26T12:32:06.556Z] 12:32:06     INFO - Entering test bound testIntervalChanges
[task 2022-03-26T12:32:06.557Z] 12:32:06     INFO - Waiting for sessionstore-state-write-complete notification
[task 2022-03-26T12:32:06.557Z] 12:32:06     INFO - Console message: [JavaScript Error: "TypeError: currentScope.__tasks is null" {file: "chrome://mochikit/content/browser-test.js" line: 1052}]
[task 2022-03-26T12:32:06.558Z] 12:32:06     INFO - Got the sessionstore-state-write-complete notification, now testing idle mode
[task 2022-03-26T12:32:06.558Z] 12:32:06     INFO - Buffered messages logged at 12:32:02
[task 2022-03-26T12:32:06.559Z] 12:32:06     INFO - TEST-PASS | browser/components/sessionstore/test/browser_not_collect_when_idle.js | [Test 1A] No state write during idle. - 
[task 2022-03-26T12:32:06.559Z] 12:32:06     INFO - Buffered messages logged at 12:32:04
[task 2022-03-26T12:32:06.560Z] 12:32:06     INFO - TEST-PASS | browser/components/sessionstore/test/browser_not_collect_when_idle.js | [Test 1B] Again: No state write during idle. - 
[task 2022-03-26T12:32:06.560Z] 12:32:06     INFO - Start to test active mode...
[task 2022-03-26T12:32:06.561Z] 12:32:06     INFO - [Test 2] Waiting for sessionstore-state-write-complete during active
[task 2022-03-26T12:32:06.561Z] 12:32:06     INFO - Buffered messages finished
[task 2022-03-26T12:32:06.562Z] 12:32:06     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_not_collect_when_idle.js | A promise chain failed to handle a rejection: currentScope.__tasks is null - stack: _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1052:13
[task 2022-03-26T12:32:06.562Z] 12:32:06     INFO - Rejection date: Sat Mar 26 2022 12:32:00 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-03-26T12:32:06.563Z] 12:32:06     INFO - Stack trace:
[task 2022-03-26T12:32:06.563Z] 12:32:06     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-03-26T12:32:06.564Z] 12:32:06     INFO - chrome://mochikit/content/browser-test.js:handleTask:1017
[task 2022-03-26T12:32:06.565Z] 12:32:06     INFO - Leaving test bound testIntervalChanges
[task 2022-03-26T12:32:06.577Z] 12:32:06     INFO - GECKO(3430) | MEMORY STAT | vsize 20983771MB | residentFast 1708MB
[task 2022-03-26T12:32:06.578Z] 12:32:06     INFO - TEST-OK | browser/components/sessionstore/test/browser_not_collect_when_idle.js | took 6418ms ```