Closed Bug 1857304 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 42368 - Fallback-url-to-local.html passes in an unintended way.

Categories

(Core :: Layout: Text and Fonts, task, P4)

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

ChangSeok Oh <changseok.oh@bytedance.com> wrote:

Fallback-url-to-local.html passes in an unintended way.

I found Blink passed the fallback-url-to-local.html test in an
unexpected way while investigating issue 1416842 [1]. It passes the test
by returning false at the end of FontFaceSet::check() instead of doing
false due to the failure of CheckFont() [2] above. This is because the
remote-font in the test is never resolved due to a parsing error caused
by the query part of the font-face src address. We can fix it by
stringifying the address and make Gecko and WebKit happy with the
assert_false test.

[1] https://crbug.com/1416842
[2] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/font_face_set.cc;drc=9ed4a90ee6aeaa3c1911d229dec6317d8fe8260d;l=251

Test: external/wpt/css/css-fonts/fallback-url-to-local.html

Bug: 1416842
Change-Id: Id158ec75273518929c8967a5b1e157f04d48dd81

Reviewed-on: https://chromium-review.googlesource.com/4917071
WPT-Export-Revision: 76c4569b9e7484ce35e2fc94966933a9a642706b

Component: web-platform-tests → Layout: Text and Fonts
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0ef6398a0783 [wpt PR 42368] - Fallback-url-to-local.html passes in an unintended way., a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.