Bug: Perma TEST-UNEXPECTED-FAIL | toolkit/content/tests/browser/browser_f7_caret_browsing.js | Caret browsing should now be off. - Got true, expected false when Gecko 88 merges to Beta on 2021-03-22
Status: VERIFIED
Priority: --
Resolution: FIXED
Created: 2021-02-28 13:39:02+00:00
Resolved: 2021-03-03 22:36:34+00:00

[Tracking Requested - why for this release]:

[Central as Beta simulation](https://treeherder.mozilla.org/jobs?repo=try&revision=ece0795e8899ac027f45e1bf00bae77bd0bfbda4&test_paths=toolkit%2Fcontent%2Ftests%2Fbrowser&selectedTaskRun=LfaHk0g3QXu9xYivOCKFHg.0)

[How to run such simulations](https://wiki.mozilla.org/Sheriffing/How_To/Beta_simulations)

[Failure log](https://treeherder.mozilla.org/logviewer?job_id=331509669&repo=try&lineNumber=14103)

```
[task 2021-02-28T11:58:30.696Z] 11:58:30     INFO - TEST-START | toolkit/content/tests/browser/browser_f7_caret_browsing.js
[task 2021-02-28T11:58:30.712Z] 11:58:30     INFO - GECKO(6364) | [Child 6678: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x7f3409b46000 == 2 [pid = 6678] [id = 11]
[task 2021-02-28T11:58:30.714Z] 11:58:30     INFO - GECKO(6364) | [Child 6678: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (0x7f340a12b740) [pid = 6678] [serial = 34] [outer = (nil)]
[task 2021-02-28T11:58:30.717Z] 11:58:30     INFO - GECKO(6364) | [Child 6678: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (0x7f3409b4a000) [pid = 6678] [serial = 35] [outer = 0x7f340a12b740]
[task 2021-02-28T11:58:30.861Z] 11:58:30     INFO - GECKO(6364) | [Child 6678: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 6 (0x7f340a123000) [pid = 6678] [serial = 36] [outer = 0x7f340a12b740]
[task 2021-02-28T11:58:31.069Z] 11:58:31     INFO - GECKO(6364) | [Parent 6364: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x7f90ec462400 == 13 [pid = 6364] [id = 15]
[task 2021-02-28T11:58:31.071Z] 11:58:31     INFO - GECKO(6364) | [Parent 6364: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 27 (0x7f914086dac0) [pid = 6364] [serial = 63] [outer = (nil)]
[task 2021-02-28T11:58:31.071Z] 11:58:31     INFO - GECKO(6364) | [Parent 6364: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 28 (0x7f90ec464000) [pid = 6364] [serial = 64] [outer = 0x7f914086dac0]
[task 2021-02-28T11:58:31.086Z] 11:58:31     INFO - GECKO(6364) | [Parent 6364, Main Thread] WARNING: NS_ENSURE_TRUE(uri) failed: file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1327
[task 2021-02-28T11:58:31.087Z] 11:58:31     INFO - GECKO(6364) | [Parent 6364, Main Thread] WARNING: NS_ENSURE_TRUE(rootFrame) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:4253
[task 2021-02-28T11:58:31.129Z] 11:58:31     INFO - GECKO(6364) | [Parent 6364, Main Thread] WARNING: NS_ENSURE_TRUE(root) failed: file /builds/worker/checkouts/gecko/layout/base/nsDocumentViewer.cpp:2729
[task 2021-02-28T11:58:31.277Z] 11:58:31     INFO - GECKO(6364) | [Parent 6364: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x7f90ec464400 == 14 [pid = 6364] [id = 16]
[task 2021-02-28T11:58:31.278Z] 11:58:31     INFO - GECKO(6364) | [Parent 6364: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 29 (0x7f90ffdfe580) [pid = 6364] [serial = 65] [outer = (nil)]
[task 2021-02-28T11:58:31.282Z] 11:58:31     INFO - GECKO(6364) | [Parent 6364: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 30 (0x7f90ec4c2c00) [pid = 6364] [serial = 66] [outer = 0x7f90ffdfe580]
[task 2021-02-28T11:58:31.290Z] 11:58:31     INFO - GECKO(6364) | [Parent 6364, Main Thread] WARNING: NS_ENSURE_TRUE(uri) failed: file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1327
[task 2021-02-28T11:58:31.290Z] 11:58:31     INFO - GECKO(6364) | [Parent 6364, Main Thread] WARNING: NS_ENSURE_TRUE(rootFrame) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:4253
[task 2021-02-28T11:58:31.326Z] 11:58:31     INFO - GECKO(6364) | [Parent 6364, Main Thread] WARNING: NS_ENSURE_TRUE(root) failed: file /builds/worker/checkouts/gecko/layout/base/nsDocumentViewer.cpp:2729
[task 2021-02-28T11:58:31.588Z] 11:58:31     INFO - GECKO(6364) | [Child 6529: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 0x7f828ace7400 == 1 [pid = 6529] [id = 19] [url = https://example.com/browser/toolkit/content/tests/browser/file_silentAudioTrack.html]
[task 2021-02-28T11:58:31.589Z] 11:58:31     INFO - GECKO(6364) | [Child 6529: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (0x7f828ace6800) [pid = 6529] [serial = 47] [outer = (nil)] [url = https://example.com/browser/toolkit/content/tests/browser/file_nonAutoplayAudio.html]
[task 2021-02-28T11:58:31.589Z] 11:58:31     INFO - GECKO(6364) | [Child 6529: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (0x7f828ace2400) [pid = 6529] [serial = 44] [outer = (nil)] [url = about:blank]
[task 2021-02-28T11:58:31.590Z] 11:58:31     INFO - GECKO(6364) | [Child 6529: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (0x7f828ace7000) [pid = 6529] [serial = 49] [outer = (nil)] [url = about:blank]
[task 2021-02-28T11:58:31.591Z] 11:58:31     INFO - GECKO(6364) | [Child 6529: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (0x7f828ace3400) [pid = 6529] [serial = 46] [outer = (nil)] [url = about:blank]
[task 2021-02-28T11:58:31.592Z] 11:58:31     INFO - GECKO(6364) | [Child 6529: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 0x7f828ace6c00 == 0 [pid = 6529] [id = 20] [url = about:blank]
[task 2021-02-28T11:58:31.668Z] 11:58:31     INFO - GECKO(6364) | [Child 6529: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (0x7f828acdb580) [pid = 6529] [serial = 53] [outer = (nil)] [url = about:blank]
[task 2021-02-28T11:58:31.668Z] 11:58:31     INFO - GECKO(6364) | [Child 6529: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (0x7f828acdb740) [pid = 6529] [serial = 50] [outer = (nil)] [url = https://example.com/browser/toolkit/content/tests/browser/file_silentAudioTrack.html]
[task 2021-02-28T11:58:32.029Z] 11:58:32     INFO - TEST-INFO | started process screentopng
[task 2021-02-28T11:58:32.250Z] 11:58:32     INFO - TEST-INFO | screentopng: exit 0
[task 2021-02-28T11:58:32.251Z] 11:58:32     INFO - Buffered messages logged at 11:58:30
[task 2021-02-28T11:58:32.252Z] 11:58:32     INFO - Entering test bound checkTogglingCaretBrowsing
[task 2021-02-28T11:58:32.252Z] 11:58:32     INFO - Buffered messages logged at 11:58:31
[task 2021-02-28T11:58:32.253Z] 11:58:32     INFO - Dialog opened.
[task 2021-02-28T11:58:32.253Z] 11:58:32     INFO - TEST-PASS | toolkit/content/tests/browser/browser_f7_caret_browsing.js | No button should be the default - 
[task 2021-02-28T11:58:32.254Z] 11:58:32     INFO - TEST-PASS | toolkit/content/tests/browser/browser_f7_caret_browsing.js | Checkbox shouldn't be checked by default. - 
[task 2021-02-28T11:58:32.255Z] 11:58:32     INFO - Dialog unloaded
[task 2021-02-28T11:58:32.255Z] 11:58:32     INFO - TEST-PASS | toolkit/content/tests/browser/browser_f7_caret_browsing.js | Caret browsing should still be off after cancelling the dialog. - 
[task 2021-02-28T11:58:32.255Z] 11:58:32     INFO - Dialog opened.
[task 2021-02-28T11:58:32.256Z] 11:58:32     INFO - TEST-PASS | toolkit/content/tests/browser/browser_f7_caret_browsing.js | No button should be the default - 
[task 2021-02-28T11:58:32.256Z] 11:58:32     INFO - TEST-PASS | toolkit/content/tests/browser/browser_f7_caret_browsing.js | Checkbox shouldn't be checked by default. - 
[task 2021-02-28T11:58:32.257Z] 11:58:32     INFO - Dialog unloaded
[task 2021-02-28T11:58:32.258Z] 11:58:32     INFO - Buffered messages logged at 11:58:32
[task 2021-02-28T11:58:32.258Z] 11:58:32     INFO - TEST-PASS | toolkit/content/tests/browser/browser_f7_caret_browsing.js | Caret browsing should be on after accepting the dialog. - 
[task 2021-02-28T11:58:32.259Z] 11:58:32     INFO - TEST-PASS | toolkit/content/tests/browser/browser_f7_caret_browsing.js | Shouldn't open a dialog to turn caret browsing off. - 
[task 2021-02-28T11:58:32.259Z] 11:58:32     INFO - Buffered messages finished
[task 2021-02-28T11:58:32.259Z] 11:58:32     INFO - TEST-UNEXPECTED-FAIL | toolkit/content/tests/browser/browser_f7_caret_browsing.js | Caret browsing should now be off. - Got true, expected false
[task 2021-02-28T11:58:32.260Z] 11:58:32     INFO - Stack trace:
[task 2021-02-28T11:58:32.260Z] 11:58:32     INFO - chrome://mochikit/content/browser-test.js:test_is:1359
[task 2021-02-28T11:58:32.260Z] 11:58:32     INFO - chrome://mochitests/content/browser/toolkit/content/tests/browser/browser_f7_caret_browsing.js:syncToggleCaretNoDialog:83
[task 2021-02-28T11:58:32.261Z] 11:58:32     INFO - chrome://mochitests/content/browser/toolkit/content/tests/browser/browser_f7_caret_browsing.js:checkTogglingCaretBrowsing:149
[task 2021-02-28T11:58:32.261Z] 11:58:32     INFO - GECKO(6364) | [Parent 6364: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 0x7f90ec468400 == 15 [pid = 6364] [id = 17]
[task 2021-02-28T11:58:32.261Z] 11:58:32     INFO - GECKO(6364) | [Parent 6364: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 31 (0x7f90ffdfee40) [pid = 6364] [serial = 67] [outer = (nil)]
[task 2021-02-28T11:58:32.263Z] 11:58:32     INFO - GECKO(6364) | [Parent 6364: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 32 (0x7f90ec4c1400) [pid = 6364] [serial = 68] [outer = 0x7f90ffdfee40]
[task 2021-02-28T11:58:32.263Z] 11:58:32     INFO - GECKO(6364) | [Parent 6364, Main Thread] WARNING: NS_ENSURE_TRUE(uri) failed: file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1327
[task 2021-02-28T11:58:32.264Z] 11:58:32     INFO - GECKO(6364) | [Parent 6364, Main Thread] WARNING: NS_ENSURE_TRUE(rootFrame) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:4253
[task 2021-02-28T11:58:32.264Z] 11:58:32     INFO - GECKO(6364) | [Parent 6364, Main Thread] WARNING: NS_ENSURE_TRUE(root) failed: file /builds/worker/checkouts/gecko/layout/base/nsDocumentViewer.cpp:2729
[task 2021-02-28T11:58:32.264Z] 11:58:32     INFO - Dialog opened.
[task 2021-02-28T11:58:32.265Z] 11:58:32     INFO - TEST-PASS | toolkit/content/tests/browser/browser_f7_caret_browsing.js | No button should be the default - 
[task 2021-02-28T11:58:32.266Z] 11:58:32     INFO - TEST-PASS | toolkit/content/tests/browser/browser_f7_caret_browsing.js | Checkbox shouldn't be checked by default. - 
[task 2021-02-28T11:58:32.266Z] 11:58:32     INFO - Dialog unloaded
[task 2021-02-28T11:58:32.314Z] 11:58:32     INFO - TEST-PASS | toolkit/content/tests/browser/browser_f7_caret_browsing.js | Caret browsing should still be off after cancelling the dialog. - 
[task 2021-02-28T11:58:32.335Z] 11:58:32     INFO - GECKO(6364) | [Child 6678, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111 (NS_ERROR_NOT_AVAILABLE): file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1349
[task 2021-02-28T11:58:32.339Z] 11:58:32     INFO - Leaving test bound checkTogglingCaretBrowsing
...
```