Bug: Intermittent browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | single tracking bug
Status: NEW
Priority: P2
Created: 2024-01-22 17:54:05+00:00
Resolved: 2025-02-24 07:12:04+00:00

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

---
```
[task 2024-01-22T16:01:20.670Z] 16:01:20     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | Prepared 2 tabs as expected - 2 == 2 - 
[task 2024-01-22T16:01:20.671Z] 16:01:20     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | The selectedTab is the last of the URLs given as expected - "data:,Tab4" == "data:,Tab4" - 
[task 2024-01-22T16:01:20.673Z] 16:01:20     INFO - Switching to fxview tab in win2
[task 2024-01-22T16:01:20.674Z] 16:01:20     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | Firefox View tab exists - [object XULElement] == true - 
[task 2024-01-22T16:01:20.675Z] 16:01:20     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | Firefox View tab is hidden - true == true - 
[task 2024-01-22T16:01:20.675Z] 16:01:20     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | Firefox View tab is not in the list of visible tabs - -1 == -1 - 
[task 2024-01-22T16:01:20.676Z] 16:01:20     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | Firefox View tab is selected - true == true - 
[task 2024-01-22T16:01:20.676Z] 16:01:20     INFO - openFirefoxViewTab, waiting for complete readyState, visible and firefoxview-entered
[task 2024-01-22T16:01:20.677Z] 16:01:20     INFO - Buffered messages logged at 16:01:13
[task 2024-01-22T16:01:20.677Z] 16:01:20     INFO - Console message: 1705939273354	FirefoxView.TabsSetup	DEBUG	updateViewVisibility for instance: 3309632, visibility: closed
[task 2024-01-22T16:01:20.678Z] 16:01:20     INFO - Console message: 1705939273354	FirefoxView.TabsSetup	DEBUG	Resetting timestamp and tabs pending flags as there are no visible views
[task 2024-01-22T16:01:20.678Z] 16:01:20     INFO - openFirefoxViewTab, ready resolved
[task 2024-01-22T16:01:20.679Z] 16:01:20     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | Found the tab list element - [object HTMLElement] == true - 
[task 2024-01-22T16:01:20.679Z] 16:01:20     INFO - Buffered messages finished
[task 2024-01-22T16:01:20.680Z] 16:01:20     INFO - TEST-UNEXPECTED-FAIL | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | Uncaught exception in test bound test_multiple_window_tabs - undefined - timed out after 50 tries.
[task 2024-01-22T16:01:20.681Z] 16:01:20     INFO - Leaving test bound test_multiple_window_tabs
[task 2024-01-22T16:01:20.681Z] 16:01:20     INFO - Entering test bound test_windows_activation
[task 2024-01-22T16:01:20.682Z] 16:01:20     INFO - Loading data:,Tab1 into new tab
[task 2024-01-22T16:01:20.682Z] 16:01:20     INFO - GECKO(7609) | [Child 8148: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fe5aca39400 == 1 [pid = 8148] [id = 6]
[task 2024-01-22T16:01:20.683Z] 16:01:20     INFO - GECKO(7609) | [Child 8148: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7fe5aca61020) [pid = 8148] [serial = 19] [outer = 0]
[task 2024-01-22T16:01:20.683Z] 16:01:20     INFO - GECKO(7609) | [Child 8148: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7fe5aca39800) [pid = 8148] [serial = 20] [outer = 7fe5aca61020]
[task 2024-01-22T16:01:20.718Z] 16:01:20     INFO - GECKO(7609) | [Child 8148: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (7fe5aca3b000) [pid = 8148] [serial = 21] [outer = 7fe5aca61020]
[task 2024-01-22T16:01:20.928Z] 16:01:20     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-01-22T16:01:20.931Z] 16:01:20     INFO - TEST-UNEXPECTED-FAIL | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | Prepared 1 tabs as expected - 3 == 1 - {"filename":"chrome://mochitests/content/browser/browser/components/firefoxview/tests/browser/browser_opentabs_recency.js","name":"prepareOpenTabs","sourceId":2327,"lineNumber":101,"columnNumber":10,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochitests/content/browser/browser/components/firefoxview/tests/browser/browser_opentabs_recency.js","name":"test_windows_activation","sourceId":2327,"lineNumber":263,"columnNumber":9,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":553,"lineNumber":1138,"columnNumber":26,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":553,"lineNumber":1210,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":553,"lineNumber":1352,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":553,"lineNumber":1127,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":578,"lineNumber":1058,"columnNumber":13,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"nextTest/<@chrome://mochikit/content/browser-test.js:1127:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"async*Tester_execTest@chrome://mochikit/content/browser-test.js:1352:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1127:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1210:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1352:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1127:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"handleTask@chrome://mochikit/content/browser-test.js:1138:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1210:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1352:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1127:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"async*test_windows_activation@chrome://mochitests/content/browser/browser/components/firefoxview/tests/browser/browser_opentabs_recency.js:263:9\nhandleTask@chrome://mochikit/content/browser-test.js:1138:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1210:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1352:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1127:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"prepareOpenTabs@chrome://mochitests/content/browser/browser/components/firefoxview/tests/browser/browser_opentabs_recency.js:101:10\nasync*test_windows_activation@chrome://mochitests/content/browser/browser/components/firefoxview/tests/browser/browser_opentabs_recency.js:263:9\nhandleTask@chrome://mochikit/content/browser-test.js:1138:26\n_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1210:18\nasync*Tester_execTest@chrome://mochikit/content/browser-test.js:1352:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1127:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}}
[task 2024-01-22T16:01:20.931Z] 16:01:20     INFO - Stack trace:
[task 2024-01-22T16:01:20.933Z] 16:01:20     INFO - chrome://mochitests/content/browser/browser/components/firefoxview/tests/browser/browser_opentabs_recency.js:prepareOpenTabs:101
[task 2024-01-22T16:01:20.933Z] 16:01:20     INFO - chrome://mochitests/content/browser/browser/components/firefoxview/tests/browser/browser_opentabs_recency.js:test_windows_activation:263
[task 2024-01-22T16:01:20.934Z] 16:01:20     INFO - chrome://mochikit/content/browser-test.js:handleTask:1138
[task 2024-01-22T16:01:20.935Z] 16:01:20     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1210
[task 2024-01-22T16:01:20.935Z] 16:01:20     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1352
[task 2024-01-22T16:01:20.936Z] 16:01:20     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1127
[task 2024-01-22T16:01:20.937Z] 16:01:20     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-01-22T16:01:20.938Z] 16:01:20     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | The selectedTab is the last of the URLs given as expected - "data:,Tab1" == "data:,Tab1" - 
[task 2024-01-22T16:01:20.940Z] 16:01:20     INFO - switch to firefox-view and leave it selected
[task 2024-01-22T16:01:20.942Z] 16:01:20     INFO - GECKO(7609) | must wait for focus
[task 2024-01-22T16:01:20.989Z] 16:01:20     INFO - GECKO(7609) | [Child 7704, Main Thread] WARNING: DispatchEvent called on non-current inner window, dropping. Please check the window in the caller instead.: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowInner.cpp:4205
[task 2024-01-22T16:01:21.215Z] 16:01:21     INFO - GECKO(7609) | [Parent 7609: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f80a9392800 == 9 [pid = 7609] [id = 115]
[task 2024-01-22T16:01:21.217Z] 16:01:21     INFO - GECKO(7609) | [Parent 7609: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 19 (7f80a9193980) [pid = 7609] [serial = 298] [outer = 0]
[task 2024-01-22T16:01:21.219Z] 16:01:21     INFO - GECKO(7609) | [Parent 7609: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 20 (7f80a9394800) [pid = 7609] [serial = 299] [outer = 7f80a9193980]
[task 2024-01-22T16:01:21.332Z] 16:01:21     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | Firefox View tab exists - [object XULElement] == true - 
[task 2024-01-22T16:01:21.334Z] 16:01:21     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | Firefox View tab is hidden - true == true - 
[task 2024-01-22T16:01:21.337Z] 16:01:21     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | Firefox View tab is not in the list of visible tabs - -1 == -1 - 
[task 2024-01-22T16:01:21.341Z] 16:01:21     INFO - TEST-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_recency.js | Firefox View tab is selected - true == true - 
```