NEW 231642
imported/w3c/web-platform-tests/content-security-policy/unsafe-hashes/javascript_src_allowed-href_blank.html timing out
https://bugs.webkit.org/show_bug.cgi?id=231642
Summary imported/w3c/web-platform-tests/content-security-policy/unsafe-hashes/javascr...
Kate Cheney
Reported 2021-10-12 16:02:38 PDT
Timing out with the error: null is not an object (evaluating 'opener.t1')
Attachments
Radar WebKit Bug Importer
Comment 1 2021-10-19 16:03:32 PDT
justas543
Comment 2 2022-05-15 10:41:23 PDT
Without unsafe-hashes CSP option, loading fonts in non blocking way while keeping up with CSP is not possible. https://css-tricks.com/how-to-load-fonts-in-a-way-that-fights-fout-and-makes-lighthouse-happy/#aa-the-optimal-way-to-load-fonts <!-- We use the full link to the CSS file in the rest of the tags --> <link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Merriweather&display=swap" /> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Merriweather&display=swap" media="print" onload="this.media='all'" />
Kate Cheney
Comment 3 2022-05-16 08:50:33 PDT
(In reply to justas543 from comment #2) > Without unsafe-hashes CSP option, loading fonts in non blocking way while > keeping up with CSP is not possible. > > https://css-tricks.com/how-to-load-fonts-in-a-way-that-fights-fout-and-makes- > lighthouse-happy/#aa-the-optimal-way-to-load-fonts > > <!-- We use the full link to the CSS file in the rest of the tags --> > <link rel="preload" > as="style" > > href="https://fonts.googleapis.com/css2?family=Merriweather&display=swap" /> > > <link rel="stylesheet" > > href="https://fonts.googleapis.com/css2?family=Merriweather&display=swap" > media="print" onload="this.media='all'" /> Hi! We added support for unsafe-hashes in Safari 15.4 (https://developer.apple.com/documentation/safari-release-notes/safari-15_4-release-notes). If you're experiencing unexpected behavior, could you file a separate bug on bugs.webkit.org about it? This particular bug tracks a failing test and is not the best place to handle a different issue. Thanks!
Note You need to log in before you can comment on or make changes to this bug.