Open Bug 2089798 Opened 17 days ago Updated 6 days ago

New test failures: uncaught rejection: IndexedDB: main/content-classifier-lists [...]

Categories

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

defect

Tracking

()

ASSIGNED
Tracking Status
firefox-esr153 --- unaffected
firefox160 --- unaffected
firefox161 --- wontfix
firefox162 --- wontfix

People

(Reporter: manuel, Assigned: timhuang)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 external files)

There seem to be three new test failures appearing on Anti-Tracking tests that correlates with the enabling the new engine

https://tests.firefox.dev/failures.html#date=21days&q=main%2Fcontent-classifier-lists

  • uncaught rejection: IndexedDB: main/content-classifier-lists list() IndexedDB: execute() A request was aborted, for example through a call to IDBTransaction.abort. (278 failures across 8 tests in the past 3 days)
  • uncaught rejection: IndexedDB: main/content-classifier-lists importChanges() IndexedDB: execute() The application is shutting down (246 failures across 8 tests in the past 3 days)
  • uncaught rejection: IndexedDB: main/content-classifier-lists list() IndexedDB: execute() The application is shutting down (30 failures across 8 tests in the past 3 days)

It also affects mochitest (https://tests.firefox.dev/failures.html?kind=mochitest#date=21days&q=main%2Fcontent-classifier-lists):

  • Uncaught exception in setup - at resource://services-settings/IDBHelpers.sys.mjs:16 - InvalidStateError: IndexedDB: main/content-classifier-lists importChanges() IDBDatabase.transaction: Can't start a transaction on a closed database (1073 failures in dom/serviceworkers/test/browser_purgeTrackers_serviceWorkers.js)

:timhuang, since you are the author of the regressor, bug 2053164, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(tihuang)

Set release status flags based on info from the regressing bug 2053164

Flags: needinfo?(tihuang)
Severity: -- → S3
Priority: -- → P2

This patch makes xpcshell tests wait for cleanupTestTrackers(). With the
content classifier enabled it writes to the content-classifier-lists Remote
Settings collection, so an unawaited call at the end of a test raced
shutdown and surfaced as an uncaught IndexedDB rejection.

Assignee: nobody → tihuang
Status: NEW → ASSIGNED

This patch makes ContentClassifierTestUtils drop the stale Remote Settings
IndexedDB connection and retry once when publishing or unpublishing lists
fails with InvalidStateError. Services.qms.reset() in tests such as
browser_navigation_fetch_fault_handling.js closes every connection, but
Remote Settings keeps using its cached one, so a later
UrlClassifierTestUtils.addTestTrackers() failed with "Can't start a
transaction on a closed database".

See Also: → 2088757
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: