You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By-and-large browsers treat data URLs as same-origin, though there
are some inconsistencies. This change will treat all data URLs,
regardless of origin, as same-origin from the perspective of Fetch.
HTML already assigns a unique opague origin to documents created from
a data URL and the plan of record is to do so for dedicated workers
too.
HTML will likely also forbid shared workers to be created from data
URLs.
See whatwg/html#1782 for the proposed changes
to HTML. (This has not landed yet, if that PR is tweaked further the
note added here might need some tweaks.)
Service workers already prevent anything but HTTP(S) URLs from
creating them.
Fixes#381.
<aclass="external" data-anolis-spec="url" href="https://url.spec.whatwg.org/#concept-url-scheme" title="concept-url-scheme">scheme</a> is "<code>data</code>" a
2499
+
unique <aclass="external" data-anolis-spec="html" href="https://html.spec.whatwg.org/multipage/browsers.html#concept-origin-opaque">opaque origin</a>, and prevents creation of shared workers
2500
+
from such <aclass="external" data-anolis-spec="url" href="https://url.spec.whatwg.org/#concept-url" title="concept-url">URLs</a>. Service workers can only be
2501
+
created from <aclass="external" data-anolis-spec="url" href="https://url.spec.whatwg.org/#concept-url" title="concept-url">URLs</a> whose
2502
+
<aclass="external" data-anolis-spec="url" href="https://url.spec.whatwg.org/#concept-url-scheme" title="concept-url-scheme">scheme</a> is an
0 commit comments