Re: [whatwg/url] Return null origin of "blob:" URL containing inner "blob:" URL (PR #771)

@annevk commented on this pull request.



> @@ -3079,7 +3079,8 @@ is the <a for=/>origin</a> returned by running these steps, switching on <var>ur
    <li><p>Let <var>pathURL</var> be the result of <a lt="basic URL parser">parsing</a> the result of
    <a>URL path serializing</a> <var>url</var>.
 
-   <li><p>If <var>pathURL</var> is failure, then return a new <a>opaque origin</a>.
+   <li><p>If <var>pathURL</var> is failure, or <a>is not special</a> then return a new
+   <a>opaque origin</a>.

This suggests that `blob:ws://example` would have a non-opaque origin. I think we should just support HTTP(S) URLs here.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/771#pullrequestreview-1438526834
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/pull/771/review/1438526834@github.com>

Received on Tuesday, 23 May 2023 05:23:36 UTC