-
Notifications
You must be signed in to change notification settings - Fork 162
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
define URL Scope (closes #114) #291
Conversation
marcoscaceres
commented
Dec 19, 2014
- First go at defining this based on extensive discussions over the last year.
The user agent MUST navigate the application context as per [[!HTML]]'s | ||
navigate algorithm with exceptions enabled. If the URL being navigated | ||
to is not in scope of the navigation scope, then the user agent MUST | ||
behave as if the application context is not <a>allowed to navigate</a>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than simply not navigate, could a user agent load the URL in another browsing context, so as not to break hyperlinks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They could be opened in another window... or like the default user agent. Maybe that needs rephrasing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm hoping HTML spec will define that for us as part of the navigate algo. This whole section will go away once this get's fixed in HTML.
Does this leave the door open to also explore "capturing" navigations from non-application browsing contexts to a URL inside an application's navigation scope, so that they can be opened in a new or existing application context? The use case for this would be that a web application has been installed from foo.com/bar with a scope of /bar and a browsing context tries to navigate to foo.com/bar/baz.html. The user agent may wish to navigate to this URL in an application context with the manifest applied. In other words, it would allow deep linking into an app. |
Can an application context create another application context? E.g. via window.open() or <a target="_blank"> to a URL inside the navigation scope? |
On Friday, December 19, 2014, Ben Francis notifications@github.com wrote:
|
On Friday, December 19, 2014, Ben Francis notifications@github.com wrote:
Let's explore this in the deep linking bug. I'm on my phone so don't have
|
to is not in scope of the navigation scope, then the user agent MUST | ||
behave as if the application context is not <a>allowed to navigate</a>. | ||
If during the <a>handle redirects</a> step of HTML's navigate | ||
algorithm, if the the redirect URL is not in scope, abort HTML's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2x the
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
d7eed36
to
72d65ad
Compare
define URL Scope (closes #114)