Bug: Intermittent browser/base/content/test/tabPrompts/browser_promptFocus.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2024-07-01 12:29:23+00:00
Resolved: 2024-07-31 12:02:49+00:00

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

---
```
[task 2024-07-01T11:59:11.328Z] 11:59:11     INFO - TEST-START | browser/base/content/test/tabPrompts/browser_promptFocus.js
[task 2024-07-01T11:59:22.497Z] 11:59:22     INFO - GECKO(2749) | 2024-07-01 11:59:22.497 firefox[2749:41131] Persistent UI failed to open file file:///Users/cltbld/Library/Saved%20Application%20State/org.mozilla.firefox.savedState/window_1.data: No such file or directory (2)
[task 2024-07-01T11:59:59.543Z] 11:59:59     INFO - TEST-INFO | started process screencapture
[task 2024-07-01T11:59:59.676Z] 11:59:59     INFO - TEST-INFO | screencapture: exit 0
[task 2024-07-01T11:59:59.676Z] 11:59:59     INFO - Buffered messages logged at 11:59:11
[task 2024-07-01T11:59:59.676Z] 11:59:59     INFO - Entering test bound test_tabdialogbox_tab_switch_focus
[task 2024-07-01T11:59:59.676Z] 11:59:59     INFO - Buffered messages finished
[task 2024-07-01T11:59:59.676Z] 11:59:59     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/tabPrompts/browser_promptFocus.js | Test timed out - 
[task 2024-07-01T11:59:59.676Z] 11:59:59     INFO - GECKO(2749) | Completed ShutdownLeaks collections in process 2749
[task 2024-07-01T11:59:59.677Z] 11:59:59     INFO - TEST-START | Shutdown
[task 2024-07-01T11:59:59.677Z] 11:59:59     INFO - Browser Chrome Test Summary
[task 2024-07-01T11:59:59.677Z] 11:59:59     INFO - Passed:  151
[task 2024-07-01T11:59:59.677Z] 11:59:59     INFO - Failed:  1
[task 2024-07-01T11:59:59.677Z] 11:59:59     INFO - Todo:    0
[task 2024-07-01T11:59:59.677Z] 11:59:59     INFO - Mode:    e10s
[task 2024-07-01T11:59:59.677Z] 11:59:59     INFO - *** End BrowserChrome Test Results ***
[task 2024-07-01T11:59:59.821Z] 11:59:59     INFO - GECKO(2749) | 1719835199820	Marionette	TRACE	Received observer notification quit-application
[task 2024-07-01T11:59:59.821Z] 11:59:59     INFO - GECKO(2749) | 1719835199820	Marionette	INFO	Stopped listening on port 2828
[task 2024-07-01T11:59:59.821Z] 11:59:59     INFO - GECKO(2749) | 1719835199821	Marionette	DEBUG	Marionette stopped listening
[task 2024-07-01T11:59:59.837Z] 11:59:59     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-07-01T11:59:59.838Z] 11:59:59     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/tabPrompts/browser_promptFocus.js | Uncaught exception received from previously timed out test bound test_tabdialogbox_tab_switch_focus - at resource://testing-common/BrowserTestUtils.sys.mjs:538 - Error: The window unloaded while we were waiting for the browser to load - this should never happen.
[task 2024-07-01T11:59:59.838Z] 11:59:59     INFO - Stack trace:
[task 2024-07-01T11:59:59.838Z] 11:59:59     INFO - listener@resource://testing-common/BrowserTestUtils.sys.mjs:538:15
[task 2024-07-01T11:59:59.838Z] 11:59:59     INFO - EventListener.handleEvent*browserLoaded/<@resource://testing-common/BrowserTestUtils.sys.mjs:553:27
[task 2024-07-01T11:59:59.838Z] 11:59:59     INFO - browserLoaded@resource://testing-common/BrowserTestUtils.sys.mjs:503:12
[task 2024-07-01T11:59:59.838Z] 11:59:59     INFO - openNewForegroundTab@resource://testing-common/BrowserTestUtils.sys.mjs:260:40
[task 2024-07-01T11:59:59.838Z] 11:59:59     INFO - test_tabdialogbox_tab_switch_focus@chrome://mochitests/content/browser/browser/base/content/test/tabPrompts/browser_promptFocus.js:21:24
[task 2024-07-01T11:59:59.838Z] 11:59:59     INFO - handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-07-01T11:59:59.838Z] 11:59:59     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-07-01T11:59:59.838Z] 11:59:59     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-07-01T11:59:59.838Z] 11:59:59     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1128:14
[task 2024-07-01T11:59:59.838Z] 11:59:59     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-07-01T11:59:59.838Z] 11:59:59     INFO - Entering test bound test_tabdialogbox_prompt_queue_focus
[task 2024-07-01T11:59:59.933Z] 11:59:59     INFO - TEST-INFO | Main app process: exit 0
[task 2024-07-01T11:59:59.933Z] 11:59:59     INFO - runtests.py | Application ran for: 0:01:07.652683
[task 2024-07-01T11:59:59.933Z] 11:59:59     INFO - zombiecheck | Reading PID log: /var/folders/k6/7y3xfnh57hs4n6sl83njzrf0000014/T/tmpi12jhzrmpidlog
[task 2024-07-01T11:59:59.933Z] 11:59:59     INFO - ==> process 2749 launched child process 2750
<...>
[task 2024-07-01T11:59:59.943Z] 11:59:59     INFO - zombiecheck | Checking for orphan process with PID: 2782
[task 2024-07-01T11:59:59.943Z] 11:59:59     INFO - zombiecheck | Checking for orphan process with PID: 2783
[task 2024-07-01T11:59:59.943Z] 11:59:59     INFO - Stopping web server
[task 2024-07-01T11:59:59.943Z] 11:59:59     INFO - Server shut down.
[task 2024-07-01T11:59:59.944Z] 11:59:59     INFO - Web server killed.
[task 2024-07-01T11:59:59.944Z] 11:59:59     INFO - Stopping web socket server
[task 2024-07-01T11:59:59.944Z] 11:59:59     INFO - Stopping ssltunnel
[task 2024-07-01T11:59:59.944Z] 11:59:59  WARNING - leakcheck | refcount logging is off, so leaks can't be detected!
[task 2024-07-01T11:59:59.944Z] 11:59:59     INFO - runtests.py | Running tests: end.
[task 2024-07-01T11:59:59.945Z] 11:59:59     INFO - Buffered messages finished
[task 2024-07-01T11:59:59.945Z] 11:59:59     INFO - Running manifest: browser/components/asrouter/tests/browser/browser.toml
[task 2024-07-01T12:00:00.023Z] 12:00:00     INFO - PID 2994 | pk12util: PKCS12 IMPORT SUCCESSFUL
[task 2024-07-01T12:00:00.023Z] 12:00:00     INFO - 
[task 2024-07-01T12:00:00.043Z] 12:00:00     INFO - MochitestServer : launching ['/opt/worker/tasks/task_171983328274542/build/tests/bin/xpcshell', '-g', '/opt/worker/tasks/task_171983328274542/build/application/Firefox.app/Contents/Resources', '-e', "const _PROFILE_PATH = '/var/folders/k6/7y3xfnh57hs4n6sl83njzrf0000014/T/tmp1qc8ov83.mozrunner'; const _SERVER_PORT = '8888'; const _SERVER_ADDR = '127.0.0.1'; const _TEST_PREFIX = undefined; const _DISPLAY_RESULTS = false; const _HTTPD_PATH = '/opt/worker/tasks/task_171983328274542/build/tests/bin/components';", '-f', '/opt/worker/tasks/task_171983328274542/build/tests/mochitest/server.js']
[task 2024-07-01T12:00:00.043Z] 12:00:00     INFO - runtests.py | Server pid: 3024
[task 2024-07-01T12:00:00.044Z] 12:00:00     INFO - runtests.py | Websocket server pid: 3025
[task 2024-07-01T12:00:00.046Z] 12:00:00     INFO - runtests.py | SSL tunnel pid: 3026
[task 2024-07-01T12:00:00.175Z] 12:00:00     INFO - use http3 server: 0
[task 2024-07-01T12:00:00.175Z] 12:00:00     INFO - runtests.py | Running with scheme: http
[task 2024-07-01T12:00:00.175Z] 12:00:00     INFO - runtests.py | Running with e10s: True
[task 2024-07-01T12:00:00.176Z] 12:00:00     INFO - runtests.py | Running with fission: True
[task 2024-07-01T12:00:00.176Z] 12:00:00     INFO - runtests.py | Running with cross-origin iframes: False
[task 2024-07-01T12:00:00.176Z] 12:00:00     INFO - runtests.py | Running with serviceworker_e10s: True
[task 2024-07-01T12:00:00.176Z] 12:00:00     INFO - runtests.py | Running with socketprocess_e10s: False
[task 2024-07-01T12:00:00.176Z] 12:00:00     INFO - runtests.py | Running tests: start.
[task 2024-07-01T12:00:00.176Z] 12:00:00     INFO - 
[task 2024-07-01T12:00:00.179Z] 12:00:00     INFO - Application command: /opt/worker/tasks/task_171983328274542/build/application/Firefox.app/Contents/MacOS/firefox -marionette -foreground -profile /var/folders/k6/7y3xfnh57hs4n6sl83njzrf0000014/T/tmp1qc8ov83.mozrunner
[task 2024-07-01T12:00:00.181Z] 12:00:00     INFO - runtests.py | Application pid: 3105
[task 2024-07-01T12:00:00.181Z] 12:00:00     INFO - TEST-INFO | started process GECKO(3105)
[task 2024-07-01T12:00:00.356Z] 12:00:00     INFO - GECKO(3105) | 1719835200356	Marionette	INFO	Marionette enabled
[task 2024-07-01T12:00:00.453Z] 12:00:00     INFO - GECKO(3105) | 1719835200452	Marionette	TRACE	Received observer notification final-ui-startup
[task 2024-07-01T12:00:00.487Z] 12:00:00     INFO - GECKO(3105) | 1719835200487	Marionette	INFO	Listening on port 2828
[task 2024-07-01T12:00:00.488Z] 12:00:00     INFO - GECKO(3105) | 1719835200487	Marionette	DEBUG	Marionette is listening
[task 2024-07-01T12:00:00.491Z] 12:00:00     INFO - GECKO(3105) | 1719835200491	Marionette	DEBUG	Accepted connection 0 from 127.0.0.1:49426
[task 2024-07-01T12:00:00.622Z] 12:00:00     INFO - GECKO(3105) | 1719835200622	Marionette	DEBUG	Closed connection 0
[task 2024-07-01T12:00:00.622Z] 12:00:00     INFO - GECKO(3105) | 1719835200622	Marionette	DEBUG	Accepted connection 1 from 127.0.0.1:49427
[task 2024-07-01T12:00:00.680Z] 12:00:00     INFO - GECKO(3105) | 1719835200680	Marionette	DEBUG	1 -> [0,1,"WebDriver:NewSession",{"strictFileInteractability":true}]
[task 2024-07-01T12:00:00.681Z] 12:00:00     INFO - GECKO(3105) | 1719835200681	Marionette	DEBUG	Waiting for initial application window
[task 2024-07-01T12:00:00.946Z] 12:00:00     INFO - GECKO(3105) | UNSUPPORTED (log once): POSSIBLE ISSUE: unit 1 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable
[task 2024-07-01T12:00:01.274Z] 12:00:01     INFO - GECKO(3105) | [ERROR error_support::handling] suggest-unexpected: Error from Remote Settings: Error parsing URL: relative URL with a cannot-be-a-base base
[task 2024-07-01T12:00:01.275Z] 12:00:01     INFO - GECKO(3105) | console.error: URLBar - QuickSuggest.SuggestBackendRust: "Ingest error: Error from Remote Settings: Error parsing URL: relative URL with a cannot-be-a-base base"
[task 2024-07-01T12:00:01.305Z] 12:00:01     INFO - GECKO(3105) | 1719835201304	Marionette	TRACE	Received observer notification browser-idle-startup-tasks-finished
[task 2024-07-01T12:00:01.307Z] 12:00:01     INFO - GECKO(3105) | 1719835201306	RemoteAgent	TRACE	[10] ProgressListener Start: expectNavigation=false resolveWhenStarted=false unloadTimeout=5000 waitForExplicitStart=false
[task 2024-07-01T12:00:01.307Z] 12:00:01     INFO - GECKO(3105) | 1719835201306	RemoteAgent	TRACE	[10] ProgressListener Setting unload timer (5000ms)
[task 2024-07-01T12:00:01.307Z] 12:00:01     INFO - GECKO(3105) | 1719835201306	RemoteAgent	TRACE	[10] Wait for initial navigation: isInitial=false, isLoadingDocument=false
[task 2024-07-01T12:00:01.307Z] 12:00:01     INFO - GECKO(3105) | 1719835201306	RemoteAgent	TRACE	[10] Document already finished loading: about:blank
[task 2024-07-01T12:00:01.308Z] 12:00:01     INFO - GECKO(3105) | 1719835201306	RemoteAgent	TRACE	[10] ProgressListener Stop: has error=false url=about:blank
[task 2024-07-01T12:00:01.311Z] 12:00:01     INFO - GECKO(3105) | 1719835201310	Marionette	DEBUG	1 <- [1,1,null,{"sessionId":"b3abfc90-abc8-4bf1-8c47-d36c753ee622","capabilities":{"acceptInsecureCerts":false,"browserName":"firefox","browserVersion":"128.0","platformName":"mac","unhandledPromptBehavior":"dismiss and notify","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0","moz:buildID":"20240701092045","moz:headless":false,"moz:platformVersion":"20.3.0","moz:processID":3105,"moz:profile":"/var/folders/k6/7y3xfnh57hs4n6sl83njzrf0000014/T/tmp1qc8ov83.mozrunner","moz:shutdownTimeout":60000,"pageLoadStrategy":"normal","timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"setWindowRect":true,"strictFileInteractability":true,"moz:accessibilityChecks":false,"moz:webdriverClick":true,"moz:windowless":false,"proxy":{}}}]
[task 2024-07-01T12:00:01.317Z] 12:00:01     INFO - GECKO(3105) | 1719835201317	Marionette	DEBUG	1 -> [0,2,"Addon:Install",{"path":"/var/folders/k6/7y3xfnh57hs4n6sl83njzrf0000014/T/tmpmaufr4t1.zip","temporary":false}]
[task 2024-07-01T12:00:01.342Z] 12:00:01     INFO - GECKO(3105) | 1719835201342	Marionette	DEBUG	1 <- [1,2,null,{"value":"special-powers@mozilla.org"}]
[task 2024-07-01T12:00:01.356Z] 12:00:01     INFO - GECKO(3105) | 1719835201355	Marionette	DEBUG	1 -> [0,3,"Addon:Install",{"path":"/var/folders/k6/7y3xfnh57hs4n6sl83njzrf0000014/T/tmp0320eyf4.zip","temporary":false}]
[task 2024-07-01T12:00:01.364Z] 12:00:01     INFO - GECKO(3105) | 1719835201364	Marionette	DEBUG	1 <- [1,3,null,{"value":"mochikit@mozilla.org"}]
[task 2024-07-01T12:00:01.365Z] 12:00:01     INFO - GECKO(3105) | 1719835201364	Marionette	DEBUG	1 -> [0,4,"Marionette:GetContext",{}]
[task 2024-07-01T12:00:01.365Z] 12:00:01     INFO - GECKO(3105) | 1719835201364	Marionette	DEBUG	1 <- [1,4,null,{"value":"content"}]
[task 2024-07-01T12:00:01.365Z] 12:00:01     INFO - GECKO(3105) | 1719835201365	Marionette	DEBUG	1 -> [0,5,"Marionette:SetContext",{"value":"chrome"}]
[task 2024-07-01T12:00:01.365Z] 12:00:01     INFO - GECKO(3105) | 1719835201365	Marionette	DEBUG	1 <- [1,5,null,{"value":null}]
[task 2024-07-01T12:00:01.366Z] 12:00:01     INFO - GECKO(3105) | 1719835201366	Marionette	DEBUG	1 -> [0,6,"WebDriver:ExecuteScript",{"script":"/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distr ... s which flavor and url to load.\nlet ev = new CustomEvent(\"mochitest-load\", { detail: [flavor, url] });\nwin.dispatchEvent(ev);","args":[{"flavor":"browser-chrome","testUrl":"about:blank"}],"newSandbox":true,"sandbox":"default","line":2167,"filename":"tests/mochitest/runtests.py"}]
[task 2024-07-01T12:00:01.368Z] 12:00:01     INFO - GECKO(3105) | 1719835201367	RemoteAgent	TRACE	WebDriverProcessData actor created for PID 3105
[task 2024-07-01T12:00:01.368Z] 12:00:01     INFO - GECKO(3105) | 1719835201368	Marionette	TRACE	[2] MarionetteCommands actor created for window id 4
[task 2024-07-01T12:00:01.378Z] 12:00:01     INFO - GECKO(3105) | 1719835201377	RemoteAgent	TRACE	Received observer notification domwindowopened
[task 2024-07-01T12:00:01.380Z] 12:00:01     INFO - GECKO(3105) | 1719835201379	Marionette	DEBUG	1 <- [1,6,null,{"value":null}]
[task 2024-07-01T12:00:01.381Z] 12:00:01     INFO - GECKO(3105) | 1719835201380	Marionette	DEBUG	1 -> [0,7,"Marionette:SetContext",{"value":"content"}]
[task 2024-07-01T12:00:01.381Z] 12:00:01     INFO - GECKO(3105) | 1719835201380	Marionette	DEBUG	1 <- [1,7,null,{"value":null}]
[task 2024-07-01T12:00:01.384Z] 12:00:01     INFO - GECKO(3105) | 1719835201384	Marionette	DEBUG	1 -> [0,8,"WebDriver:DeleteSession",{}]
[task 2024-07-01T12:00:01.384Z] 12:00:01     INFO - GECKO(3105) | 1719835201384	Marionette	TRACE	[2] MarionetteCommands actor destroyed for window id 4
[task 2024-07-01T12:00:01.385Z] 12:00:01     INFO - GECKO(3105) | 1719835201384	Marionette	DEBUG	1 <- [1,8,null,{"value":null}]
[task 2024-07-01T12:00:01.390Z] 12:00:01     INFO - runtests.py | Waiting for browser...
[task 2024-07-01T12:00:01.391Z] 12:00:01     INFO - GECKO(3105) | 1719835201390	Marionette	DEBUG	Closed connection 1
[task 2024-07-01T12:00:01.458Z] 12:00:01     INFO - *** Start BrowserChrome Test Results ***
[task 2024-07-01T12:00:01.489Z] 12:00:01     INFO - checking window state
[task 2024-07-01T12:00:01.512Z] 12:00:01     INFO - TEST-START | browser/components/asrouter/tests/browser/browser_asrouter_bug1761522.js
```