Are you proposing that the window.applicationCache API won't exist for documents loaded from an insecure origin? Or just that the manifest wont be fetched and the API would be neutered somehow? Other than not working offline, what failure modes would you expect?
Rick
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
On Sat, Jan 16, 2016 at 12:34 AM, Joel Weinberger <j...@chromium.org> wrote:Sorry for the delayed response! My proposal is to return an undefined object when window.applicationCache is accessed on a non-secure context (plus give a console message) and to throw an error when the manifest attribute is used in a document in a non-secure context. This would mimic, as closely as possible, what we've done with getUserMedia() and geolocation. I'm certainly open to other suggestions, though.There is an open question about explicitly clearing out already existing AppCaches in insecure origins as well. I would lean towards doing that just to be explicit about it, but that's certainly up for debate.Thus, the failure modes I expect would be:* Failure to register a manifest in a non-secure context, plus a thrown error.* An undefined reference returned when window.applicationCache is accessed on an insecure origin, plus a console message.
On Fri, Jan 15, 2016 at 2:38 PM PhistucK <phis...@gmail.com> wrote:Will feature detection work?"applicationCache" in window // should return false
Great point. Yes, it should be removed from the window object completely, not just marked as undefined.
Indeed, I'd rather we made it just expire the contents of the cache immediately and log a warning to the console.
Making the whole API missing doesn't seem developer or platform friendly.
> Making the whole API missing doesn't seem developer or platform friendly.
Indeed, I'd rather we made it just expire the contents of the cache immediately and log a warning to the console.
Making the whole API missing doesn't seem developer or platform friendly.
--
--
Also, one further clarification: Looking at the Firefox bug for removing AppCache (https://bugzilla.mozilla.org/show_bug.cgi?id=1237782), it appears that although they do not have an explicit deadline for removing AppCache, it is mostly blocked on shipping Service Workers. Once that happens, they plan on putting together a more definite timeline.--Joel
Currently mid transit, but will do once I land.