Closed Bug 1989537 Opened 8 months ago Closed 8 months ago

[wpt-sync] Sync PR 54946 - Use Keyboard Lock instead of Web Locks to disable BFCache in tests

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
145 Branch
Tracking Status
firefox145 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Anna Sato <annasato@chromium.org> wrote:

Use Keyboard Lock instead of Web Locks to disable BFCache in tests

This CL switches some BFCache-disabling test helpers to use
navigator.keyboard.lock() instead of navigator.locks.request().

With upcoming changes, Web Locks will no longer be a simple
BFCache-blocking feature. The new logic will evict a cached page holding
a lock only when another page requests it.

Bug: 443003971
Change-Id: Id9fb00d7b8fef391cb8b5280f22920b59c1d8e59
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6968130
Owners-Override: Fergal Daly \<fergal@google.com>
Reviewed-by: Fergal Daly \<fergal@chromium.org>
Reviewed-by: Mingyu Lei \<leimy@chromium.org>
Commit-Queue: Anna Sato \<annasato@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1517810}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 2 tests and 1 subtests

Status Summary

Firefox

TIMEOUT: 4

Chrome

OK : 2
PASS : 2

Safari

TIMEOUT: 4

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c5eb7e868e8b https://hg.mozilla.org/integration/autoland/rev/017eca1b346e [wpt PR 54946] - Use Keyboard Lock instead of Web Locks to disable BFCache in tests, a=testonly
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch
You need to log in before you can comment on or make changes to this bug.