Closed Bug 1592424 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 19985 - [IndexedDB] Avoid race condition redux

Categories

(Core :: Storage: IndexedDB, task, P4)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 19985 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/19985
Details from upstream follow.

Joshua Bell <jsbell@chromium.org> wrote:

[IndexedDB] Avoid race condition redux

One of the async subtests leaves a getter on Object.prototype across turns of the event loop, which can lead to flaky behavior. Scope the lifetime of the getter to a synchronous call following a pattern used elsewhere in the test file.

Pulling the test case into a separate file is insufficient as the getter can interfere with both the test harness and the webdriver implementation (specifically, chromedriver).

Component: web-platform-tests → DOM: IndexedDB
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.