background-sync icon indicating copy to clipboard operation
background-sync copied to clipboard

Reusing onLine definition

Open jakearchibald opened this issue 9 years ago • 5 comments

Does it make sense to reference navigator.onLine here as a minimum viable definition?

Also, I adjusted the wording to suggest the UA may use connectivity to the target origin as a signal. Does this fit with the intention of this definition?

jakearchibald avatar Oct 12 '15 10:10 jakearchibald

This does not make much sense as an implementation requirement since navigator.onLine can be overwritten. You need to use some kind of underlying concept.

annevk avatar Oct 12 '15 10:10 annevk

@annevk to clarify, this would mean creating a concept that https://html.spec.whatwg.org/multipage/browsers.html#dom-navigator-online would use for .onLine, then background sync could reference it too?

jakearchibald avatar Oct 12 '15 10:10 jakearchibald

Yeah, thought we already had such a thing but I guess we don't.

annevk avatar Oct 12 '15 11:10 annevk

I thought about somehow trying to reference navigator.onLine here, but ended up not doing so since its definition is inside section 7.7, which has the scary "This feature is in the process of being removed from the Web platform." warning. But maybe that warning doesn't apply to all parts of that section?

I also considered that it might make sense to somehow link this to some definition in the netinfo spec, but that didn't seem to have anything obvious to reuse either.

mkruisselbrink avatar Oct 12 '15 18:10 mkruisselbrink

That warning only applies to AppCache.

annevk avatar Oct 13 '15 06:10 annevk