[wpt-sync] Sync PR 18696 - Ensure font loading promises are rejected in valid execution context
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox71 fixed)
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 18696 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/18696
Details from upstream follow.
Dominik Röttsches <drott@chromium.org> wrote:
Ensure font loading promises are rejected in valid execution context
The promise resolution was already wrapped in calling it inside the
right execution context, but the reject was not. Add the correct
execution context and schedule rejecting the promise if font loading for
a local() font fails when it is triggered by an implicit UA-triggered
load.Spec reference:
https://drafts.csswg.org/css-font-loading/#font-face-load
in particular the last normative paragraph: "User agents can initiate
font loads on their own, whenever they determine that a given font face
is necessary to render something on the page. When this happens, they
must act as if they had called the corresponding FontFace’s load()
method described here."Thanks to Roel Nieskens (pixelambacht@) for the helpful bug report and
reproduction test case.Bug: 996687
Change-Id: Icb5d75675b8a2e0b3f100808645a1e2e550cfcd1Reviewed-on: https://chromium-review.googlesource.com/1771607
WPT-Export-Revision: 906827bbb9c53b259cb49490c78d4635e35fcfdc
Assignee | ||
Comment 1•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=f42db1ab3e7cfc8c0649a2d5fd678406ee498c88
Assignee | ||
Comment 2•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=1ce6854c929ac0c40f070c353e7ce6f159cc563a
Assignee | ||
Comment 3•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=a9b797c6edbd81cf310373f6b39e51b56973d009
Assignee | ||
Comment 4•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=94b19552e2e5fc246382aed6ab6c12b7ee18bfea
Assignee | ||
Comment 5•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=ae3facd6ae56abad75e23ddf17696389e3f72c4d
Assignee | ||
Comment 6•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=f57520ae74a6af7d1355f8aceaa40c3997166615
Assignee | ||
Comment 7•5 years ago
|
||
Ran 1 tests and 1 subtests OK : 1 PASS : 1
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/ebe7469cc4f9 [wpt PR 18696] - Ensure font loading promises are rejected in valid execution context, a=testonly
Comment 9•5 years ago
|
||
bugherder |
Description
•