[Bug 15095] Allow data: URL for new Worker(). Supported by Opera and Firefox.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15095

--- Comment #2 from Simon Pieters <simonp@opera.com> 2011-12-08 09:16:08 UTC ---
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1274 - currently
Firefox returns the empty string, Opera returns the full data: URL (although I
think we have changed that to return 'null' instead). Since workers can use
XHR, EventSource and WebSocket, I think it would be better to use the origin of
the entry script.

Opera currently doesn't allow data: for shared workers (and Firefox doesn't
support shared workers at all), but we have discussed adding support for it,
but here it's more important than with dedicated workers that the origin is
that of the caller, so that different origin pages that use the same data: URL
for a shared worker don't actually share the worker, but use separate ones.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 8 December 2011 09:16:22 UTC