Bug: Intermittent browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js | single tracking bug
Status: NEW
Priority: P5
Created: 2025-02-06 19:21:11+00:00
Resolved: 2025-03-03 06:34:35+00:00

**Filed by:** sstanca [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=493671345&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/DMPdvlTvQvS8-FPjGCfpzw/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/DMPdvlTvQvS8-FPjGCfpzw/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2025-02-06T18:05:41.400Z] 18:05:41     INFO - TEST-PASS | browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js | Clipboard has the given value: 'https://www.example.com/?stripParam=1234#:~:text=eiusmod%20tempor%20incididunt' - 
[task 2025-02-06T18:05:41.400Z] 18:05:41     INFO - Leaving test bound copiesToClipboard
[task 2025-02-06T18:05:41.400Z] 18:05:41     INFO - Entering test bound copiesToClipboard
[task 2025-02-06T18:05:41.400Z] 18:05:41     INFO - Console message: [JavaScript Warning: "HTTPS-First Mode: Upgrading insecure speculative TCP connection “http://www.example.com/?stripParam=1234” to use “https”."]
[task 2025-02-06T18:05:41.401Z] 18:05:41     INFO - Console message: [JavaScript Warning: "HTTPS-First Mode: Upgrading insecure request “http://www.example.com/?stripParam=1234” to use “https”."]
[task 2025-02-06T18:05:41.401Z] 18:05:41     INFO - Buffered messages logged at 18:05:41
[task 2025-02-06T18:05:41.401Z] 18:05:41     INFO - Initializing clipboard with "waitForClipboard-known-value-0.7892444015878837"...
[task 2025-02-06T18:05:41.402Z] 18:05:41     INFO - Succeeded initializing clipboard, start requested things...
[task 2025-02-06T18:05:41.402Z] 18:05:41     INFO - Buffered messages finished
[task 2025-02-06T18:05:41.402Z] 18:05:41     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js | uncaught exception - NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIIOService.createExposableURI] at copyStrippedLink@chrome://browser/content/nsContextMenu.sys.mjs:2314:19
[task 2025-02-06T18:05:41.403Z] 18:05:41     INFO - copyLinkToHighlight@chrome://browser/content/nsContextMenu.sys.mjs:490:12
[task 2025-02-06T18:05:41.403Z] 18:05:41     INFO - @chrome://browser/content/browser-context.js:304:24
[task 2025-02-06T18:05:41.403Z] 18:05:41     INFO - EventListener.handleEvent*@chrome://browser/content/browser-context.js:16:22
[task 2025-02-06T18:05:41.403Z] 18:05:41     INFO - EventListener.handleEvent*@chrome://browser/content/browser-context.js:7:10
[task 2025-02-06T18:05:41.403Z] 18:05:41     INFO - 
[task 2025-02-06T18:05:41.403Z] 18:05:41     INFO - Stack trace:
[task 2025-02-06T18:05:41.403Z] 18:05:41     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:2068
[task 2025-02-06T18:05:41.403Z] 18:05:41     INFO - OnErrorEventHandlerNonNull*chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:null:2043
[task 2025-02-06T18:05:41.403Z] 18:05:41     INFO - chrome://mochikit/content/browser-test.js:Tester:178
[task 2025-02-06T18:05:41.403Z] 18:05:41     INFO - chrome://mochikit/content/browser-harness.xhtml:createTester/</<:261
[task 2025-02-06T18:05:41.403Z] 18:05:41     INFO - GECKO(10295) | JavaScript error: chrome://browser/content/nsContextMenu.sys.mjs, line 2314: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIIOService.createExposableURI]
[task 2025-02-06T18:05:41.405Z] 18:05:41     INFO - Console message: [JavaScript Error: "NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIIOService.createExposableURI]" {file: "chrome://browser/content/nsContextMenu.sys.mjs" line: 2314}]
[task 2025-02-06T18:05:41.405Z] 18:05:41     INFO - copyStrippedLink@chrome://browser/content/nsContextMenu.sys.mjs:2314:19
[task 2025-02-06T18:05:41.405Z] 18:05:41     INFO - copyLinkToHighlight@chrome://browser/content/nsContextMenu.sys.mjs:490:12
[task 2025-02-06T18:05:41.405Z] 18:05:41     INFO - @chrome://browser/content/browser-context.js:304:24
[task 2025-02-06T18:05:41.405Z] 18:05:41     INFO - EventListener.handleEvent*@chrome://browser/content/browser-context.js:16:22
[task 2025-02-06T18:05:41.405Z] 18:05:41     INFO - EventListener.handleEvent*@chrome://browser/content/browser-context.js:7:10
[task 2025-02-06T18:05:41.406Z] 18:05:41     INFO - 
[task 2025-02-06T18:05:46.441Z] 18:05:46     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js | Timed out while polling clipboard for requested data, got: waitForClipboard-known-value-0.7892444015878837 - 
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - Stack trace:
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - chrome://mochikit/content/browser-test.js:test_ok:1599
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:putAndVerify:1231
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.promiseClipboardChange:1259
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js:runTests:94
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js:testCopyLinkToHighlight/<:180
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - resource://testing-common/BrowserTestUtils.sys.mjs:withNewTab:121
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js:testCopyLinkToHighlight:116
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js:copiesToClipboard:91
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - chrome://mochikit/content/browser-test.js:handleTask:1147
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1219
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1360
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1136
[task 2025-02-06T18:05:46.443Z] 18:05:46     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2025-02-06T18:05:46.586Z] 18:05:46     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js | Uncaught exception in test bound copiesToClipboard - at chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1233 - Error: Timed out while polling clipboard for requested data, got: waitForClipboard-known-value-0.7892444015878837
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - Stack trace:
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - putAndVerify@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1233:13
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - async*SimpleTest.promiseClipboardChange@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1259:10
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - async*runTests@chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js:94:24
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - testCopyLinkToHighlight/<@chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js:180:13
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - async*withNewTab@resource://testing-common/BrowserTestUtils.sys.mjs:121:22
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - async*testCopyLinkToHighlight@chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js:116:26
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - copiesToClipboard@chrome://mochitests/content/browser/browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js:91:9
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - handleTask@chrome://mochikit/content/browser-test.js:1147:26
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1219:18
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1360:14
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1136:14
[task 2025-02-06T18:05:46.588Z] 18:05:46     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2025-02-06T18:05:46.589Z] 18:05:46     INFO - Leaving test bound copiesToClipboard
[task 2025-02-06T18:05:47.198Z] 18:05:47     INFO - GECKO(10295) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2025-02-06T18:05:47.199Z] 18:05:47     INFO - GECKO(10295) | MEMORY STAT heapAllocated not supported in this build configuration.
[task 2025-02-06T18:05:47.199Z] 18:05:47     INFO - GECKO(10295) | MEMORY STAT | vsize 120591137MB | residentFast 1327MB
[task 2025-02-06T18:05:47.201Z] 18:05:47     INFO - TEST-OK | browser/base/content/test/contextMenu/browser_copy_link_to_highlight.js | took 21633ms
```