Bug: Intermittent browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | Uncaught exception - undefined - timed out after 50 tries.
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2020-04-21 18:54:16+00:00
Resolved: 2020-09-15 17:03:49+00:00

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

---

```
...
[task 2020-04-21T18:14:36.599Z] 18:14:36     INFO - Leaving test bound testCookiesSubView
[task 2020-04-21T18:14:36.600Z] 18:14:36     INFO - Entering test bound testCookiesSubViewAllowed
[task 2020-04-21T18:14:36.600Z] 18:14:36     INFO - Received onContentBlockingEvent event: 32768 (1 of 3)
[task 2020-04-21T18:14:36.601Z] 18:14:36     INFO - Received onContentBlockingEvent event: 0 (2 of 3)
[task 2020-04-21T18:14:36.601Z] 18:14:36     INFO - Received onContentBlockingEvent event: 32768 (3 of 3)
[task 2020-04-21T18:14:36.602Z] 18:14:36     INFO - Console message: [JavaScript Warning: "Cookie “foopy” will be soon rejected because it has the “sameSite” attribute set to “none” or an invalid value, without the “secure” attribute. To know more about the “sameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite" {file: "http://trackertest.org/browser/browser/base/content/test/protectionsUI/cookieServer.sjs" line: 0}]
[task 2020-04-21T18:14:36.603Z] 18:14:36     INFO - Console message: [JavaScript Error: "The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature." {file: "http://trackertest.org/browser/browser/base/content/test/protectionsUI/cookieServer.sjs" line: 0}]
[task 2020-04-21T18:14:36.603Z] 18:14:36     INFO - Buffered messages logged at 18:14:30
[task 2020-04-21T18:14:36.604Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | TP category item is visible - 
[task 2020-04-21T18:14:36.605Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | Cookies view was shown - 
[task 2020-04-21T18:14:36.605Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | We have 1 cookie in the list - 
[task 2020-04-21T18:14:36.606Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | has an item for trackertest.org - 
[task 2020-04-21T18:14:36.607Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | list item is visible - 
[task 2020-04-21T18:14:36.607Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | indicates whether the cookie was blocked or allowed - 
[task 2020-04-21T18:14:36.608Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | Permission remove button is visible - 
[task 2020-04-21T18:14:36.609Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | Button click should remove cookie pref. - 
[task 2020-04-21T18:14:36.609Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | Has removed the allowed class - 
[task 2020-04-21T18:14:36.610Z] 18:14:36     INFO - Leaving test bound testCookiesSubViewAllowed
[task 2020-04-21T18:14:36.611Z] 18:14:36     INFO - Entering test bound testCookiesSubViewAllowedHeuristic
[task 2020-04-21T18:14:36.611Z] 18:14:36     INFO - Received onContentBlockingEvent event: 32768 (1 of 5)
[task 2020-04-21T18:14:36.612Z] 18:14:36     INFO - Received onContentBlockingEvent event: 0 (2 of 5)
[task 2020-04-21T18:14:36.612Z] 18:14:36     INFO - Received onContentBlockingEvent event: 32768 (3 of 5)
[task 2020-04-21T18:14:36.613Z] 18:14:36     INFO - Received onContentBlockingEvent event: 40960 (4 of 5)
[task 2020-04-21T18:14:36.613Z] 18:14:36     INFO - Received onContentBlockingEvent event: 536911872 (5 of 5)
[task 2020-04-21T18:14:36.614Z] 18:14:36     INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “http://trackertest.org/browser/browser/base/content/test/protectionsUI/cookieServer.sjs” was blocked because it came from a tracker and content blocking is enabled."]
[task 2020-04-21T18:14:36.614Z] 18:14:36     INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “http://trackertest.org/browser/browser/base/content/test/protectionsUI/cookieServer.sjs” was blocked because it came from a tracker and content blocking is enabled."]
[task 2020-04-21T18:14:36.614Z] 18:14:36     INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “http://trackertest.org/browser/browser/base/content/test/protectionsUI/cookieServer.sjs” was blocked because it came from a tracker and content blocking is enabled."]
[task 2020-04-21T18:14:36.614Z] 18:14:36     INFO - Console message: [JavaScript Error: "The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature." {file: "http://trackertest.org/browser/browser/base/content/test/protectionsUI/cookieServer.sjs" line: 0}]
[task 2020-04-21T18:14:36.614Z] 18:14:36     INFO - must wait for focus
[task 2020-04-21T18:14:36.616Z] 18:14:36     INFO - Console message: [JavaScript Warning: "Storage access automatically granted for tracker “http://trackertest.org” on “http://not-tracking.example.com”." {file: "http://not-tracking.example.com/browser/browser/base/content/test/protectionsUI/cookiePage.html" line: 59 column: 26 source: "http://not-tracking.example.com/browser/browser/base/content/test/protectionsUI/trackingAPI.js"}]
[task 2020-04-21T18:14:36.616Z] 18:14:36     INFO - must wait for focus
[task 2020-04-21T18:14:36.616Z] 18:14:36     INFO - Console message: [JavaScript Warning: "Cookie “foopy” will be soon rejected because it has the “sameSite” attribute set to “none” or an invalid value, without the “secure” attribute. To know more about the “sameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite" {file: "http://trackertest.org/browser/browser/base/content/test/protectionsUI/cookieServer.sjs" line: 0}]
[task 2020-04-21T18:14:36.617Z] 18:14:36     INFO - Console message: [JavaScript Error: "The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the file needs to be declared in the transfer protocol or file needs to use a byte order mark as an encoding signature." {file: "http://trackertest.org/browser/browser/base/content/test/protectionsUI/cookieServer.sjs" line: 0}]
[task 2020-04-21T18:14:36.617Z] 18:14:36     INFO - Buffered messages finished
[task 2020-04-21T18:14:36.620Z] 18:14:36     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | Uncaught exception - undefined - timed out after 50 tries.
[task 2020-04-21T18:14:36.621Z] 18:14:36     INFO - Leaving test bound testCookiesSubViewAllowedHeuristic
[task 2020-04-21T18:14:36.621Z] 18:14:36     INFO - Entering test bound testCookiesSubViewBlockedDoublyNested
[task 2020-04-21T18:14:36.621Z] 18:14:36     INFO - Received onContentBlockingEvent event: 32768 (1 of 3)
[task 2020-04-21T18:14:36.622Z] 18:14:36     INFO - Received onContentBlockingEvent event: 0 (2 of 3)
[task 2020-04-21T18:14:36.622Z] 18:14:36     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "http://not-tracking.example.com/browser/browser/base/content/test/protectionsUI/containerPage.html" line: 0}]
[task 2020-04-21T18:14:36.622Z] 18:14:36     INFO - Received onContentBlockingEvent event: 32768 (3 of 3)
[task 2020-04-21T18:14:36.623Z] 18:14:36     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://not-tracking.example.com/browser/browser/base/content/test/protectionsUI/embeddedPage.html" line: 0}]
[task 2020-04-21T18:14:36.624Z] 18:14:36     INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “http://trackertest.org/browser/browser/base/content/test/protectionsUI/cookieSetterPage.html” was blocked because it came from a tracker and content blocking is enabled."]
[task 2020-04-21T18:14:36.624Z] 18:14:36     INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “http://trackertest.org/browser/browser/base/content/test/protectionsUI/cookieSetterPage.html” was blocked because it came from a tracker and content blocking is enabled."]
[task 2020-04-21T18:14:36.625Z] 18:14:36     INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “http://trackertest.org/browser/browser/base/content/test/protectionsUI/cookieSetterPage.html” was blocked because it came from a tracker and content blocking is enabled."]
[task 2020-04-21T18:14:36.645Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | TP category item is visible - 
[task 2020-04-21T18:14:36.904Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | Cookies view was shown - 
[task 2020-04-21T18:14:36.904Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | We have 1 cookie in the list - 
[task 2020-04-21T18:14:36.904Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | has an item for trackertest.org - 
[task 2020-04-21T18:14:36.904Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | list item is visible - 
[task 2020-04-21T18:14:36.906Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | indicates whether the cookie was blocked or allowed - 
[task 2020-04-21T18:14:36.906Z] 18:14:36     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | Permission remove button doesn't exist - 
[task 2020-04-21T18:14:36.926Z] 18:14:36     INFO - Leaving test bound testCookiesSubViewBlockedDoublyNested
[task 2020-04-21T18:14:37.002Z] 18:14:37     INFO - GECKO(1825) | MEMORY STAT | vsize 3118MB | residentFast 377MB | heapAllocated 140MB
[task 2020-04-21T18:14:37.003Z] 18:14:37     INFO - TEST-OK | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | took 22182ms
[task 2020-04-21T18:14:37.003Z] 18:14:37     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-04-21T18:14:37.003Z] 18:14:37     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | Found an unexpected tab at the end of test run: http://not-tracking.example.com/browser/browser/base/content/test/protectionsUI/cookiePage.html - 
[task 2020-04-21T18:14:37.031Z] 18:14:37     INFO - checking window state
[task 2020-04-21T18:14:37.032Z] 18:14:37     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-04-21T18:14:37.032Z] 18:14:37     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/protectionsUI/browser_protectionsUI_cookies_subview.js | Found an unexpected browser window at the end of test run - 
```