test_font_loading_api.html fails when run twice in the same browser (mochitest-plain-repeat)
Categories
(Core :: CSS Parsing and Computation, task)
Tracking
()
| 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.
| Assignee | ||
Comment 1•6 days ago
|
||
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.
Comment 3•6 days ago
|
||
| bugherder | ||
Description
•