Skip to content
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

Merged
merged 1 commit into from
Dec 20, 2014
Merged

define URL Scope (closes #114) #291

merged 1 commit into from
Dec 20, 2014

Conversation

marcoscaceres
Copy link
Member

  • 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>.
Copy link
Member

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?

Copy link
Collaborator

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

Copy link
Member Author

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.

@benfrancis
Copy link
Member

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.

@benfrancis
Copy link
Member

Can an application context create another application context? E.g. via window.open() or <a target="_blank"> to a URL inside the navigation scope?

@marcoscaceres
Copy link
Member Author

On Friday, December 19, 2014, Ben Francis notifications@github.com wrote:

Can an application context create another application context? E.g. via
window.open() or to a URL inside the navigation scope?

No, right now they can only create auxiliary browsing contexts (or whatever
open() creates). But you could link into the browser or another application
context.


Reply to this email directly or view it on GitHub
#291 (comment).

@marcoscaceres
Copy link
Member Author

On Friday, December 19, 2014, Ben Francis notifications@github.com wrote:

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?

Yes. Should be doable.

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.

Let's explore this in the deep linking bug. I'm on my phone so don't have
the bug number.


Reply to this email directly or view it on GitHub
#291 (comment).

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2x the

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

marcoscaceres pushed a commit that referenced this pull request Dec 20, 2014
define URL Scope (closes #114)
@marcoscaceres marcoscaceres merged commit 3f33f1b into gh-pages Dec 20, 2014
@marcoscaceres marcoscaceres deleted the url_scope branch December 20, 2014 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants