[whatwg] Foreign fallback appcache entries

Michael Nordman michaeln at google.com
Thu Sep 30 23:57:02 PDT 2010


Right you are!

That's pathological content, listing a page as a fallback but having
that page refer to a different manifest. What behavior results from
the currently spec'd algorithms, repeatedly trying to load the url,
finding the fallback, detecting foreign'ness and retrying? Or is the
foreign bit examined when loading fallbacks for top level pages?

Good, the latter. Looks like foreign fallbacks resources are weeded
out in 6.5.1 Navigating across documents, step 16.

So you're looking for  a note that says "by the way, fallbacks may get
marked as foreign too and be excluded from loads for script context
navigations as a result". That makes sense.

On Thu, Sep 30, 2010 at 7:29 PM, Alexey Proskuryakov <ap at webkit.org> wrote:
>
> "Foreign" means that the main resource has a different manifest than the one referencing it. E.g.
>
> foo.manifest:
> CACHE MANIFEST
> iframe.html
>
> iframe.html:
> <html manifest="bar.manifest">
> ...
>
> So, I don't think that the same origin requirement answers this. WebKit bug <https://bugs.webkit.org/show_bug.cgi?id=44406> has a live demo (Firefox 3.6.10 handles it correctly, according to my reading of the spec).
>
> - WBR, Alexey Proskuryakov
>
>
> 30.09.2010, в 18:21, Michael Nordman написал(а):
>
>> I don't think 'fallback' entries can be foreign because they must be
>> of the same-origin as the manifest.
>>
>> "Fallback namespaces and fallback entries must have the same origin as
>> the manifest itself."
>>
>> On Thu, Sep 30, 2010 at 4:38 PM, Alexey Proskuryakov <ap at webkit.org> wrote:
>>>
>>> In definitions of application cache entry categories, it's mentioned that an explicit entry can also be marked as foreign. This contrasts with fallback entries, for which no such notice is made.
>>>
>>> It still appears that the intention was for fallback entries to sometimes be foreign - in particular, section 6.5.1 says "Let candidate be the fallback resource" and then "If candidate is not marked as foreign..."
>>>
>>> I found it confusing that there is a specific mention of foreign for explicit entries, but not for fallback ones.
>>>
>>> - WBR, Alexey Proskuryakov
>>>
>>>
>
>
>



More information about the whatwg mailing list