Closed Bug 796978 Opened 12 years ago Closed 12 years ago

navigator.offline & navigator.online do not fire when network is lost or returns.

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 654579

People

(Reporter: JStagner, Unassigned)

Details

When the network connection is lost or returned, it appears that the offline and online events do not appear to fire. 

There is a test here : http://html5-demos.appspot.com/static/navigator.onLine.html

It works in Chrome

Without this event sequence - apps (MozApps and FFOS apps) will not be able to adapt to network state without a recurring network ping (which is a bad option)
As far as I know this is on purpose.
There are bugs about this feature.
Looks like this was "fixed" for Firefox OS https://bugzilla.mozilla.org/show_bug.cgi?id=777145
I reopened bug 650579. I think we made a decision there that's much less good for webdevelopers and users than what was proposed.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.