[Webkit-unassigned] [Bug 164425] Worker Script Loads (new Worker(...), importScripts(...)) should be classified as Scripts not Raw requests
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 16 11:45:44 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=164425
--- Comment #5 from Joseph Pecoraro <joepeck at webkit.org> ---
Comment on attachment 297336
--> https://bugs.webkit.org/attachment.cgi?id=297336
[PATCH] Proposed Fix
View in context: https://bugs.webkit.org/attachment.cgi?id=297336&action=review
> Source/WebCore/ChangeLog:17
> + A new CachedResource::WorkerScript type is added for `new Worker(...)` resources.
> + It is a CachedScript just like CachedResource::Script. The only difference is
An alternative to this would be to give CachedScript a "isWorker" flag and set it. Not sure if people think that would be better or not.
> Source/WebCore/ChangeLog:30
> + This introduces ResourceLoaderContext to encapsulate the necessary scripting
> + environment context information necessary for loading. This can be set on
After implementing this, it looks like ResourceLoaderContext is pretty similar to SecurityContext. We could consider using that instead.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161216/e36e6b7b/attachment-0001.html>
More information about the webkit-unassigned
mailing list