Closed Bug 1700551 Opened 4 years ago Closed 4 years ago

Intermittent toolkit/components/antitracking/test/browser/browser_serviceWorkersWithStorageAccessGranted.js | uncaught exception - NS_NOINTERFACE: Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface] at observe@chrome:

Categories

(Core :: Privacy: Anti-Tracking, defect, P2)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1731442

People

(Reporter: intermittent-bug-filer, Assigned: timhuang)

References

(Regression)

Details

(Keywords: intermittent-failure, regression, Whiteboard: [stockwell disabled])

Attachments

(1 file)

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


[task 2021-03-24T06:09:45.928Z] 06:09:45     INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_serviceWorkersWithStorageAccessGranted.js | The cookieJarSettings has the correct cookieBehavior - 
[task 2021-03-24T06:09:45.929Z] 06:09:45     INFO - Creating a 3rd party content
[task 2021-03-24T06:09:45.929Z] 06:09:45     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-03-24T06:09:45.929Z] 06:09:45     INFO - Console message: QM_TRY failure (WARNING): '"ToResult(cacheDir->Create(nsIFile::DIRECTORY_TYPE, 0755))"' at dom/cache/FileUtils.cpp:94 failed with result 0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS)
[task 2021-03-24T06:09:45.929Z] 06:09:45     INFO - Buffered messages finished
[task 2021-03-24T06:09:45.929Z] 06:09:45     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/antitracking/test/browser/browser_serviceWorkersWithStorageAccessGranted.js | uncaught exception - NS_NOINTERFACE: Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface] at observe@chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/antitracking_head.js:653:20
[task 2021-03-24T06:09:45.929Z] 06:09:45     INFO - 
[task 2021-03-24T06:09:45.930Z] 06:09:45     INFO - Stack trace:
[task 2021-03-24T06:09:45.930Z] 06:09:45     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:2112
[task 2021-03-24T06:09:45.930Z] 06:09:45     INFO - GECKO(7604) | JavaScript error: chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/antitracking_head.js, line 653: NS_NOINTERFACE: Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]
[task 2021-03-24T06:09:45.930Z] 06:09:45     INFO - GECKO(7604) | [Parent 6060, Main Thread] WARNING: Reentrancy error: some client attempted to display a message to the console while in a console listener. The following message was discarded: "[JavaScript Error: "NS_NOINTERFACE: Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]" {file: "chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/antitracking_head.js" line: 653}]
[task 2021-03-24T06:09:45.930Z] 06:09:45     INFO - GECKO(7604) | observe@chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/antitracking_head.js:653:20
[task 2021-03-24T06:09:45.930Z] 06:09:45     INFO - GECKO(7604) | ": file /builds/worker/checkouts/gecko/xpcom/base/nsConsoleService.cpp:294
[task 2021-03-24T06:09:45.930Z] 06:09:45     INFO - GECKO(7604) | [Child 5724, Main Thread] WARNING: early callback, or time went backwards: '!aAllowIdleDispatch', file /builds/worker/checkouts/gecko/xpcom/threads/IdleTaskRunner.cpp:179
[task 2021-03-24T06:09:45.930Z] 06:09:45     INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdParty.html” was blocked because it came from a tracker and content blocking is enabled."]
[task 2021-03-24T06:09:45.931Z] 06:09:45     INFO - GECKO(7604) | [Child 5724, Main Thread] WARNING: early callback, or time went backwards: '!aAllowIdleDispatch', file /builds/worker/checkouts/gecko/xpcom/threads/IdleTaskRunner.cpp:179
[task 2021-03-24T06:09:45.931Z] 06:09:45     INFO - GECKO(7604) | [Child 5724: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 21 (1c62083d000) [pid = 5724] [serial = 5052] [outer = 1c6228bf040]
[task 2021-03-24T06:09:45.931Z] 06:09:45     INFO - GECKO(7604) | [Child 5724: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 20 (1c6208e9400) [pid = 5724] [serial = 5029] [outer = 0] [url = http://example.net/browser/toolkit/components/antitracking/test/browser/page.html]
[task 2021-03-24T06:09:45.931Z] 06:09:45     INFO - GECKO(7604) | [Child 5724: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 19 (1c621f2a400) [pid = 5724] [serial = 5032] [outer = 0] [url = https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/referrer.sjs?what=iframe]
[task 2021-03-24T06:09:45.931Z] 06:09:45     INFO - GECKO(7604) | [Child 5724: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 18 (1c6197a6400) [pid = 5724] [serial = 5034] [outer = 0] [url = about:blank]
[task 2021-03-24T06:09:45.941Z] 06:09:45     INFO - GECKO(7604) | [Child 1852: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 243c5198c00 == 1 [pid = 1852] [id = 786] [url = about:newtab]
[task 2021-03-24T06:09:45.941Z] 06:09:45     INFO - GECKO(7604) | [Child 1852: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (243ce9843c0) [pid = 1852] [serial = 2354] [outer = 0] [url = about:newtab]
[task 2021-03-24T06:09:45.960Z] 06:09:45     INFO - Sending code to the 3rd party content

These failure hit when bug 1686191 had landed earlier today. Is it related and if yes, is the issue fixed in the relanding?

Flags: needinfo?(jvarga)

I'll take a look.

There are 75 total failures in the last 7 days on

  • linux1804-64 debug
  • windows10-64 debug and asan
  • windows10-64-qr opt and debug

Recent failure log: https://treeherder.mozilla.org/logviewer?job_id=334555942&repo=autoland&lineNumber=68472

[task 2021-03-26T13:53:52.338Z] 13:53:52 INFO - TEST-START | toolkit/components/antitracking/test/browser/browser_serviceWorkersWithStorageAccessGranted.js
[task 2021-03-26T13:53:52.394Z] 13:53:52 INFO - GECKO(1540) | [Child 10570: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f38f3e8e400 == 6 [pid = 10570] [id = 0] [url = https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdParty.html]
[task 2021-03-26T13:53:52.394Z] 13:53:52 INFO - GECKO(1540) | [Child 10570: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f38edcd5800 == 5 [pid = 10570] [id = 1] [url = https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyOpen.html]
[task 2021-03-26T13:53:52.395Z] 13:53:52 INFO - GECKO(1540) | [Child 10570: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f38ec89ac00 == 4 [pid = 10570] [id = 6] [url = https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdParty.html]
[task 2021-03-26T13:53:52.395Z] 13:53:52 INFO - GECKO(1540) | [Child 10570: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f38edcd5c00 == 3 [pid = 10570] [id = 2] [url = https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdParty.html]
[task 2021-03-26T13:53:52.395Z] 13:53:52 INFO - GECKO(1540) | [Child 10570: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f38ed2ae800 == 2 [pid = 10570] [id = 3] [url = https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdParty.html]
[task 2021-03-26T13:53:52.395Z] 13:53:52 INFO - GECKO(1540) | [Child 10570: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f38ed2b8800 == 1 [pid = 10570] [id = 5] [url = https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdPartyOpen.html]
[task 2021-03-26T13:53:52.395Z] 13:53:52 INFO - GECKO(1540) | [Child 10570: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f38ed2b3c00 == 0 [pid = 10570] [id = 4] [url = https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdParty.html]
[task 2021-03-26T13:53:52.510Z] 13:53:52 INFO - GECKO(1540) | [Child 10570: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 20 (7f38edcda400) [pid = 10570] [serial = 8] [outer = 0] [url = about:blank]

[task 2021-03-26T13:53:56.075Z] 13:53:56 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_serviceWorkersWithStorageAccessGranted.js | The browser object has the cookieJarSettings. -
[task 2021-03-26T13:53:56.075Z] 13:53:56 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_serviceWorkersWithStorageAccessGranted.js | The cookieJarSettings has the correct cookieBehavior -
[task 2021-03-26T13:53:56.076Z] 13:53:56 INFO - Creating a 3rd party content
[task 2021-03-26T13:53:56.076Z] 13:53:56 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-03-26T13:53:56.076Z] 13:53:56 INFO - Console message: QM_TRY failure (WARNING): '"ToResult(cacheDir->Create(nsIFile::DIRECTORY_TYPE, 0755))"' at dom/cache/FileUtils.cpp:94 failed with result 0x80520008 (NS_ERROR_FILE_ALREADY_EXISTS)
[task 2021-03-26T13:53:56.077Z] 13:53:56 INFO - Buffered messages finished
[task 2021-03-26T13:53:56.078Z] 13:53:56 INFO - TEST-UNEXPECTED-FAIL | toolkit/components/antitracking/test/browser/browser_serviceWorkersWithStorageAccessGranted.js | uncaught exception - NS_NOINTERFACE: Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface] at observe@chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/antitracking_head.js:653:20
[task 2021-03-26T13:53:56.078Z] 13:53:56 INFO -
[task 2021-03-26T13:53:56.078Z] 13:53:56 INFO - Stack trace:
[task 2021-03-26T13:53:56.079Z] 13:53:56 INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:2112
[task 2021-03-26T13:53:56.079Z] 13:53:56 INFO - GECKO(1540) | JavaScript error: chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/antitracking_head.js, line 653: NS_NOINTERFACE: Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]
[task 2021-03-26T13:53:56.082Z] 13:53:56 INFO - GECKO(1540) | [Parent 1540, Main Thread] WARNING: Reentrancy error: some client attempted to display a message to the console while in a console listener. The following message was discarded: "[JavaScript Error: "NS_NOINTERFACE: Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]" {file: "chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/antitracking_head.js" line: 653}]
[task 2021-03-26T13:53:56.083Z] 13:53:56 INFO - GECKO(1540) | observe@chrome://mochitests/content/browser/toolkit/components/antitracking/test/browser/antitracking_head.js:653:20
[task 2021-03-26T13:53:56.083Z] 13:53:56 INFO - GECKO(1540) | ": file /builds/worker/checkouts/gecko/xpcom/base/nsConsoleService.cpp:294
[task 2021-03-26T13:53:56.083Z] 13:53:56 INFO - GECKO(1540) | [Child 1682: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (7fdff4111800) [pid = 1682] [serial = 2058] [outer = 0] [url = about:newtab]
[task 2021-03-26T13:53:56.083Z] 13:53:56 INFO - GECKO(1540) | [Child 1682: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7fdff3f76800) [pid = 1682] [serial = 2057] [outer = 0] [url = about:blank]
[task 2021-03-26T13:53:56.084Z] 13:53:56 INFO - Console message: [JavaScript Warning: "Request to access cookie or storage on “https://tracking.example.org/browser/toolkit/components/antitracking/test/browser/3rdParty.html” was blocked because it came from a tracker and content blocking is enabled."]
[task 2021-03-26T13:53:56.084Z] 13:53:56 INFO - GECKO(1540) | [Child 10654: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f70f7b6c400 == 3 [pid = 10654] [id = 2]
[task 2021-03-26T13:53:56.085Z] 13:53:56 INFO - GECKO(1540) | [Child 10654: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 7 (7f70f86dc900) [pid = 10654] [serial = 7] [outer = 0]
[task 2021-03-26T13:53:56.086Z] 13:53:56 INFO - GECKO(1540) | [Child 10654: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 8 (7f70f7b6e400) [pid = 10654] [serial = 8] [outer = 7f70f86dc900]
[task 2021-03-26T13:53:56.086Z] 13:53:56 INFO - GECKO(1540) | [Parent 1540, Main Thread] WARNING: WebProgress Ignored: no longer current window global: file /builds/worker/checkouts/gecko/dom/ipc/BrowserParent.cpp:2884
[task 2021-03-26T13:53:56.087Z] 13:53:56 INFO - GECKO(1540) | [Child 10654: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 9 (7f70f7b73400) [pid = 10654] [serial = 9] [outer = 7f70f86dc900]
[task 2021-03-26T13:53:56.087Z] 13:53:56 INFO - Sending code to the 3rd party content
[task 2021-03-26T13:53:56.087Z] 13:53:56 INFO - GECKO(1540) | [Child 10654, Main Thread] WARNING: 'storageAllowed != StorageAccess::eAllow', file /builds/worker/checkouts/gecko/dom/serviceworkers/ServiceWorkerContainer.cpp:653
[task 2021-03-26T13:53:56.089Z] 13:53:56 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_serviceWorkersWithStorageAccessGranted.js | ServiceWorker cannot be used in sandbox iframe! - true == true -
[task 2021-03-26T13:53:56.090Z] 13:53:56 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_serviceWorkersWithStorageAccessGranted.js | Some console message should be generated -
[task 2021-03-26T13:53:56.090Z] 13:53:56 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_serviceWorkersWithStorageAccessGranted.js | Message should be of expected category -
[task 2021-03-26T13:53:56.090Z] 13:53:56 INFO - TEST-PASS | toolkit/components/antitracking/test/browser/browser_serviceWorkersWithStorageAccessGranted.js | Checking cookie blocking notifications -
[task 2021-03-26T13:53:56.091Z] 13:53:56 INFO - Removing the tab
[task 2021-03-26T13:53:56.091Z] 13:53:56 INFO - Leaving test bound

Jan are there any updates here?

Regressed by: 1686191
Whiteboard: [stockwell needswork:owner]
Has Regression Range: --- → yes

From a quick skim it seems like the antitracking code here is assuming all console messages will be nsIScriptError instances when that's not the case (they could be nsIConsoleMessage; nsIScriptError extends nsIConsoleMessage). I'm not sure how much drift there is between the reported line numbers and the current trunk.

But this seems like an anti-tracking testing infrastructure bug and not a Jan bug. Clearing needinfo and priorities so this can get triaged.

Severity: S4 → --
Flags: needinfo?(jvarga)
Priority: P5 → P1

(Meant to clear priority to allow re-triaging, not set priority to P1!)

Priority: P1 → --
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/e2dc9724ed3b disable browser_serviceWorkersWithStorageAccessGranted.js on debug for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Whiteboard: [stockwell disable-recommended] → [stockwell disabled]
Severity: -- → S3
Priority: -- → P2
Assignee: nobody → tihuang
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: