Bug: Intermittent browser/components/places/tests/browser/browser_addBookmarkForFrame.js | Uncaught exception in test - at chrome://mochitests/content/browser/browser/components/places/tests/browser/browser_addBookmarkForFrame.js:103 - TypeError: can't access
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-06-10 07:14:55+00:00
Resolved: 2022-07-25 23:08:22+00:00

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

---
```
[task 2022-06-10T05:40:55.522Z] 05:40:55     INFO - TEST-START | browser/components/places/tests/browser/browser_addBookmarkForFrame.js
[task 2022-06-10T05:40:55.545Z] 05:40:55     INFO - GECKO(4344) | [Child 5484: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL a3f1f00 == 1 [pid = 5484] [id = 0]
[task 2022-06-10T05:40:55.546Z] 05:40:55     INFO - GECKO(4344) | [Child 5484: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (558e600) [pid = 5484] [serial = 1] [outer = 0]
[task 2022-06-10T05:40:55.547Z] 05:40:55     INFO - GECKO(4344) | [Child 5484: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (a3f2e00) [pid = 5484] [serial = 2] [outer = 558e600]
[task 2022-06-10T05:40:55.553Z] 05:40:55     INFO - GECKO(4344) | [Child 5768, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
<..>
[task 2022-06-10T05:40:59.611Z] 05:40:59     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/browser_addBookmarkForFrame.js | Uncaught exception in test - at chrome://mochitests/content/browser/browser/components/places/tests/browser/browser_addBookmarkForFrame.js:103 - TypeError: can't access property "parentGuid", bookmark is null
[task 2022-06-10T05:40:59.611Z] 05:40:59     INFO - Stack trace:
[task 2022-06-10T05:40:59.611Z] 05:40:59     INFO - test_move_bookmark_whilst_add_bookmark_open_instantEditBookmark/<@chrome://mochitests/content/browser/browser/components/places/tests/browser/browser_addBookmarkForFrame.js:103:1
[task 2022-06-10T05:40:59.611Z] 05:40:59     INFO - Leaving test bound test_move_bookmark_whilst_add_bookmark_open_instantEditBookmark
[task 2022-06-10T05:40:59.612Z] 05:40:59     INFO - Entering test bound test_move_bookmark_whilst_add_bookmark_open_editBookmakr
[task 2022-06-10T05:40:59.612Z] 05:40:59     INFO - EditBookmark: Test moving a bookmark whilst the add bookmark for frame dialog is open.
[task 2022-06-10T05:41:00.252Z] 05:41:00     INFO - GECKO(4344) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL a1e6200 == 1 [pid = 1956] [id = 0]
[task 2022-06-10T05:41:00.260Z] 05:41:00     INFO - GECKO(4344) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (526e700) [pid = 1956] [serial = 1] [outer = 0]
[task 2022-06-10T05:41:00.261Z] 05:41:00     INFO - GECKO(4344) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (a1e7100) [pid = 1956] [serial = 2] [outer = 526e700]
[task 2022-06-10T05:41:00.267Z] 05:41:00     INFO - GECKO(4344) | [Child 8328, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-06-10T05:41:00.310Z] 05:41:00     INFO - GECKO(4344) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (c168a00) [pid = 1956] [serial = 3] [outer = 526e700]
[task 2022-06-10T05:41:00.326Z] 05:41:00     INFO - GECKO(4344) | [Child 1956, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x805303F4 (NS_ERROR_DOM_BAD_URI): file /builds/worker/checkouts/gecko/dom/base/nsFrameLoader.cpp:611
[task 2022-06-10T05:41:00.326Z] 05:41:00     INFO - GECKO(4344) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL c16a500 == 2 [pid = 1956] [id = 1]
[task 2022-06-10T05:41:00.327Z] 05:41:00     INFO - GECKO(4344) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (c151f00) [pid = 1956] [serial = 4] [outer = 0]
[task 2022-06-10T05:41:00.327Z] 05:41:00     INFO - GECKO(4344) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (c16b100) [pid = 1956] [serial = 5] [outer = c151f00]
[task 2022-06-10T05:41:00.335Z] 05:41:00     INFO - GECKO(4344) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL c16bd00 == 3 [pid = 1956] [id = 2]
[task 2022-06-10T05:41:00.335Z] 05:41:00     INFO - GECKO(4344) | [Child 1956: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (c152100) [pid = 1956] [serial = 6] [outer = 0]
[task 2022-06-10T05:41:00.348Z] 05:41:00     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "http://mochi.test:8888/browser/browser/components/places/tests/browser/framedPage.html" line: 0}]
[task 2022-06-10T05:41:00.357Z] 05:41:00     INFO - Console message: [JavaScript Error: "Security Error: Content at http://mochi.test:8888/browser/browser/components/places/tests/browser/framedPage.html may not load or link to about:mozilla."]
[task 2022-06-10T05:41:00.363Z] 05:41:00     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "http://mochi.test:8888/browser/browser/components/places/tests/browser/frameLeft.html" line: 0}]
[task 2022-06-10T05:41:00.365Z] 05:41:00     INFO - Console message: [JavaScript Warning: "The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it." {file: "http://mochi.test:8888/browser/browser/components/places/tests/browser/frameLeft.html" line: 0}]
[task 2022-06-10T05:41:00.393Z] 05:41:00     INFO - GECKO(4344) | [Parent 4600: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1ba11700 == 6 [pid = 4600] [id = 6] [url = chrome://browser/content/places/bookmarkProperties2.xhtml]
[task 2022-06-10T05:41:00.404Z] 05:41:00     INFO - GECKO(4344) | [Parent 4600: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1b8b8700 == 5 [pid = 4600] [id = 7] [url = chrome://browser/content/places/bookmarkProperties2.xhtml]
[task 2022-06-10T05:41:00.638Z] 05:41:00     INFO - GECKO(4344) | [Parent 4600: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 15 (19b0de00) [pid = 4600] [serial = 18] [outer = 0] [url = chrome://browser/content/places/bookmarkProperties2.xhtml]
[task 2022-06-10T05:41:00.650Z] 05:41:00     INFO - GECKO(4344) | [Parent 4600: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 14 (14251c00) [pid = 4600] [serial = 15] [outer = 0] [url = chrome://browser/content/places/bookmarkProperties2.xhtml]
[task 2022-06-10T05:41:00.707Z] 05:41:00     INFO - withBookmarksDialog: opening the dialog
[task 2022-06-10T05:41:00.708Z] 05:41:00     INFO - withBookmarksDialog: waiting for the dialog
[task 2022-06-10T05:41:00.721Z] 05:41:00     INFO - GECKO(4344) | [Child 1956, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-06-10T05:41:00.724Z] 05:41:00     INFO - GECKO(4344) | [Parent 4600: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 180d5b00 == 6 [pid = 4600] [id = 8]
[task 2022-06-10T05:41:00.725Z] 05:41:00     INFO - GECKO(4344) | [Parent 4600: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 15 (13cd7600) [pid = 4600] [serial = 21] [outer = 0]
[task 2022-06-10T05:41:00.725Z] 05:41:00     INFO - GECKO(4344) | [Parent 4600: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 16 (18385e00) [pid = 4600] [serial = 22] [outer = 13cd7600]
[task 2022-06-10T05:41:00.738Z] 05:41:00     INFO - GECKO(4344) | [Parent 4600, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/chrome/nsChromeRegistry.cpp:180
[task 2022-06-10T05:41:00.753Z] 05:41:00     INFO - GECKO(4344) | [Parent 4600, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/dom/security/nsCSPService.cpp:190
[task 2022-06-10T05:41:00.754Z] 05:41:00     INFO - GECKO(4344) | [Parent 4600, Main Thread] WARNING: NS_ENSURE_TRUE(uri) failed: file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1357
[task 2022-06-10T05:41:00.754Z] 05:41:00     INFO - Console message: Invalid chrome URI (need path): chrome://browser/
[task 2022-06-10T05:41:00.755Z] 05:41:00     INFO - GECKO(4344) | [Parent 4600: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 17 (1881f100) [pid = 4600] [serial = 23] [outer = 13cd7600]
[task 2022-06-10T05:41:00.822Z] 05:41:00     INFO - waiting for the overlay to be loaded
[task 2022-06-10T05:41:00.953Z] 05:41:00     INFO - TEST-PASS | browser/components/places/tests/browser/browser_addBookmarkForFrame.js | There should be an input to focus. - 
```