<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Worker Script Loads (new Worker(...), importScripts(...)) should be classified as Scripts not Raw requests"
   href="https://bugs.webkit.org/show_bug.cgi?id=164425#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Worker Script Loads (new Worker(...), importScripts(...)) should be classified as Scripts not Raw requests"
   href="https://bugs.webkit.org/show_bug.cgi?id=164425">bug 164425</a>
              from <span class="vcard"><a class="email" href="mailto:joepeck&#64;webkit.org" title="Joseph Pecoraro &lt;joepeck&#64;webkit.org&gt;"> <span class="fn">Joseph Pecoraro</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=297336&amp;action=diff" name="attach_297336" title="[PATCH] Proposed Fix">attachment 297336</a> <a href="attachment.cgi?id=297336&amp;action=edit" title="[PATCH] Proposed Fix">[details]</a></span>
[PATCH] Proposed Fix

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=297336&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=297336&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/ChangeLog:17
&gt; +        A new CachedResource::WorkerScript type is added for `new Worker(...)` resources.
&gt; +        It is a CachedScript just like CachedResource::Script. The only difference is</span >

An alternative to this would be to give CachedScript a &quot;isWorker&quot; flag and set it. Not sure if people think that would be better or not.

<span class="quote">&gt; Source/WebCore/ChangeLog:30
&gt; +        This introduces ResourceLoaderContext to encapsulate the necessary scripting
&gt; +        environment context information necessary for loading. This can be set on</span >

After implementing this, it looks like ResourceLoaderContext is pretty similar to SecurityContext. We could consider using that instead.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>