W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] In AppCache web apps, images from unpredictable domains won't load

From: Michael Nordman <michaeln@google.com>
Date: Mon, 6 Jul 2009 12:05:09 -0700
Message-ID: <fa2eab050907061205ja11f2ddh4f8ce5803785ab51@mail.gmail.com>
Yup... the source of grief is...

6.9.7 Changes to the networking model    5: Fail the resource load.

The intent behind this was "making the testing of offline application
easier". Given the unintended consequence Aaron brought up, we should
probably revisit this.

Maybe only fail to load the resource if its from the same-origin as the
manifest, otherwise load as usual.

On Mon, Jul 6, 2009 at 11:46 AM, Aaron Whyte <awhyte at google.com> wrote:

> When a page is loaded from an AppCache, even when online, external
> resources such as images will not be loaded at all.
> If foo.com has an image <img src="http://bar.com/img.png" />, then
> according to the steps in
> http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#changesToNetworkingModel
> it will fail the load for the resource.
> For example, someone with an Offline Gmail client would never be able to
> see cross-domain images in emails, even when completely online.
> There's no workaround in the current spec.  For user-defined img tags, like
> those in webmail apps, the set of external domains is practically infinite.
>  The NETWORK namespace, which requires a known domain for the
> domain-matching check, won't help.  The FALLBACK namespace has to have a
> known domain, that has to be the same as the manifest's domain, so it also
> can't help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090706/bcce2828/attachment.htm>
Received on Monday, 6 July 2009 12:05:09 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:14 UTC