Bug: Intermittent browser/components/translations/tests/browser/browser_translations_select_context_menu_with_text_selected.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2024-12-23 16:00:18+00:00
Resolved: 2025-01-20 12:05:25+00:00

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

---
```
[task 2024-12-23T15:35:50.159Z] 15:35:50     INFO - TEST-START | browser/components/translations/tests/browser/browser_translations_select_context_menu_with_text_selected.js
[task 2024-12-23T15:35:50.262Z] 15:35:50     INFO - GECKO(6480) | console.log: Translations: "Mocking RemoteSettings for the translations engine."
[task 2024-12-23T15:35:50.273Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 1b1b049cc00 == 7 [pid = 5376] [id = 100]
[task 2024-12-23T15:35:50.273Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 17 (1b1a6885400) [pid = 5376] [serial = 267] [outer = 0]
[task 2024-12-23T15:35:50.275Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 18 (1b1b049d400) [pid = 5376] [serial = 268] [outer = 1b1a6885400]
[task 2024-12-23T15:35:50.329Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 19 (1b1b049f000) [pid = 5376] [serial = 269] [outer = 1b1a6885400]
[task 2024-12-23T15:35:50.548Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1b1a8edb800 == 6 [pid = 5376] [id = 98] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-12-23T15:35:50.549Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1b1a8edd000 == 5 [pid = 5376] [id = 97] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-12-23T15:35:50.550Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1b1a8edec00 == 4 [pid = 5376] [id = 96] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-12-23T15:35:50.551Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1b1a8edd800 == 3 [pid = 5376] [id = 94] [url = about:blank]
[task 2024-12-23T15:35:50.551Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1b1a8ed5800 == 2 [pid = 5376] [id = 95] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-12-23T15:35:50.552Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1b1b049a800 == 1 [pid = 5376] [id = 99] [url = about:blank]
[task 2024-12-23T15:35:50.599Z] 15:35:50     INFO - GECKO(6480) | [Child 4912: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 179c90ccc00 == 1 [pid = 4912] [id = 0]
[task 2024-12-23T15:35:50.601Z] 15:35:50     INFO - GECKO(6480) | [Child 4912: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (179c437e400) [pid = 4912] [serial = 1] [outer = 0]
[task 2024-12-23T15:35:50.602Z] 15:35:50     INFO - GECKO(6480) | [Child 4912: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (179c90cf800) [pid = 4912] [serial = 2] [outer = 179c437e400]
[task 2024-12-23T15:35:50.631Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 18 (1b1a6881c00) [pid = 5376] [serial = 253] [outer = 0] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-12-23T15:35:50.632Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 17 (1b1a6884c00) [pid = 5376] [serial = 265] [outer = 0] [url = about:blank]
[task 2024-12-23T15:35:50.633Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 16 (1b1a6884200) [pid = 5376] [serial = 259] [outer = 0] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-12-23T15:35:50.634Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 15 (1b1a687f400) [pid = 5376] [serial = 262] [outer = 0] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-12-23T15:35:50.635Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 14 (1b1a6880600) [pid = 5376] [serial = 256] [outer = 0] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-12-23T15:35:50.636Z] 15:35:50     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (1b1a6883000) [pid = 5376] [serial = 251] [outer = 0] [url = about:blank]
[task 2024-12-23T15:35:50.695Z] 15:35:50     INFO - GECKO(6480) | [Child 4912: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (179c90d3000) [pid = 4912] [serial = 3] [outer = 179c437e400]
[task 2024-12-23T15:35:50.704Z] 15:35:50     INFO - GECKO(6480) | [Child 4912, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, NS_ERROR_INVALID_ARG) failed with result 0x80520012 (NS_ERROR_FILE_NOT_FOUND): file /builds/worker/checkouts/gecko/intl/l10n/L10nRegistry.cpp:385
[task 2024-12-23T15:35:50.790Z] 15:35:50     INFO - GECKO(6480) | console.log: Translations: "Getting remote language models."
[task 2024-12-23T15:35:50.801Z] 15:35:50     INFO - GECKO(6480) | console.log: Translations: "Remote language models loaded in 0.012 seconds." ({})
[task 2024-12-23T15:35:50.803Z] 15:35:50     INFO - GECKO(6480) | console.log: Translations: "maybeOfferTranslations - Do not offer translations in automation." "https://example.com/browser/toolkit/components/translations/tests/browser/translations-tester-select.html"
[task 2024-12-23T15:35:51.648Z] 15:35:51     INFO - GECKO(6480) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to C:\Users\task_173496746631149\AppData\Local\Temp\tmp2pm7j0dw.mozrunner\runtests_leaks_tab_pid1216.log
[task 2024-12-23T15:35:51.704Z] 15:35:51     INFO - GECKO(6480) | Couldn't convert chrome URL: chrome://branding/locale/brand.properties
[task 2024-12-23T15:35:51.705Z] 15:35:51     INFO - GECKO(6480) | [Child 1216, Main Thread] WARNING: Could not get the program name for a cubeb stream.: 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:478
[task 2024-12-23T15:35:53.908Z] 15:35:53     INFO - GECKO(6480) | [Child 3892: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (288ee0cb000) [pid = 3892] [serial = 267] [outer = 0] [url = about:blank]
[task 2024-12-23T15:35:53.909Z] 15:35:53     INFO - GECKO(6480) | [Child 3892: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (288ee0cd800) [pid = 3892] [serial = 270] [outer = 0] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-12-23T15:35:53.910Z] 15:35:53     INFO - GECKO(6480) | [Child 3892: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (288ee0cb800) [pid = 3892] [serial = 269] [outer = 0] [url = about:blank]
[task 2024-12-23T15:35:54.736Z] 15:35:54     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (1b1b0496800) [pid = 5376] [serial = 252] [outer = 0] [url = about:blank]
[task 2024-12-23T15:35:54.737Z] 15:35:54     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (1b1b049b800) [pid = 5376] [serial = 261] [outer = 0] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-12-23T15:35:54.738Z] 15:35:54     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (1b1b0497800) [pid = 5376] [serial = 260] [outer = 0] [url = about:blank]
[task 2024-12-23T15:35:54.738Z] 15:35:54     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (1b1b0499c00) [pid = 5376] [serial = 258] [outer = 0] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-12-23T15:35:54.739Z] 15:35:54     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (1b1b0497000) [pid = 5376] [serial = 257] [outer = 0] [url = about:blank]
[task 2024-12-23T15:35:54.740Z] 15:35:54     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (1b1b049c000) [pid = 5376] [serial = 266] [outer = 0] [url = about:blank]
[task 2024-12-23T15:35:54.740Z] 15:35:54     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (1b1b049d400) [pid = 5376] [serial = 268] [outer = 0] [url = about:blank]
[task 2024-12-23T15:35:54.741Z] 15:35:54     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (1b1a8ede800) [pid = 5376] [serial = 263] [outer = 0] [url = about:blank]
[task 2024-12-23T15:35:54.742Z] 15:35:54     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (1b1b049b000) [pid = 5376] [serial = 264] [outer = 0] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-12-23T15:35:54.743Z] 15:35:54     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (1b1a8ed9000) [pid = 5376] [serial = 254] [outer = 0] [url = about:blank]
[task 2024-12-23T15:35:54.744Z] 15:35:54     INFO - GECKO(6480) | [Child 5376: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (1b1a8eddc00) [pid = 5376] [serial = 255] [outer = 0] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-12-23T15:35:58.999Z] 15:35:58     INFO -  [Parent 6932, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/components/antitracking/bouncetrackingprotection/BounceTrackingProtectionStorage.cpp:531
[task 2024-12-23T15:35:59.000Z] 15:35:59     INFO -  [Parent 6932, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/components/antitracking/bouncetrackingprotection/BounceTrackingProtection.cpp:140
[task 2024-12-23T15:35:59.000Z] 15:35:59     INFO -  [Parent 6932, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/toolkit/components/antitracking/bouncetrackingprotection/BounceTrackingProtection.cpp:92
[task 2024-12-23T15:35:59.001Z] 15:35:59     INFO -  [Parent 6932, Main Thread] WARNING: NS_ENSURE_TRUE(inst) failed: file StaticComponents.cpp:11180
[task 2024-12-23T15:35:59.018Z] 15:35:59     INFO -  [Parent 6932, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/components/places/Database.cpp:576
[task 2024-12-23T15:35:59.027Z] 15:35:59     INFO -  [Parent 6932, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/dom/console/ConsoleInstance.cpp:112
[task 2024-12-23T15:35:59.027Z] 15:35:59     INFO -  console.trace: Places - FrecencyRecalculator: "Initializing Frecency Recalculator"
[task 2024-12-23T15:35:59.027Z] 15:35:59     INFO -  resource://gre/modules/PlacesFrecencyRecalculator.sys.mjs 118 PlacesFrecencyRecalculator
[task 2024-12-23T15:35:59.027Z] 15:35:59     INFO -  D:\task_173496746631149\build\tests\mochitest\server.js 178 runServer
[task 2024-12-23T15:35:59.028Z] 15:35:59     INFO -  D:\task_173496746631149\build\tests\mochitest\server.js 71
[task 2024-12-23T15:35:59.039Z] 15:35:59     INFO -  console.trace: Places - FrecencyRecalculator: "Arm frecency recalculation"
[task 2024-12-23T15:35:59.039Z] 15:35:59     INFO -  resource://gre/modules/PlacesFrecencyRecalculator.sys.mjs 380 maybeStartFrecencyRecalculation
[task 2024-12-23T15:35:59.039Z] 15:35:59     INFO -  resource://gre/modules/PlacesFrecencyRecalculator.sys.mjs 158 PlacesFrecencyRecalculator
[task 2024-12-23T15:35:59.040Z] 15:35:59     INFO -  D:\task_173496746631149\build\tests\mochitest\server.js 178 runServer
[task 2024-12-23T15:35:59.040Z] 15:35:59     INFO -  D:\task_173496746631149\build\tests\mochitest\server.js 71
[task 2024-12-23T15:35:59.043Z] 15:35:59     INFO -  console.trace: Places - FrecencyRecalculator: "Got places-init-complete topic"
[task 2024-12-23T15:35:59.043Z] 15:35:59     INFO -  resource://gre/modules/PlacesFrecencyRecalculator.sys.mjs 436 observe
[task 2024-12-23T15:35:59.044Z] 15:35:59     INFO -  D:\task_173496746631149\build\tests\mochitest\server.js 178 runServer
[task 2024-12-23T15:35:59.044Z] 15:35:59     INFO -  D:\task_173496746631149\build\tests\mochitest\server.js 71
[task 2024-12-23T15:35:59.045Z] 15:35:59     INFO -  console.error: (new TypeError("connection not specified or invalid.", "resource://gre/modules/Sqlite.sys.mjs", 1590))
[task 2024-12-23T15:35:59.045Z] 15:35:59     INFO -  console.error: (new TypeError("can't access property \"executeBeforeShutdown\", db is undefined", "resource://gre/modules/PlacesUtils.sys.mjs", 1492))
[task 2024-12-23T15:35:59.046Z] 15:35:59     INFO -  [Parent 6932, IPDL Background] WARNING: QM_TRY failure (ERROR): 'OkIf(gBasePath)', file dom/quota/ActorsParent.cpp:1787
[task 2024-12-23T15:35:59.046Z] 15:35:59     INFO -  [Parent 6932, IPDL Background] WARNING: Trying to create QuotaManager before profile-do-change! Forgot to call do_get_profile()?: file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:1786
[task 2024-12-23T15:35:59.046Z] 15:35:59     INFO -  [Parent 6932, IPDL Background] WARNING: QM_TRY failure (ERROR): 'GetOrCreate().map([](const auto& res) { return Ok{}; }) failed with resultCode 0x80004005, resultName NS_ERROR_FAILURE', file dom/quota/ActorsParent.cpp:1810
[task 2024-12-23T15:35:59.047Z] 15:35:59     INFO -  [Parent 6932, IPDL Background] WARNING: QM_TRY failure (ERROR): 'QuotaManager::EnsureCreated() failed with resultCode 0x80004005, resultName NS_ERROR_FAILURE', file dom/quota/QuotaParent.cpp:1058
[task 2024-12-23T15:36:02.905Z] 15:36:02     INFO - GECKO(6480) | [Child 4912: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (179c90cf800) [pid = 4912] [serial = 2] [outer = 0] [url = about:blank]
[task 2024-12-23T15:36:08.174Z] 15:36:08     INFO - GECKO(6480) | console.warn: WindowsJumpLists: "Failed to fetch favicon for " "https://example.com/browser/toolkit/components/translations/tests/browser/translations-tester-es.html" ({})
[task 2024-12-23T15:36:08.178Z] 15:36:08     INFO - GECKO(6480) | console.warn: WindowsJumpLists: "Failed to fetch favicon for " "https://example.com/browser/toolkit/components/translations/tests/browser/translations-tester-select.html" ({})
[task 2024-12-23T15:36:08.180Z] 15:36:08     INFO - GECKO(6480) | console.warn: WindowsJumpLists: "Failed to fetch favicon for " "https://example.org/browser/toolkit/components/translations/tests/browser/translations-tester-es.html" ({})
[task 2024-12-23T15:36:08.180Z] 15:36:08     INFO - GECKO(6480) | console.warn: WindowsJumpLists: "Failed to fetch favicon for " "https://example.com/browser/toolkit/components/translations/tests/browser/translations-tester-fr.html" ({})
[task 2024-12-23T15:36:08.181Z] 15:36:08     INFO - GECKO(6480) | console.warn: WindowsJumpLists: "Failed to fetch favicon for " "https://example.com/browser/toolkit/components/translations/tests/browser/translations-tester-en.html" ({})
[task 2024-12-23T15:36:08.182Z] 15:36:08     INFO - GECKO(6480) | console.warn: WindowsJumpLists: "Failed to fetch favicon for " "https://example.com/browser/toolkit/components/translations/tests/browser/translations-tester-es-2.html" ({})
[task 2024-12-23T15:36:08.183Z] 15:36:08     INFO - GECKO(6480) | [Parent 4968, Jump List #4] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012 (NS_ERROR_FILE_NOT_FOUND): file /builds/worker/checkouts/gecko/widget/windows/WinUtils.cpp:961
[task 2024-12-23T15:37:20.176Z] 15:37:20     INFO - TEST-INFO | started process screenshot
[task 2024-12-23T15:37:20.293Z] 15:37:20     INFO - TEST-INFO | screenshot: exit 0
[task 2024-12-23T15:37:20.295Z] 15:37:20     INFO - Buffered messages logged at 15:35:50
[task 2024-12-23T15:37:20.295Z] 15:37:20     INFO - Entering test bound test_translate_selection_menuitem_when_selected_text_is_not_preferred_language
[task 2024-12-23T15:37:20.296Z] 15:37:20     INFO - Loading test page starting at url: https://example.com/browser/toolkit/components/translations/tests/browser/translations-tester-select.html
[task 2024-12-23T15:37:20.297Z] 15:37:20     INFO - TEST-PASS | browser/components/translations/tests/browser/browser_translations_select_context_menu_with_text_selected.js | The button is available. - 
[task 2024-12-23T15:37:20.297Z] 15:37:20     INFO - Checking that the page is untranslated
[task 2024-12-23T15:37:20.298Z] 15:37:20     INFO - Buffered messages logged at 15:35:51
[task 2024-12-23T15:37:20.299Z] 15:37:20     INFO - TEST-PASS | browser/components/translations/tests/browser/browser_translations_select_context_menu_with_text_selected.js | The page's H1 is untranslated and in the original Spanish. - "Don Quijote de La Mancha" == "Don Quijote de La Mancha" - 
[task 2024-12-23T15:37:20.299Z] 15:37:20     INFO - Action: assertContextMenuTranslateSelectionItem()
[task 2024-12-23T15:37:20.301Z] 15:37:20     INFO - Source: browser/components/translations/tests/browser/browser_translations_select_context_menu_with_text_selected.js:27:39
[task 2024-12-23T15:37:20.301Z] 15:37:20     INFO - The translate-selection context menu item should display a target language when the selected text is not the preferred language.
[task 2024-12-23T15:37:20.302Z] 15:37:20     INFO - Waiting for the contentAreaContextMenu popupshown event
[task 2024-12-23T15:37:20.302Z] 15:37:20     INFO - Buffered messages finished
[task 2024-12-23T15:37:20.303Z] 15:37:20     INFO - TEST-UNEXPECTED-FAIL | browser/components/translations/tests/browser/browser_translations_select_context_menu_with_text_selected.js | Test timed out - 
[task 2024-12-23T15:37:20.304Z] 15:37:20     INFO - GECKO(6480) | Completed ShutdownLeaks collections in process 4968
[task 2024-12-23T15:37:20.304Z] 15:37:20     INFO - TEST-START | Shutdown
```