-
Notifications
You must be signed in to change notification settings - Fork 141
Review how manifoldjs processes the scope member of manifest.json #60
Comments
is this work already in 0.1.4? can we close? |
This issue is still open, but it is the next one in the list. |
Please let me know if anything is not clear in the spec. That part of the spec is quite new, so if something doesn't make sense or needs clarification, I'm all ears and happy to fix stuff. |
Thanks @marcoscaceres . After taking a look at the specs for the scope member, I have a few questions:
|
Yes, absolutely. All URLs are resolved against the manifest's URL. I.e., the browser just does: // manifestURL is the URL where the manifest is located, e.g., https://foo.com/manifest.json
var scope = new URL("*/*", manifestURL);
Yes. But they don't mean anything (i.e., it's not used for any kind of wild-card matching by the implementation). For example, this is what the browser does: //resolve against manifest URL
var scope = new URL("*/*", manifestURL);
// would just give:
"https://example.com/*/*" If you have a server that serves resources from "/", then it will work as normal on the Web.
The document from which the manifest is acquired. So, for instance, if the application is at "http://example.com/index.html", then that is the "document URL". That URL will be different from the manifest URL, which would be at, for example, "http://example.com/manifest.json". |
If it helps, here is my implementation of it in Gecko: |
…RLs that are not whitelisted
… in the scope member. Now, a relative path defined in the scope like "/somepath/" is now mapped to an access rule of the form "{baseUrl}/somepath/*", while absolute URLs like "http://mydomain.com" are mapped to "http://mydomain.com/*".
…those URLs that are not whitelisted
…hosted web apps platform. Now, a relative path defined in the scope like "/somepath/" is now mapped to a rule of the form "{baseUrl}/somepath/*" (where {baseUrl} is the base URL taken from start_url), while absolute URLs like "http://mydomain.com" are mapped to "http://mydomain.com/*".
This issue is to review the behavior of manifoldjs with the scope member, which was raised in issue #42
The text was updated successfully, but these errors were encountered: