Closed Bug 1912144 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 47517 - Do not wait for events to be dispatched to IDBRequest

Categories

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

task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Sihui Liu <sihui_liu@apple.com> wrote:

Do not wait for events to be dispatched to IDBRequest

The test expects event to be dispatched to IDBRequest after its execution context is stopped, but this is not standard behavior. WebKit and Blink can stop dispatching event as soon as iframe is detached (iframe.remove() is invoked), which leads to test timeout. To fix this, make the test wait on a new iframe with the same id to be loaded, so that there is enough time for request to be completed.

Also, since the goal of the test is to verify the accessor is valid after execution context is destroyed (no exception is thrown), update the check to validate the type of the result, instead of value of the result.

Component: web-platform-tests → Storage: IndexedDB
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS: 1

Chrome

OK : 1
PASS: 1

Safari

OK : 1
PASS: 1

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c35206632e13 [wpt PR 47517] - Do not wait for events to be dispatched to IDBRequest, a=testonly
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.