Intermittent toolkit/components/antitracking/test/browser/browser_contentBlockingTelemetry.js | Uncaught exception - undefined - timed out after 50 tries.
Categories
(Core :: Privacy: Anti-Tracking, defect, P5)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr78 | --- | unaffected |
| firefox84 | --- | unaffected |
| firefox85 | --- | unaffected |
| firefox86 | --- | fixed |
| firefox87 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: emz)
References
(Regression)
Details
(Keywords: intermittent-failure, regression, Whiteboard: [retriggered][stockwell needswork:owner])
Attachments
(1 file)
Filed by: apavel [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=326779017&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/B9jgxTuARSOeylW7H9Qd2A/runs/0/artifacts/public/logs/live_backing.log
[task 2021-01-15T06:02:04.714Z] 06:02:04 INFO - TEST-START | toolkit/components/antitracking/test/browser/browser_contentBlockingTelemetry.js
[task 2021-01-15T06:02:13.462Z] 06:02:13 INFO - TEST-INFO | started process screencapture
[task 2021-01-15T06:02:13.554Z] 06:02:13 INFO - TEST-INFO | screencapture: exit 0
[task 2021-01-15T06:02:13.555Z] 06:02:13 INFO - Buffered messages logged at 06:02:04
[task 2021-01-15T06:02:13.555Z] 06:02:13 INFO - Entering test bound setup
[task 2021-01-15T06:02:13.555Z] 06:02:13 INFO - Leaving test bound setup
[task 2021-01-15T06:02:13.556Z] 06:02:13 INFO - Entering test bound testTelemetryForStorageAccessAPI
[task 2021-01-15T06:02:13.556Z] 06:02:13 INFO - Starting testing if storage access API send telemetry probe ...
[task 2021-01-15T06:02:13.556Z] 06:02:13 INFO - Creating a new tab
[task 2021-01-15T06:02:13.556Z] 06:02:13 INFO - Loading the tracking iframe and call the RequestStorageAccess.
[task 2021-01-15T06:02:13.556Z] 06:02:13 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://example.net/browser/toolkit/components/antitracking/test/browser/page.html" line: 0}]
[task 2021-01-15T06:02:13.556Z] 06:02:13 INFO - Sending code to the 3rd party content
[task 2021-01-15T06:02:13.565Z] 06:02:13 INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyUI.html” was blocked because it came from a tracker and content blocking is enabled."]
[task 2021-01-15T06:02:13.565Z] 06:02:13 INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyUI.html” was blocked because it came from a tracker and content blocking is enabled."]
[task 2021-01-15T06:02:13.565Z] 06:02:13 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_contentBlockingTelemetry.js | requestStorageAccess should not throw - true == true -
[task 2021-01-15T06:02:13.565Z] 06:02:13 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_contentBlockingTelemetry.js | Should not have worked without user interaction - true == true -
[task 2021-01-15T06:02:13.566Z] 06:02:13 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_contentBlockingTelemetry.js | Doesn't yet have storage access - true == true -
[task 2021-01-15T06:02:13.566Z] 06:02:13 INFO - Let's interact with the tracker
[task 2021-01-15T06:02:13.566Z] 06:02:13 INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyUI.html” was blocked because it came from a tracker and content blocking is enabled."]
[task 2021-01-15T06:02:13.566Z] 06:02:13 INFO - Buffered messages logged at 06:02:05
[task 2021-01-15T06:02:13.566Z] 06:02:13 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: "https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyOpenUI.html?messageme" line: 0}]
[task 2021-01-15T06:02:13.567Z] 06:02:13 INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyUI.html” was blocked because it came from a tracker and content blocking is enabled."]
[task 2021-01-15T06:02:13.567Z] 06:02:13 INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyUI.html” was blocked because it came from a tracker and content blocking is enabled."]
[task 2021-01-15T06:02:13.567Z] 06:02:13 INFO - Console message: [JavaScript Warning: "Storage access granted for origin “https://tracking.example.org” on “http://example.net”."]
[task 2021-01-15T06:02:13.567Z] 06:02:13 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_contentBlockingTelemetry.js | Should have storage access now - true == true -
[task 2021-01-15T06:02:13.567Z] 06:02:13 INFO - Removing the tab
[task 2021-01-15T06:02:13.567Z] 06:02:13 INFO - Trigger the 'idle-daily' to trigger the telemetry probe.
[task 2021-01-15T06:02:13.567Z] 06:02:13 INFO - Buffered messages finished
[task 2021-01-15T06:02:13.568Z] 06:02:13 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/antitracking/test/browser/browser_contentBlockingTelemetry.js | Uncaught exception - undefined - timed out after 50 tries.
[task 2021-01-15T06:02:13.568Z] 06:02:13 INFO - Leaving test bound testTelemetryForStorageAccessAPI
[task 2021-01-15T06:02:13.568Z] 06:02:13 INFO - Entering test bound testTelemetryForWindowOpenHeuristic
[task 2021-01-15T06:02:13.568Z] 06:02:13 INFO - Starting testing if window open heuristic send telemetry probe ...
[task 2021-01-15T06:02:13.568Z] 06:02:13 INFO - Creating a new tab
[task 2021-01-15T06:02:13.568Z] 06:02:13 INFO - Loading the tracking iframe and trigger the heuristic
[task 2021-01-15T06:02:13.568Z] 06:02:13 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://example.net/browser/toolkit/components/antitracking/test/browser/page.html" line: 0}]
[task 2021-01-15T06:02:13.568Z] 06:02:13 INFO - Checking if storage access is denied
[task 2021-01-15T06:02:13.639Z] 06:02:13 INFO - Sending code to the 3rd party content
[task 2021-01-15T06:02:13.639Z] 06:02:13 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_contentBlockingTelemetry.js | Doesn't yet have storage access - true == true -
[task 2021-01-15T06:02:13.639Z] 06:02:13 INFO - Let's do a window.open()
[task 2021-01-15T06:02:13.640Z] 06:02:13 INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyWO.html” was blocked because it came from a tracker and content blocking is enabled."]
[task 2021-01-15T06:02:13.681Z] 06:02:13 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: "https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyOpen.html" line: 0}]
[task 2021-01-15T06:02:13.681Z] 06:02:13 INFO - The popup has been dismissed!
[task 2021-01-15T06:02:13.681Z] 06:02:13 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_contentBlockingTelemetry.js | Doesn't yet have storage access - true == true -
[task 2021-01-15T06:02:13.681Z] 06:02:13 INFO - Let's interact with the tracker
[task 2021-01-15T06:02:13.682Z] 06:02:13 INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyWO.html” was blocked because it came from a tracker and content blocking is enabled."]
[task 2021-01-15T06:02:13.756Z] 06:02:13 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: "https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyOpenUI.html?messageme" line: 0}]
[task 2021-01-15T06:02:13.756Z] 06:02:13 INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyWO.html” was blocked because it came from a tracker and content blocking is enabled."]
[task 2021-01-15T06:02:13.762Z] 06:02:13 INFO - Let's do another window.open()
[task 2021-01-15T06:02:13.762Z] 06:02:13 INFO - Console message: [JavaScript Warning: "Storage access automatically granted for origin “https://tracking.example.org” on “http://example.net”."]
[task 2021-01-15T06:02:13.787Z] 06:02:13 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: "https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyOpen.html" line: 0}]
[task 2021-01-15T06:02:13.787Z] 06:02:13 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_contentBlockingTelemetry.js | Has storage access - true == true -
[task 2021-01-15T06:02:13.787Z] 06:02:13 INFO - Removing the tab
[task 2021-01-15T06:02:13.788Z] 06:02:13 INFO - Trigger the 'idle-daily' to trigger the telemetry probe.
[task 2021-01-15T06:02:20.890Z] 06:02:20 INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-01-15T06:02:20.890Z] 06:02:20 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/antitracking/test/browser/browser_contentBlockingTelemetry.js | Uncaught exception - undefined - timed out after 50 tries.```
Updated•4 years ago
|
Updated•4 years ago
|
| Comment hidden (Intermittent Failures Robot) |
Comment 2•4 years ago
|
||
Set release status flags based on info from the regressing bug 1679512
| Assignee | ||
Comment 3•4 years ago
|
||
I don't see how this is directly related to Bug 1679512. Perhaps the timing changed a bit?
Tim, since you implemented the test, do you have an idea what could make it intermittent? The failure rate seems relatively low, so I'm not sure if this is worth prioritizing.
Updated•4 years ago
|
Comment 4•4 years ago
|
||
From the test code, it doesn't look to me that this is caused by Bug1679512. However, the test browser_contentBlockingTelemetry.js runs after the test browser_contentBlockingAllowListPrincipal.js. So, it could be the case that there are some uncleared states of test 'browser_contentBlockingAllowListPrincipal.js' that cause this intermittent.
| Assignee | ||
Comment 5•4 years ago
|
||
(In reply to Tim Huang[:timhuang] from comment #4)
From the test code, it doesn't look to me that this is caused by Bug1679512. However, the test
browser_contentBlockingTelemetry.jsruns after the testbrowser_contentBlockingAllowListPrincipal.js. So, it could be the case that there are some uncleared states of test 'browser_contentBlockingAllowListPrincipal.js' that cause this intermittent.
Good observation! I can reproduce the failure if I run the two tests in that order.
It seems like we get a higher telemetry value than expected for the storageAccessAPI probe. Which is weird because the test clears telemetry as part of the setup.
browser_contentBlockingAllowListPrincipal.js doesn't interact with that API. However, if I skip test_windowOpen the telemetry test passes.
This seems to be timing related, I can only reproduce it if my CPU isn't busy and I'm running an opt build.
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 8•4 years ago
|
||
Updated•4 years ago
|
Comment 10•4 years ago
|
||
| bugherder | ||
Updated•4 years ago
|
Comment 11•4 years ago
|
||
| bugherder uplift | ||
| Comment hidden (Intermittent Failures Robot) |
Description
•