<div>Yup... the source of grief is...</div><div><br></div>6.9.7 Changes to the networking model<div> 5: Fail the resource load.</div><div><br>The intent behind this was "making the testing of offline application easier". Given the unintended consequence Aaron brought up, we should probably revisit this.</div>
<div><br></div><div>Maybe only fail to load the resource if its from the same-origin as the manifest, otherwise load as usual.</div><div><br></div><div><br></div><div> <br><div class="gmail_quote">On Mon, Jul 6, 2009 at 11:46 AM, Aaron Whyte <span dir="ltr"><<a href="mailto:awhyte@google.com">awhyte@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span style="font-family:Arial, sans-serif;font-size:13px"><div style="margin-top:0px;margin-bottom:0px">When a page is loaded from an AppCache, even when online, external resources such as images will not be loaded at all.</div>
<div style="margin-top:0px;margin-bottom:0px">If <a href="http://foo.com" target="_blank">foo.com</a> has an image <img src="<a href="http://bar.com/img.png" target="_blank">http://bar.com/img.png</a>" />, then according to the steps in<br>
<div style="margin-top:0px;margin-bottom:0px;color:rgb(80, 0, 80)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#changesToNetworkingModel" style="color:rgb(0, 101, 204)" target="_blank">http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#changesToNetworkingModel</a><br>
</div>it will fail the load for the resource.<div style="margin-top:0px;margin-bottom:0px"><br></div><div style="margin-top:0px;margin-bottom:0px">For example, someone with an Offline Gmail client would never be able to see cross-domain images in emails, even when completely online.</div>
<div style="margin-top:0px;margin-bottom:0px"><br></div><div style="margin-top:0px;margin-bottom:0px">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.</div>
<div style="margin-top:0px;margin-bottom:0px"><br></div></div></span>
</blockquote></div><br></div>