[Webkit-unassigned] [Bug 11284] navigator.onLine not implemented

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Mar 30 21:51:59 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=11284





------- Comment #9 from bedney at technicalpursuit.com  2008-03-30 21:51 PDT -------
Alexey -

So, as promised, I did some testing. Unfortunately, as per usual, there is no
consistency.

I have a page that alert()s the value of navigator.onLine (note the spelling -
its *exactly* that capitalization in both FF and IE). My environment is XP SP2.

Note here when I say 'the browser is in "online" or "offline" mode' what I mean
by that is that the user has selected the Work Offline menu item (which is
present in both FF and IE - but curiously missing in Safari... hmmm...)

Here are the results:

FF 2.0.0.12:

1. When the browser is in online mode and the network is active, the property
is true. In my mind this is correct.

2. When the browser is in offline mode and the network is active, the property
is false. In my mind this is correct.

3. When the browser is in online mode, but the network adaptor has been
disabled by using the Windows Control Panel "Network Adaptors" panel, the
property is still true. In my mind, this is incorrect and it tells me that the
part of the referenced article on Firefox where they said that "Network status
autodetection was implemented in Firefox 2" is not telling the truth (or maybe
there's a bug ;-) ).

FF 3.0

1. When the browser is in online mode and the network is active, the property
is true. In my mind this is correct.

2. When the browser is in offline mode and the network is active, the property
is false. In my mind this is correct.

3. When the browser is in online mode, but the network adaptor has been
disabled by using the Windows Control Panel "Network Adaptors" panel, the
property is false (yay!). In my mind this is correct and tell me indeed that
"Network status autodetection was implemented in Firefox *3*"

IE8beta1:

1. When the browser is in online mode and the network is active, the property
is true. In my mind this is correct.

2. When the browser is in offline mode and the network is active, the property
is false. In my mind this is correct.

3. When the browser is in online mode, but the network adaptor has been
disabled by using the Windows Control Panel "Network Adaptors" panel, the
property is still true. In my mind, this is incorrect and it tells me that
there's a bug in IE8. I have, in fact, just reported this as a bug to the IE
team, so we'll see if they agree.

IMHO, Safari should follow the FF 3.0 behavior above.

Let me know if there is further information or testing I can do for you.

Cheers,

- Bill


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list