Bug: Frequent Windows browser/components/places/tests/browser/browser_copy_query_without_tree.js | Uncaught exception in test bound copy_toolbar_shortcut - [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsINavHistoryContai
Status: RESOLVED
Priority: --
Resolution: WORKSFORME
Created: 2024-06-17 23:40:21+00:00
Resolved: 2024-09-30 12:09:26+00:00

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

---
```
[task 2024-06-17T22:54:33.901Z] 22:54:33     INFO - TEST-PASS | browser/components/places/tests/browser/browser_bookmark_copy_folder_tree.js | Clipboard has the given value: '{"title":"FolderA","id":8,"itemGuid":"M1X4DLqO98wi","instanceId":"Amb9tD9mptbi","parent":7,"parentGuid":"3sklVZWgdbVG","dateAdded":1718664872502000,"lastModified":1718664872502000,"type":"text/x-moz-place-container"}' - 
[task 2024-06-17T22:54:33.902Z] 22:54:33     INFO - Paste copy of folderA
[task 2024-06-17T22:54:33.903Z] 22:54:33     INFO - Sanity check copy/paste operation - mainFolder has 2 children
[task 2024-06-17T22:54:33.903Z] 22:54:33     INFO - Buffered messages finished
[task 2024-06-17T22:54:33.905Z] 22:54:33     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/browser_bookmark_copy_folder_tree.js | 2 children - 1 == 2 - 
[task 2024-06-17T22:54:33.905Z] 22:54:33     INFO - Stack trace:
[task 2024-06-17T22:54:33.905Z] 22:54:33     INFO - chrome://mochitests/content/browser/browser/components/places/tests/browser/browser_bookmark_copy_folder_tree.js:equalChildCount:38
[task 2024-06-17T22:54:33.905Z] 22:54:33     INFO - chrome://mochitests/content/browser/browser/components/places/tests/browser/browser_bookmark_copy_folder_tree.js:null:116
[task 2024-06-17T22:54:33.905Z] 22:54:33     INFO - chrome://mochitests/content/browser/browser/components/places/tests/browser/head.js:withSidebarTree:407
[task 2024-06-17T22:54:33.905Z] 22:54:33     INFO - chrome://mochitests/content/browser/browser/components/places/tests/browser/browser_bookmark_copy_folder_tree.js:null:17
[task 2024-06-17T22:54:33.905Z] 22:54:33     INFO - chrome://mochikit/content/browser-test.js:handleTask:1145
[task 2024-06-17T22:54:33.905Z] 22:54:33     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1217
[task 2024-06-17T22:54:33.905Z] 22:54:33     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1358
[task 2024-06-17T22:54:33.905Z] 22:54:33     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1134
[task 2024-06-17T22:54:33.905Z] 22:54:33     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-06-17T22:54:33.906Z] 22:54:33     INFO - Sanity check copy of folderA
[task 2024-06-17T22:54:33.907Z] 22:54:33     INFO - GECKO(5188) | [Parent 7256: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 69 (3002fe00) [pid = 7256] [serial = 150] [outer = 2735e700]
[task 2024-06-17T22:54:33.907Z] 22:54:33     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-06-17T22:54:33.909Z] 22:54:33     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/browser_bookmark_copy_folder_tree.js | Uncaught exception in test bound  - [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsINavHistoryContainerResultNode.getChild]"  nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"  location: "JS frame :: chrome://mochitests/content/browser/browser/components/places/tests/browser/browser_bookmark_copy_folder_tree.js :: <TOP_LEVEL> :: line 119"  data: no]
[task 2024-06-17T22:54:33.909Z] 22:54:33     INFO - Stack trace:
[task 2024-06-17T22:54:33.909Z] 22:54:33     INFO - @chrome://mochitests/content/browser/browser/components/places/tests/browser/browser_bookmark_copy_folder_tree.js:119:46
[task 2024-06-17T22:54:33.909Z] 22:54:33     INFO - async*withSidebarTree@chrome://mochitests/content/browser/browser/components/places/tests/browser/head.js:407:11
[task 2024-06-17T22:54:33.909Z] 22:54:33     INFO - async*@chrome://mochitests/content/browser/browser/components/places/tests/browser/browser_bookmark_copy_folder_tree.js:17:9
[task 2024-06-17T22:54:33.909Z] 22:54:33     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1145:26
[task 2024-06-17T22:54:33.909Z] 22:54:33     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1217:18
[task 2024-06-17T22:54:33.909Z] 22:54:33     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1358:14
[task 2024-06-17T22:54:33.909Z] 22:54:33     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1134:14
[task 2024-06-17T22:54:33.910Z] 22:54:33     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-06-17T22:54:33.910Z] 22:54:33     INFO - Leaving test bound 
[task 2024-06-17T22:54:33.911Z] 22:54:33     INFO - GECKO(5188) | [Parent 7256, Main Thread] WARNING: NS_ENSURE_TRUE(mNameHashtable.Get(aName, &index)) failed: file /builds/worker/checkouts/gecko/storage/mozStorageRow.cpp:91
[task 2024-06-17T22:54:33.912Z] 22:54:33     INFO - GECKO(5188) | [Parent 7256, Main Thread] WARNING: NS_ENSURE_TRUE(mNameHashtable.Get(aName, &index)) failed: file /builds/worker/checkouts/gecko/storage/mozStorageRow.cpp:91
[task 2024-06-17T22:54:33.912Z] 22:54:33     INFO - GECKO(5188) | [Parent 7256, Main Thread] WARNING: NS_ENSURE_TRUE(mNameHashtable.Get(aName, &index)) failed: file /builds/worker/checkouts/gecko/storage/mozStorageRow.cpp:91
[task 2024-06-17T22:54:33.913Z] 22:54:33     INFO - GECKO(5188) | [Parent 7256, Main Thread] WARNING: NS_ENSURE_TRUE(mNameHashtable.Get(aName, &index)) failed: file /builds/worker/checkouts/gecko/storage/mozStorageRow.cpp:91
[task 2024-06-17T22:54:33.913Z] 22:54:33     INFO - GECKO(5188) | [Parent 7256, Main Thread] WARNING: NS_ENSURE_TRUE(mNameHashtable.Get(aName, &index)) failed: file /builds/worker/checkouts/gecko/storage/mozStorageRow.cpp:91
[task 2024-06-17T22:54:33.914Z] 22:54:33     INFO - GECKO(5188) | [Parent 7256, Main Thread] WARNING: NS_ENSURE_TRUE(mNameHashtable.Get(aName, &index)) failed: file /builds/worker/checkouts/gecko/storage/mozStorageRow.cpp:91
[task 2024-06-17T22:54:33.914Z] 22:54:33     INFO - GECKO(5188) | [Parent 7256: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 68 (1582c820) [pid = 7256] [serial = 113] [outer = 0] [url = chrome://browser/content/places/bookmarkProperties.xhtml]
[task 2024-06-17T22:54:34.126Z] 22:54:34     INFO - TEST-PASS | browser/components/places/tests/browser/browser_bookmark_copy_folder_tree.js | Assertion count 6 is greater than expected range 0-0 assertions. - 

```