Bug: Intermittent [tier 2] browser/components/sessionstore/test/browser_focus_after_restore.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-07-12 01:04:10+00:00
Resolved: 2023-08-23 12:01:30+00:00

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

---
```
[task 2023-07-12T00:17:36.540Z] 00:17:36     INFO - TEST-START | browser/components/sessionstore/test/browser_focus_after_restore.js
[task 2023-07-12T00:18:21.563Z] 00:18:21     INFO - TEST-INFO | started process screenshot
[task 2023-07-12T00:18:22.694Z] 00:18:22     INFO - TEST-INFO | screenshot: exit 0
[task 2023-07-12T00:18:22.710Z] 00:18:22     INFO - Buffered messages logged at 00:17:36
[task 2023-07-12T00:18:22.710Z] 00:18:22     INFO - Entering test bound test
[task 2023-07-12T00:18:22.711Z] 00:18:22     INFO - TEST-PASS | browser/components/sessionstore/test/browser_focus_after_restore.js | urlbar is focused before restoring - 
[task 2023-07-12T00:18:22.711Z] 00:18:22     INFO - Buffered messages logged at 00:17:56
[task 2023-07-12T00:18:22.712Z] 00:18:22     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "http://example.org/" line: 0}]
[task 2023-07-12T00:18:22.712Z] 00:18:22     INFO - Buffered messages finished
[task 2023-07-12T00:18:22.713Z] 00:18:22     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_focus_after_restore.js | Test timed out - 
[task 2023-07-12T00:18:25.866Z] 00:18:25     INFO - GECKO(2044) | MEMORY STAT | vsize 2104673MB | vsizeMaxContiguous 66896863MB | residentFast 425MB | heapAllocated 135MB
[task 2023-07-12T00:18:25.881Z] 00:18:25     INFO - TEST-OK | browser/components/sessionstore/test/browser_focus_after_restore.js | took 49335ms
[task 2023-07-12T00:18:25.913Z] 00:18:25     INFO - checking window state
[task 2023-07-12T00:18:25.944Z] 00:18:25     INFO - TEST-START | browser/components/sessionstore/test/browser_forget_async_closings.js
[task 2023-07-12T00:18:45.139Z] 00:18:45     INFO - GECKO(2044) | 1689121125142	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2023-07-12T00:19:10.846Z] 00:19:10     INFO -  console.error: (new TypeError("connection not specified or invalid.", "resource://gre/modules/Sqlite.sys.mjs", 1522))
[task 2023-07-12T00:19:10.860Z] 00:19:10     INFO -  console.error: (new TypeError("can't access property \"executeBeforeShutdown\", db is undefined", "resource://gre/modules/PlacesUtils.sys.mjs", 1467))
[task 2023-07-12T00:19:33.255Z] 00:19:33     INFO - GECKO(2044) | 1689121173260	Marionette	TRACE	Received observer notification browser-delayed-startup-finished
[task 2023-07-12T00:19:36.547Z] 00:19:36     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-07-12T00:19:36.549Z] 00:19:36     INFO - Buffered messages logged at 00:18:25
[task 2023-07-12T00:19:36.549Z] 00:19:36     INFO - Entering test bound test_forget_closed_tab
[task 2023-07-12T00:19:36.550Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | We should have 0 closed tabs being stored. - 
[task 2023-07-12T00:19:36.550Z] 00:19:36     INFO - Buffered messages logged at 00:18:33
[task 2023-07-12T00:19:36.550Z] 00:19:36     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "http://example.com/" line: 0}]
[task 2023-07-12T00:19:36.551Z] 00:19:36     INFO - Buffered messages logged at 00:18:44
[task 2023-07-12T00:19:36.552Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | Should have forgotten the closed tab - 
[task 2023-07-12T00:19:36.552Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | Should not have stored the forgotten closed tab - 
[task 2023-07-12T00:19:36.553Z] 00:19:36     INFO - Leaving test bound test_forget_closed_tab
[task 2023-07-12T00:19:36.553Z] 00:19:36     INFO - Entering test bound test_forget_closed_window
[task 2023-07-12T00:19:36.553Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | We should have 0 closed windows being stored. - 
[task 2023-07-12T00:19:36.554Z] 00:19:36     INFO - Buffered messages logged at 00:18:45
[task 2023-07-12T00:19:36.554Z] 00:19:36     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "http://example.com/" line: 0}]
[task 2023-07-12T00:19:36.555Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | Should have forgotten the closed window - 
[task 2023-07-12T00:19:36.555Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | domwindowclosed should already be handled here - 
[task 2023-07-12T00:19:36.556Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | Should not have stored the closed window - 
[task 2023-07-12T00:19:36.556Z] 00:19:36     INFO - Leaving test bound test_forget_closed_window
[task 2023-07-12T00:19:36.556Z] 00:19:36     INFO - Entering test bound test_forget_purged_tab
[task 2023-07-12T00:19:36.557Z] 00:19:36     INFO - Buffered messages logged at 00:19:11
[task 2023-07-12T00:19:36.557Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | We should have 0 closed tabs being stored. - 
[task 2023-07-12T00:19:36.557Z] 00:19:36     INFO - Buffered messages logged at 00:19:12
[task 2023-07-12T00:19:36.558Z] 00:19:36     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "http://example.com/" line: 0}]
[task 2023-07-12T00:19:36.559Z] 00:19:36     INFO - Buffered messages logged at 00:19:20
[task 2023-07-12T00:19:36.559Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | Should have forgotten the closed tab - 
[task 2023-07-12T00:19:36.560Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | Should not have stored the forgotten closed tab - 
[task 2023-07-12T00:19:36.560Z] 00:19:36     INFO - Leaving test bound test_forget_purged_tab
[task 2023-07-12T00:19:36.560Z] 00:19:36     INFO - Entering test bound test_forget_purged_window
[task 2023-07-12T00:19:36.560Z] 00:19:36     INFO - Buffered messages logged at 00:19:31
[task 2023-07-12T00:19:36.561Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | We should have 0 closed windows being stored. - 
[task 2023-07-12T00:19:36.561Z] 00:19:36     INFO - Buffered messages logged at 00:19:33
[task 2023-07-12T00:19:36.562Z] 00:19:36     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "http://example.com/" line: 0}]
[task 2023-07-12T00:19:36.562Z] 00:19:36     INFO - Buffered messages logged at 00:19:35
[task 2023-07-12T00:19:36.562Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | Should have forgotten the closed window - 
[task 2023-07-12T00:19:36.563Z] 00:19:36     INFO - Buffered messages logged at 00:19:36
[task 2023-07-12T00:19:36.563Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | domwindowclosed should already be handled here - 
[task 2023-07-12T00:19:36.563Z] 00:19:36     INFO - TEST-PASS | browser/components/sessionstore/test/browser_forget_async_closings.js | Should not have stored the closed window - 
[task 2023-07-12T00:19:36.564Z] 00:19:36     INFO - Leaving test bound test_forget_purged_window
[task 2023-07-12T00:19:36.564Z] 00:19:36     INFO - Buffered messages finished
[task 2023-07-12T00:19:36.564Z] 00:19:36     INFO - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_forget_async_closings.js | This test exceeded the timeout threshold. It should be rewritten or split up. If that's not possible, use requestLongerTimeout(N), but only as a last resort. - 
[task 2023-07-12T00:19:36.571Z] 00:19:36     INFO - GECKO(2044) | MEMORY STAT | vsize 2104681MB | vsizeMaxContiguous 66896863MB | residentFast 433MB | heapAllocated 144MB
[task 2023-07-12T00:19:36.572Z] 00:19:36     INFO - TEST-OK | browser/components/sessionstore/test/browser_forget_async_closings.js | took 70618ms
[task 2023-07-12T00:19:36.597Z] 00:19:36     INFO - checking window state
[task 2023-07-12T00:19:36.612Z] 00:19:36     INFO - TEST-START | browser/components/sessionstore/test/browser_formdata.js
```