Closed Bug 2086937 Opened 1 month ago Closed 23 days ago

[wpt-sync] Sync PR 64135 - Reduce flakiness for font cache bypass WPTs

Categories

(Core :: DOM: Security, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Hoch Hochkeppel <mhochk@microsoft.com> wrote:

Reduce flakiness for font cache bypass WPTs

At WPT import time, these tests were found to be flaky in Firefox due
to a race where document.fonts wasn't populated by the time it was
being queried. This change updates the tests to wait for the document to
load before making this query.

Verified locally that this results in consistent test results for both
Chromium and Firefox.

Bug: 576970892
Change-Id: Icbecda63f4af48be3de00b446fb819dc3443a429
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8638440
Reviewed-by: Kurt Catti-Schmidt \<kschmi@microsoft.com>
Commit-Queue: Hoch Hochkeppel \<mhochk@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1726239}

PR 64135 applied with additional changes from upstream: c787b1eb4a462324ea16236134115a4584808e70

Component: web-platform-tests → DOM: Security
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 7 tests and 1 subtests

Status Summary

Firefox

OK : 2[GitHub] 7[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 1[GitHub] 6[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 1

Chrome

OK : 2
PASS: 2

Safari

OK : 2
PASS: 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.