<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>231642</bug_id>
          
          <creation_ts>2021-10-12 16:02:38 -0700</creation_ts>
          <short_desc>imported/w3c/web-platform-tests/content-security-policy/unsafe-hashes/javascript_src_allowed-href_blank.html timing out</short_desc>
          <delta_ts>2022-05-16 08:50:33 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kate Cheney">katherine_cheney</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>justas543</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1803514</commentid>
    <comment_count>0</comment_count>
    <who name="Kate Cheney">katherine_cheney</who>
    <bug_when>2021-10-12 16:02:38 -0700</bug_when>
    <thetext>Timing out with the error: null is not an object (evaluating &apos;opener.t1&apos;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806389</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-10-19 16:03:32 -0700</bug_when>
    <thetext>&lt;rdar://problem/84437936&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869084</commentid>
    <comment_count>2</comment_count>
    <who name="">justas543</who>
    <bug_when>2022-05-15 10:41:23 -0700</bug_when>
    <thetext>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

&lt;!-- We use the full link to the CSS file in the rest of the tags --&gt;
&lt;link rel=&quot;preload&quot;
      as=&quot;style&quot;
      href=&quot;https://fonts.googleapis.com/css2?family=Merriweather&amp;display=swap&quot; /&gt;

&lt;link rel=&quot;stylesheet&quot;
      href=&quot;https://fonts.googleapis.com/css2?family=Merriweather&amp;display=swap&quot;
      media=&quot;print&quot; onload=&quot;this.media=&apos;all&apos;&quot; /&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869239</commentid>
    <comment_count>3</comment_count>
    <who name="Kate Cheney">katherine_cheney</who>
    <bug_when>2022-05-16 08:50:33 -0700</bug_when>
    <thetext>(In reply to justas543 from comment #2)
&gt; Without unsafe-hashes CSP option, loading fonts in non blocking way while
&gt; keeping up with CSP is not possible.
&gt; 
&gt; https://css-tricks.com/how-to-load-fonts-in-a-way-that-fights-fout-and-makes-
&gt; lighthouse-happy/#aa-the-optimal-way-to-load-fonts
&gt; 
&gt; &lt;!-- We use the full link to the CSS file in the rest of the tags --&gt;
&gt; &lt;link rel=&quot;preload&quot;
&gt;       as=&quot;style&quot;
&gt;      
&gt; href=&quot;https://fonts.googleapis.com/css2?family=Merriweather&amp;display=swap&quot; /&gt;
&gt; 
&gt; &lt;link rel=&quot;stylesheet&quot;
&gt;      
&gt; href=&quot;https://fonts.googleapis.com/css2?family=Merriweather&amp;display=swap&quot;
&gt;       media=&quot;print&quot; onload=&quot;this.media=&apos;all&apos;&quot; /&gt;

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&apos;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!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>