Closed Bug 2094702 Opened 8 days ago Closed 6 days ago

test_font_loading_api.html fails when run twice in the same browser (mochitest-plain-repeat)

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

layout/style/test/test_font_loading_api.html gives its url() font sources fixed query strings (BitPattern.woff?test30.0, …) so that each one is a fresh, asynchronous load. When the test runs a second time in the same browser, as the upcoming mochitest-plain-repeat jobs do, the user font cache can still hold the fonts from the first run. FontFace.load() then completes synchronously: the "loading" status checks of TEST 30 and TEST 46 fail, and TEST 30 times out waiting for a loadingdone event.

The fix makes the font URLs unique to each load of the test page.

Blocks: 2095794

When the test runs twice in the same browser, the user font cache can serve the
url() sources loaded by the first run, so FontFace.load() completes
synchronously, the "loading" status checks fail, and TEST 30 then times out
waiting for a loadingdone event.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e790547cd8e2 https://hg.mozilla.org/integration/autoland/rev/02779418374f Make the font URLs of test_font_loading_api.html unique to each run of the test, r=firefox-style-system-reviewers,emilio.
Status: ASSIGNED → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: