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
{{ message }}
Repository navigation
about:blank" or "about:srcdoc" with query string or fragment should be potentially trustworthy #81
If url is "about:blank" or "about:srcdoc" return "Potentially Trustworthy".
I think the spec is not really explicit here (compare with other places where we talk about host component or scheme), but I understand the intention is to accept query string or fragment too.
So maybe it should be
if the url is made of an "about" scheme, a path matching "blank" or "srcdoc" and optional query/fragment then return "Potentially Trustworthy".
(Note: Chromium currently just checks if the scheme is "about" but ideally it should use these
This sounds reasonable. HTML does some checks for about:blank too and I've wondered about this same thing, but never gotten around to writing tests and such.
It should be possible to navigate a browsing context to about:blank?something, no?
I do think that as I mentioned elsewhere this should probably not end up as a secure context because of that, but rather because of who did the navigating. So ultimately this might indeed not be testable much.
Activity
fred-wang commentedon Nov 30, 2020
@annevk @mikewest Any opinion on this ?
annevk commentedon Nov 30, 2020
This sounds reasonable. HTML does some checks for about:blank too and I've wondered about this same thing, but never gotten around to writing tests and such.
(Fetch does do the thing you suggest at https://fetch.spec.whatwg.org/#concept-scheme-fetch and I suspect we want to adopt the same language.)
Prepare code to improve handling of potentially trustworthy url/origin
annevk commentedon Jan 12, 2021
Did you write tests for this by any chance @fred-wang? I can take care of updating the specification.
fred-wang commentedon Jan 12, 2021
@annevk Only internal c++ tests for chromium.
Adapt test expectations to only consider about:{blank,srcdoc} secure
Adapt test expectations to only consider about:{blank,srcdoc} secure
Adapt test expectations to only consider about:{blank,srcdoc} secure
Adapt test expectations to only consider about:{blank,srcdoc} secure
Adapt test expectations to only consider about:{blank,srcdoc} secure
Adapt test expectations to only consider about:{blank,srcdoc} secure
Adapt test expectations to only consider about:{blank,srcdoc} secure
Adapt test expectations to only consider about:{blank,srcdoc} secure
fred-wang commentedon Apr 30, 2021
@annevk IIUC, one reviewer mentioned this is probably not web-observable, so not sure we need to or can write WPT tests...
annevk commentedon May 10, 2021
It should be possible to navigate a browsing context to
about:blank?something, no?I do think that as I mentioned elsewhere this should probably not end up as a secure context because of that, but rather because of who did the navigating. So ultimately this might indeed not be testable much.