Bug 276607
Summary: | Unable to load a font face on nxp imx8mp platform | ||
---|---|---|---|
Product: | WebKit | Reporter: | Pawel Lampe <plampe> |
Component: | WPE WebKit | Assignee: | Pawel Lampe <plampe> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | bugs-noreply |
Priority: | P2 | ||
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Pawel Lampe
When WebKit WPE port is built using gcc 13.2.0 for nxp imx8mp (aarch64-poky-linux-gcc, aarch64-poky-linux-g++) font face API is basically not working as it's not loading font faces.
It turns out the problem is here: https://github.com/WebKit/WebKit/blob/9878e30a6f7350aca54e860251f34971e6aed1f6/Source/WebCore/css/FontFace.cpp#L87 and what happens is, dataRequiresAsynchronousLoading lambda capture (by reference) behaves as if it was capture by copy and therefore even tho we set the value to false in lambda, the dataRequiresAsynchronousLoading is true after WTF::switchOn() call... So it's likely some compiler bug as e.g. disabling optimizations for that function using #pragma GCC optimize ("O0") helps.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Pawel Lampe
Pull request: https://github.com/WebKit/WebKit/pull/30819
EWS
Committed 281080@main (7cf0e3722de9): <https://commits.webkit.org/281080@main>
Reviewed commits have been landed. Closing PR #30819 and removing active labels.