Closed Bug 1401208 Opened 7 years ago Closed 7 years ago

Change default scope handling for standalone mode

Categories

(Firefox for Android Graveyard :: Web Apps (PWAs), enhancement)

enhancement
Not set
normal

Tracking

(firefox57 fixed)

RESOLVED FIXED
Firefox 57
Tracking Status
firefox57 --- fixed

People

(Reporter: snorp, Assigned: snorp)

Details

Attachments

(1 file)

The web manifest spec states that if the scope is undefined, then all navigations should be considered in-scope[0]. Later on it says that if scope is undefined in a non-browser display mode, it is "recommended that user agents signal to the end-user when security and/or privacy sensitive navigations occur". Chrome handles this by showing the mini urlbar, which is also what it does for out-of-scope navigations. We should handle this by dumping out to Custom Tab. I propose we simply change the default scope to be the parent of the start_url.

[0] https://www.w3.org/TR/appmanifest/#navigation-scope
Marcos, do you have an opinion on this?
Flags: needinfo?(mcaceres)
Comment on attachment 8909815 [details]
Bug 1401208 - Change default web app scope to the start_url

https://reviewboard.mozilla.org/r/181322/#review186542
Attachment #8909815 - Flags: review?(esawin) → review+
Pushed by jwillcox@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/50d08bf45f3d
Change default web app scope to the start_url r=esawin
https://hg.mozilla.org/mozilla-central/rev/50d08bf45f3d
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
> I propose we simply change the default scope to be the parent of the start_url.

Sorry, I'm not sure what "the parent of the start_url" means exactly. I'm going to assume you mean the origin. 

I seem to recall there was issues with using "origin" if a developer had two applications hosted on the same domain:

foo.com/app1/ (fullscreen)
foo.com/app2/ (mininal-ui)

However, we can still experiment to see what is best, and them work with the Chrome folks to update the spec to match.
Flags: needinfo?(mcaceres)
(In reply to Marcos Caceres [:marcosc] from comment #6)
> > I propose we simply change the default scope to be the parent of the start_url.
> 
> Sorry, I'm not sure what "the parent of the start_url" means exactly. I'm
> going to assume you mean the origin. 

I mean if the start_url is foo.com/app1/foo.html, we would use foo.com/app1 as the default scope. Maybe origin is better, though.

> 
> I seem to recall there was issues with using "origin" if a developer had two
> applications hosted on the same domain:
> 
> foo.com/app1/ (fullscreen)
> foo.com/app2/ (mininal-ui)
> 
> However, we can still experiment to see what is best, and them work with the
> Chrome folks to update the spec to match.

In that case the developer can just set the scope explicitly to avoid any problems.
I did a bit more digging about the state of the discussions around scope (I've been focusing on Payments, so haven't paid much attention to manifest in the last year). 

In: 
https://github.com/w3c/manifest/issues/551

Google folks had proposed using the "parent directory" (this isn't really a viable thing in URLs, so I don't think that will work)... however, in the end, they didn't end up changing anything.

However, 551 above does provide some good input into the discussion.
Assignee: nobody → snorp
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: