Bug: Intermittent browser/components/tests/browser/browser_default_webprotocol_handler_mailto.js | single tracking bug
Status: NEW
Priority: P5
Created: 2024-06-19 14:30:41+00:00
Resolved: 2025-03-03 07:05:07+00:00

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

---
```
[task 2024-06-19T13:36:20.714Z] 13:36:20     INFO - TEST-PASS | browser/components/tests/browser/browser_default_webprotocol_handler_mailto.js | The prompt is shown when an executable is configured as handler. - null != [object HTMLElement] - 
[task 2024-06-19T13:36:20.714Z] 13:36:20     INFO - Leaving test bound promptShownForLocalHandler
[task 2024-06-19T13:36:20.715Z] 13:36:20     INFO - Entering test bound check_no_button
[task 2024-06-19T13:36:20.715Z] 13:36:20     INFO - Buffered messages logged at 13:36:20
[task 2024-06-19T13:36:20.717Z] 13:36:20     INFO - Console message: [JavaScript Warning: "[fluent-dom] While translating an element with fluent ID "protocolhandler-mailto-os-handler-yes-button" a child element of type "hbox" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type." {file: "chrome://browser/content/browser.xhtml" line: 0}]
[task 2024-06-19T13:36:20.718Z] 13:36:20     INFO - Console message: [JavaScript Warning: "[fluent-dom] While translating an element with fluent ID "protocolhandler-mailto-os-handler-no-button" a child element of type "hbox" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type." {file: "chrome://browser/content/browser.xhtml" line: 0}]
[task 2024-06-19T13:36:20.718Z] 13:36:20     INFO - Buffered messages finished
[task 2024-06-19T13:36:20.720Z] 13:36:20     INFO - TEST-UNEXPECTED-FAIL | browser/components/tests/browser/browser_default_webprotocol_handler_mailto.js | The prompt is shown with dualPrompt.onLocationChange toggled on. - null != null - 
[task 2024-06-19T13:36:20.720Z] 13:36:20     INFO - Stack trace:
[task 2024-06-19T13:36:20.721Z] 13:36:20     INFO - chrome://mochitests/content/browser/browser/components/tests/browser/browser_default_webprotocol_handler_mailto.js:check_no_button/<:213
[task 2024-06-19T13:36:20.721Z] 13:36:20     INFO - resource://testing-common/BrowserTestUtils.sys.mjs:withNewTab:146
[task 2024-06-19T13:36:20.721Z] 13:36:20     INFO - chrome://mochitests/content/browser/browser/components/tests/browser/browser_default_webprotocol_handler_mailto.js:check_no_button:212
[task 2024-06-19T13:36:20.721Z] 13:36:20     INFO - chrome://mochikit/content/browser-test.js:handleTask:1145
[task 2024-06-19T13:36:20.721Z] 13:36:20     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1217
[task 2024-06-19T13:36:20.722Z] 13:36:20     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1358
[task 2024-06-19T13:36:20.723Z] 13:36:20     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1134
[task 2024-06-19T13:36:20.723Z] 13:36:20     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-06-19T13:36:20.723Z] 13:36:20     INFO - GECKO(6664) | console.debug: WebProtocolHandlerRegistrar.sys.mjs:
[task 2024-06-19T13:36:20.723Z] 13:36:20     INFO - GECKO(6664) |   no such setting: 'dismissed'
[task 2024-06-19T13:36:20.723Z] 13:36:20     INFO - GECKO(6664) | [Child 4416: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 1c2a1ede400 == 1 [pid = 4416] [id = 0]
[task 2024-06-19T13:36:20.724Z] 13:36:20     INFO - GECKO(6664) | [Child 4416: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (1c2a752f020) [pid = 4416] [serial = 1] [outer = 0]
[task 2024-06-19T13:36:20.725Z] 13:36:20     INFO - GECKO(6664) | [Child 4416: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (1c2a1ee0c00) [pid = 4416] [serial = 2] [outer = 1c2a752f020]
[task 2024-06-19T13:36:20.727Z] 13:36:20     INFO - GECKO(6664) | console.debug: WebProtocolHandlerRegistrar.sys.mjs:
[task 2024-06-19T13:36:20.727Z] 13:36:20     INFO - GECKO(6664) |   no such setting: 'xclicked'
[task 2024-06-19T13:36:20.728Z] 13:36:20     INFO - GECKO(6664) | console.debug: WebProtocolHandlerRegistrar.sys.mjs:
[task 2024-06-19T13:36:20.728Z] 13:36:20     INFO - GECKO(6664) |   Problem in observer: TypeError: can't access property "getNotificationBox", browser.getTabBrowser() is null
[task 2024-06-19T13:36:20.728Z] 13:36:20     INFO - GECKO(6664) | [Parent 4232: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 30 (16297aeb200) [pid = 4232] [serial = 1] [outer = 0] [url = chrome://gfxsanity/content/sanityparent.html]
[task 2024-06-19T13:36:20.728Z] 13:36:20     INFO - GECKO(6664) | [Parent 4232: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 29 (1629ecc27a0) [pid = 4232] [serial = 18] [outer = 0] [url = about:blank]
[task 2024-06-19T13:36:20.729Z] 13:36:20     INFO - GECKO(6664) | [Parent 4232: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 28 (162a24f6f20) [pid = 4232] [serial = 20] [outer = 0] [url = chrome://browser/content/spotlight.html]
[task 2024-06-19T13:36:20.733Z] 13:36:20     INFO - GECKO(6664) | [Parent 4232: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 27 (162a6c6b020) [pid = 4232] [serial = 22] [outer = 0] [url = about:blank]
[task 2024-06-19T13:36:20.733Z] 13:36:20     INFO - GECKO(6664) | [Child 7536: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 289407ce000 == 0 [pid = 7536] [id = 0] [url = https://example.com/]
[task 2024-06-19T13:36:20.733Z] 13:36:20     INFO - GECKO(6664) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to C:\Users\task_171880254239868\AppData\Local\Temp\tmpmlzfez4j.mozrunner\runtests_leaks_tab_pid3100.log
[task 2024-06-19T13:36:20.733Z] 13:36:20     INFO - GECKO(6664) | [Parent 4232, Main Thread] WARNING: BounceTrackingState::OnDocumentStartRequest failed.: 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/netwerk/ipc/DocumentLoadListener.cpp:2608
[task 2024-06-19T13:36:20.733Z] 13:36:20     INFO - GECKO(6664) | [Child 4416: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (1c2a1ee3c00) [pid = 4416] [serial = 3] [outer = 1c2a752f020]
[task 2024-06-19T13:36:20.733Z] 13:36:20     INFO - GECKO(6664) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to C:\Users\task_171880254239868\AppData\Local\Temp\tmpmlzfez4j.mozrunner\runtests_leaks_tab_pid7624.log
[task 2024-06-19T13:36:20.778Z] 13:36:20     INFO - GECKO(6664) | [Child 7536: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (289407d3c00) [pid = 7536] [serial = 3] [outer = 0] [url = https://example.com/]
[task 2024-06-19T13:36:20.779Z] 13:36:20     INFO - GECKO(6664) | [Child 7536: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (289407d0c00) [pid = 7536] [serial = 2] [outer = 0] [url = about:blank]
[task 2024-06-19T13:36:20.782Z] 13:36:20     INFO - GECKO(6664) | [Child 7536: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (2893bd9f020) [pid = 7536] [serial = 1] [outer = 0] [url = https://example.com/]
[task 2024-06-19T13:36:20.783Z] 13:36:20     INFO - GECKO(6664) | console.debug: WebProtocolHandlerRegistrar.sys.mjs:
[task 2024-06-19T13:36:20.784Z] 13:36:20     INFO - GECKO(6664) |   no such setting: 'dismissed'
[task 2024-06-19T13:36:20.788Z] 13:36:20     INFO - GECKO(6664) | console.debug: WebProtocolHandlerRegistrar.sys.mjs:
[task 2024-06-19T13:36:20.789Z] 13:36:20     INFO - GECKO(6664) |   no such setting: 'xclicked'
[task 2024-06-19T13:36:20.835Z] 13:36:20     INFO - GECKO(6664) | [fluent-dom] While translating an element with fluent ID "protocolhandler-mailto-os-handler-yes-button" a child element of type "hbox" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type.
[task 2024-06-19T13:36:20.835Z] 13:36:20     INFO - GECKO(6664) | [fluent-dom] While translating an element with fluent ID "protocolhandler-mailto-os-handler-no-button" a child element of type "hbox" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type.
[task 2024-06-19T13:36:20.865Z] 13:36:20     INFO - Console message: [JavaScript Warning: "[fluent-dom] While translating an element with fluent ID "protocolhandler-mailto-os-handler-yes-button" a child element of type "hbox" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type." {file: "chrome://browser/content/browser.xhtml" line: 0}]
[task 2024-06-19T13:36:20.867Z] 13:36:20     INFO - Console message: [JavaScript Warning: "[fluent-dom] While translating an element with fluent ID "protocolhandler-mailto-os-handler-no-button" a child element of type "hbox" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type." {file: "chrome://browser/content/browser.xhtml" line: 0}]
[task 2024-06-19T13:36:20.869Z] 13:36:20     INFO - TEST-PASS | browser/components/tests/browser/browser_default_webprotocol_handler_mailto.js | is the no-button there? - null != "[object XULElement]" - 
[task 2024-06-19T13:36:20.876Z] 13:36:20     INFO - TEST-PASS | browser/components/tests/browser/browser_default_webprotocol_handler_mailto.js | prompt hidden after button_no clicked. - null == null - 
[task 2024-06-19T13:36:20.925Z] 13:36:20     INFO - GECKO(6664) | [Child 4432: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 19370a11800 == 4 [pid = 4432] [id = 3] [url = about:blank]
[task 2024-06-19T13:36:20.926Z] 13:36:20     INFO - GECKO(6664) | [Child 4432: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 19370a0f800 == 3 [pid = 4432] [id = 2] [url = about:blank]
[task 2024-06-19T13:36:20.926Z] 13:36:20     INFO - GECKO(6664) | [Child 4432: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 19370a0a000 == 2 [pid = 4432] [id = 0] [url = about:blank]
[task 2024-06-19T13:36:20.927Z] 13:36:20     INFO - GECKO(6664) | [Child 4432: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 19370a0e000 == 1 [pid = 4432] [id = 1] [url = about:blank]
[task 2024-06-19T13:36:20.932Z] 13:36:20     INFO - GECKO(6664) | console.debug: WebProtocolHandlerRegistrar.sys.mjs:
[task 2024-06-19T13:36:20.933Z] 13:36:20     INFO - GECKO(6664) |   prompt not shown- a site with setting_name 'dismissed' was last dismissed 0.00 minutes ago and will only be shown again after 15 minutes.
[task 2024-06-19T13:36:20.934Z] 13:36:20     INFO - TEST-PASS | browser/components/tests/browser/browser_default_webprotocol_handler_mailto.js | prompt stays hidden even when called after the no button was clicked. - null == null - 
[task 2024-06-19T13:36:20.971Z] 13:36:20     INFO - GECKO(6664) | console.debug: WebProtocolHandlerRegistrar.sys.mjs:
[task 2024-06-19T13:36:20.972Z] 13:36:20     INFO - GECKO(6664) | [Child 4432: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (19370a53980) [pid = 4432] [serial = 5] [outer = 0] [url = about:blank]
[task 2024-06-19T13:36:20.973Z] 13:36:20     INFO - GECKO(6664) | [Child 4432: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (19370a53020) [pid = 4432] [serial = 1] [outer = 0] [url = about:blank]
[task 2024-06-19T13:36:20.974Z] 13:36:20     INFO - GECKO(6664) |   mailto observer "mailto::onLocationChange" deactivated.
[task 2024-06-19T13:36:20.974Z] 13:36:20     INFO - GECKO(6664) | [Child 4432: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (19370a53d40) [pid = 4432] [serial = 7] [outer = 0] [url = about:blank]
[task 2024-06-19T13:36:20.975Z] 13:36:20     INFO - GECKO(6664) | console.debug: WebProtocolHandlerRegistrar.sys.mjs:
[task 2024-06-19T13:36:20.976Z] 13:36:20     INFO - GECKO(6664) | [Child 4432: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (19370a535c0) [pid = 4432] [serial = 3] [outer = 0] [url = about:blank]
[task 2024-06-19T13:36:20.976Z] 13:36:20     INFO - GECKO(6664) |   mailto observer "mailto::onClearCache" deactivated.
[task 2024-06-19T13:36:20.977Z] 13:36:20     INFO - Leaving test bound check_no_button
[task 2024-06-19T13:36:20.977Z] 13:36:20     INFO - Entering test bound check_x_button
[task 2024-06-19T13:36:21.030Z] 13:36:21     INFO - GECKO(6664) | console.debug: WebProtocolHandlerRegistrar.sys.mjs:
[task 2024-06-19T13:36:21.031Z] 13:36:21     INFO - GECKO(6664) |   Could not add example.com to cache: Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI]
[task 2024-06-19T13:36:21.031Z] 13:36:21     INFO - GECKO(6664) | console.debug: WebProtocolHandlerRegistrar.sys.mjs:
[task 2024-06-19T13:36:21.033Z] 13:36:21     INFO - GECKO(6664) |   mailto observers activated: [mailto::onLocationChange,mailto::onClearCache]
[task 2024-06-19T13:36:21.050Z] 13:36:21     INFO - GECKO(6664) | [Child 6284: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 2377ef0a400 == 1 [pid = 6284] [id = 0]
[task 2024-06-19T13:36:21.051Z] 13:36:21     INFO - GECKO(6664) | [Child 6284: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (23779cb8020) [pid = 6284] [serial = 1] [outer = 0]
[task 2024-06-19T13:36:21.052Z] 13:36:21     INFO - GECKO(6664) | [Child 6284: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (2377ef0d400) [pid = 6284] [serial = 2] [outer = 23779cb8020]
[task 2024-06-19T13:36:21.163Z] 13:36:21     INFO - GECKO(6664) | [Child 4416: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1c2a1ede400 == 0 [pid = 4416] [id = 0] [url = https://example.com/]
[task 2024-06-19T13:36:21.176Z] 13:36:21     INFO - GECKO(6664) | [Parent 4232, Main Thread] WARNING: BounceTrackingState::OnDocumentStartRequest failed.: 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/netwerk/ipc/DocumentLoadListener.cpp:2608
[task 2024-06-19T13:36:21.183Z] 13:36:21     INFO - GECKO(6664) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to C:\Users\task_171880254239868\AppData\Local\Temp\tmpmlzfez4j.mozrunner\runtests_leaks_tab_pid2432.log
[task 2024-06-19T13:36:21.187Z] 13:36:21     INFO - GECKO(6664) | [Child 6284: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (2377ef10800) [pid = 6284] [serial = 3] [outer = 23779cb8020]
[task 2024-06-19T13:36:21.220Z] 13:36:21     INFO - GECKO(6664) | [Child 4416: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (1c2a1ee3c00) [pid = 4416] [serial = 3] [outer = 0] [url = https://example.com/]
[task 2024-06-19T13:36:21.221Z] 13:36:21     INFO - GECKO(6664) | [Child 4416: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (1c2a1ee0c00) [pid = 4416] [serial = 2] [outer = 0] [url = about:blank]
[task 2024-06-19T13:36:21.222Z] 13:36:21     INFO - GECKO(6664) | [Child 4416: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (1c2a752f020) [pid = 4416] [serial = 1] [outer = 0] [url = https://example.com/]
[task 2024-06-19T13:36:21.300Z] 13:36:21     INFO - GECKO(6664) | console.debug: WebProtocolHandlerRegistrar.sys.mjs:
[task 2024-06-19T13:36:21.303Z] 13:36:21     INFO - GECKO(6664) |   no such setting: 'xclicked'
[task 2024-06-19T13:36:21.343Z] 13:36:21     INFO - GECKO(6664) | [fluent-dom] While translating an element with fluent ID "protocolhandler-mailto-os-handler-yes-button" a child element of type "hbox" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type.
[task 2024-06-19T13:36:21.345Z] 13:36:21     INFO - GECKO(6664) | [fluent-dom] While translating an element with fluent ID "protocolhandler-mailto-os-handler-no-button" a child element of type "hbox" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type.
[task 2024-06-19T13:36:21.357Z] 13:36:21     INFO - Console message: [JavaScript Warning: "[fluent-dom] While translating an element with fluent ID "protocolhandler-mailto-os-handler-yes-button" a child element of type "hbox" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type." {file: "chrome://browser/content/browser.xhtml" line: 0}]
[task 2024-06-19T13:36:21.358Z] 13:36:21     INFO - Console message: [JavaScript Warning: "[fluent-dom] While translating an element with fluent ID "protocolhandler-mailto-os-handler-no-button" a child element of type "hbox" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type." {file: "chrome://browser/content/browser.xhtml" line: 0}]
[task 2024-06-19T13:36:21.363Z] 13:36:21     INFO - TEST-PASS | browser/components/tests/browser/browser_default_webprotocol_handler_mailto.js | prompt gets shown again- the timeout for the no_button was set to zero - null != [object HTMLElement] -
```