-
Notifications
You must be signed in to change notification settings - Fork 2.9k
"Source browsing context" not well defined #632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tested what the answer is in various browsers? Retrospec is the best spec :) |
So far, I only tested blink, and the answer is that we don't have a consistent rule :) |
Paging @bzbarsky, Savior of the Universe. |
So... I can't recall offhand what the source browsing context is used for (anything other than referrer?). I expect that Gecko tries to get referrer from "the thing that started the navigation", but that's a slightly vague concept at times. Past that, the spec typically does define what the source browsing context is. The question is whether it matches browsers or not. For example, if you set Or if you navigate by setting For comparison, https://html.spec.whatwg.org/multipage/embedded-content.html#the-embed-element-setup-steps does specify (step 2 of the image/svg+xml steps): "Navigate the nested browsing context to the fetched resource, with replacement enabled, and with the embed element's node document's browsing context as the source browsing context." There's similar language in the processing of Not sure whether this helps or not. Basically, every spot that invokes the navigation algorithm needs to decide what this value should be.... |
@jeisinger, eager to attempt making some sense of this in a PR? :) |
This is #1130 which arguably is a duplicate of this, except that it is a lot more clear. |
@jeisinger are you okay with closing this in favor of that issue? |
of course |
In https://html.spec.whatwg.org/#source-browsing-context it says that every navigation has a source browsing context, which is the browsing context responsible for starting the navigation.
Is it possible to define this further. Especially, if a navigation is triggered from a script, what is the source browsing context? The responsible browsing context of the entered settings object?
The text was updated successfully, but these errors were encountered: