Bug: Intermittent browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | This test exceeded the timeout threshold. It should be rewritten or split up. If that's not possible, use requestLongerTimeout(N), but only as a last resort. -
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-05-28 05:03:04+00:00
Resolved: 2022-07-26 16:52:00+00:00

**Filed by:** cbrindusan [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=340970925&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/BeNKf2lvTFaKIj2Evm2BDA/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/BeNKf2lvTFaKIj2Evm2BDA/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2021-05-27T15:39:47.684Z] 15:39:47     INFO - TEST-START | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js
[task 2021-05-27T15:41:21.684Z] 15:41:21     INFO - TEST-INFO | started process screencapture
[task 2021-05-27T15:41:21.776Z] 15:41:21     INFO - TEST-INFO | screencapture: exit 0
[task 2021-05-27T15:41:21.777Z] 15:41:21     INFO - <snipped 321 output lines - if you need more context, please use SimpleTest.requestCompleteLog() in your test>
[task 2021-05-27T15:41:21.777Z] 15:41:21     INFO - Buffered messages logged at 15:41:03
[task 2021-05-27T15:41:21.777Z] 15:41:21     INFO - Tracking content must be in the exception list and not blocked
[task 2021-05-27T15:41:21.777Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | trackers are detected - 
[task 2021-05-27T15:41:21.778Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | content shows exception - 
[task 2021-05-27T15:41:21.778Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | shield is not active - 
[task 2021-05-27T15:41:21.778Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | shield shows exception - 
[task 2021-05-27T15:41:21.779Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | correct tooltip - 
[task 2021-05-27T15:41:21.779Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | icon box is visible - 
[task 2021-05-27T15:41:21.779Z] 15:41:21     INFO - Buffered messages logged at 15:41:04
[task 2021-05-27T15:41:21.779Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Trackers category is detected - 
[task 2021-05-27T15:41:21.779Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Cookie restrictions category is detected - 
[task 2021-05-27T15:41:21.779Z] 15:41:21     INFO - Re-enable TP for the page (which reloads the page)
[task 2021-05-27T15:41:21.779Z] 15:41:21     INFO - Wait tab event: load
[task 2021-05-27T15:41:21.780Z] 15:41:21     INFO - Buffered messages logged at 15:41:06
[task 2021-05-27T15:41:21.780Z] 15:41:21     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 2021-05-27T15:41:21.780Z] 15:41:21     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 2021-05-27T15:41:21.781Z] 15:41:21     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 2021-05-27T15:41:21.781Z] 15:41:21     INFO - Tab event received: load
[task 2021-05-27T15:41:21.781Z] 15:41:21     INFO - Tracking content must be blocked
[task 2021-05-27T15:41:21.781Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | trackers are detected - 
[task 2021-05-27T15:41:21.781Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | content shows no exception - 
[task 2021-05-27T15:41:21.781Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | icon box is always visible - 
[task 2021-05-27T15:41:21.782Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | shield is active - 
[task 2021-05-27T15:41:21.782Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | icon box shows no exception - 
[task 2021-05-27T15:41:21.782Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | correct tooltip - 
[task 2021-05-27T15:41:21.782Z] 15:41:21     INFO - Buffered messages logged at 15:41:07[task 2021-05-27T15:41:21.783Z] 15:41:21     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 2021-05-27T15:41:21.783Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Trackers category is detected - 
[task 2021-05-27T15:41:21.783Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Cookie restrictions category is detected - 
[task 2021-05-27T15:41:21.783Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | TPC is enabled after setting the pref - 
[task 2021-05-27T15:41:21.783Z] 15:41:21     INFO - Testing with Tracking Protection ENABLED.
[task 2021-05-27T15:41:21.784Z] 15:41:21     INFO - Load a test page not containing tracking elements
[task 2021-05-27T15:41:21.784Z] 15:41:21     INFO - Wait tab event: load
[task 2021-05-27T15:41:21.784Z] 15:41:21     INFO - Buffered messages logged at 15:41:08
[task 2021-05-27T15:41:21.784Z] 15:41:21     INFO - Tab event received: load
[task 2021-05-27T15:41:21.784Z] 15:41:21     INFO - Non-tracking content must not be blocked
[task 2021-05-27T15:41:21.785Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | no trackers are detected - 
[task 2021-05-27T15:41:21.785Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | content shows no exception - 
[task 2021-05-27T15:41:21.785Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | shield is not active - 
[task 2021-05-27T15:41:21.785Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | icon box shows no exception - 
[task 2021-05-27T15:41:21.785Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | correct tooltip - 
[task 2021-05-27T15:41:21.786Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | icon box is visible - 
[task 2021-05-27T15:41:21.786Z] 15:41:21     INFO - Buffered messages logged at 15:41:09
[task 2021-05-27T15:41:21.786Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Cookie restrictions category is not found - 
[task 2021-05-27T15:41:21.786Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Trackers category is not found - 
[task 2021-05-27T15:41:21.787Z] 15:41:21     INFO - Load a test page not containing tracking elements which has an exception.
[task 2021-05-27T15:41:21.787Z] 15:41:21     INFO - Wait tab event: load
[task 2021-05-27T15:41:21.787Z] 15:41:21     INFO - Buffered messages logged at 15:41:10
[task 2021-05-27T15:41:21.787Z] 15:41:21     INFO - Tab event received: load
[task 2021-05-27T15:41:21.788Z] 15:41:21     INFO - Wait tab event: load
[task 2021-05-27T15:41:21.788Z] 15:41:21     INFO - Buffered messages logged at 15:41:11
[task 2021-05-27T15:41:21.788Z] 15:41:21     INFO - Tab event received: load
[task 2021-05-27T15:41:21.788Z] 15:41:21     INFO - Non-tracking content must not be blocked
[task 2021-05-27T15:41:21.788Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | no trackers are detected - 
[task 2021-05-27T15:41:21.788Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | content shows exception - 
[task 2021-05-27T15:41:21.789Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | shield is not active - 
[task 2021-05-27T15:41:21.789Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | shield shows exception - 
[task 2021-05-27T15:41:21.789Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | correct tooltip - 
[task 2021-05-27T15:41:21.789Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | icon box is not hidden - 
[task 2021-05-27T15:41:21.789Z] 15:41:21     INFO - Buffered messages logged at 15:41:12
[task 2021-05-27T15:41:21.790Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Cookie restrictions category is not found - 
[task 2021-05-27T15:41:21.790Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Trackers category is not found - 
[task 2021-05-27T15:41:21.790Z] 15:41:21     INFO - Load a test page containing tracking elements
[task 2021-05-27T15:41:21.790Z] 15:41:21     INFO - Wait tab event: load
[task 2021-05-27T15:41:21.790Z] 15:41:21     INFO - Buffered messages logged at 15:41:14[task 2021-05-27T15:41:21.790Z] 15:41:21     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 2021-05-27T15:41:21.791Z] 15:41:21     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 2021-05-27T15:41:21.795Z] 15:41:21     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 2021-05-27T15:41:21.795Z] 15:41:21     INFO - Tab event received: load
[task 2021-05-27T15:41:21.795Z] 15:41:21     INFO - Tracking content must be blocked
[task 2021-05-27T15:41:21.795Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | trackers are detected - 
[task 2021-05-27T15:41:21.795Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | content shows no exception - 
[task 2021-05-27T15:41:21.796Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | icon box is always visible - 
[task 2021-05-27T15:41:21.796Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | shield is active - 
[task 2021-05-27T15:41:21.796Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | icon box shows no exception - 
[task 2021-05-27T15:41:21.796Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | correct tooltip - 
[task 2021-05-27T15:41:21.797Z] 15:41:21     INFO - Buffered messages logged at 15:41:15
[task 2021-05-27T15:41:21.797Z] 15:41:21     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 2021-05-27T15:41:21.797Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Trackers category is detected - 
[task 2021-05-27T15:41:21.797Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Cookie restrictions category is detected - 
[task 2021-05-27T15:41:21.797Z] 15:41:21     INFO - Disable CB for the page (which reloads the page)
[task 2021-05-27T15:41:21.798Z] 15:41:21     INFO - Wait tab event: load
[task 2021-05-27T15:41:21.798Z] 15:41:21     INFO - Buffered messages logged at 15:41:17
[task 2021-05-27T15:41:21.798Z] 15:41:21     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 2021-05-27T15:41:21.798Z] 15:41:21     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 2021-05-27T15:41:21.799Z] 15:41:21     INFO - Tab event received: load
[task 2021-05-27T15:41:21.799Z] 15:41:21     INFO - Tracking content must be in the exception list and not blocked
[task 2021-05-27T15:41:21.799Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | trackers are detected - 
[task 2021-05-27T15:41:21.799Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | content shows exception - 
[task 2021-05-27T15:41:21.799Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | shield is not active - 
[task 2021-05-27T15:41:21.799Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | shield shows exception - 
[task 2021-05-27T15:41:21.801Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | correct tooltip - 
[task 2021-05-27T15:41:21.801Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | icon box is visible - 
[task 2021-05-27T15:41:21.802Z] 15:41:21     INFO - Buffered messages logged at 15:41:18
[task 2021-05-27T15:41:21.802Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Trackers category is detected - 
[task 2021-05-27T15:41:21.802Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Cookie restrictions category is detected - 
[task 2021-05-27T15:41:21.802Z] 15:41:21     INFO - Re-enable TP for the page (which reloads the page)
[task 2021-05-27T15:41:21.802Z] 15:41:21     INFO - Wait tab event: load
[task 2021-05-27T15:41:21.803Z] 15:41:21     INFO - Buffered messages logged at 15:41:20
[task 2021-05-27T15:41:21.803Z] 15:41:21     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 2021-05-27T15:41:21.803Z] 15:41:21     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 2021-05-27T15:41:21.805Z] 15:41:21     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 2021-05-27T15:41:21.805Z] 15:41:21     INFO - Tab event received: load
[task 2021-05-27T15:41:21.805Z] 15:41:21     INFO - Tracking content must be blocked[task 2021-05-27T15:41:21.806Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | trackers are detected - 
[task 2021-05-27T15:41:21.806Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | content shows no exception - 
[task 2021-05-27T15:41:21.808Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | icon box is always visible - 
[task 2021-05-27T15:41:21.808Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | shield is active - 
[task 2021-05-27T15:41:21.808Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | icon box shows no exception - 
[task 2021-05-27T15:41:21.808Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | correct tooltip - 
[task 2021-05-27T15:41:21.809Z] 15:41:21     INFO - Buffered messages logged at 15:41:21
[task 2021-05-27T15:41:21.809Z] 15:41:21     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 2021-05-27T15:41:21.809Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Trackers category is detected - 
[task 2021-05-27T15:41:21.809Z] 15:41:21     INFO - TEST-PASS | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | Cookie restrictions category is detected - 
[task 2021-05-27T15:41:21.810Z] 15:41:21     INFO - Leaving test bound testThirdPartyCookies
[task 2021-05-27T15:41:21.815Z] 15:41:21     INFO - Buffered messages finished
[task 2021-05-27T15:41:21.815Z] 15:41:21     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/protectionsUI/browser_protectionsUI_state.js | This test exceeded the timeout threshold. It should be rewritten or split up. If that's not possible, use requestLongerTimeout(N), but only as a last resort. - 
```