<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>52491</bug_id>
          
          <creation_ts>2011-01-14 15:38:26 -0800</creation_ts>
          <short_desc>Ability to detect if the Safari browser is online or not broken when VMware Fusion is installed</short_desc>
          <delta_ts>2011-01-14 22:54:08 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>32327</dup_id>
          
          <bug_file_loc>http://apollo.mikeroysoft.com/wktest.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Michael Roy">mroy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>334678</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Roy">mroy</who>
    <bug_when>2011-01-14 15:38:26 -0800</bug_when>
    <thetext>Hi there,

I&apos;m a support engineer at VMware and this was reported to us recently.

When addEventListener is listening for &quot;online&quot; or &quot;offline&quot; and Fusion is installed, the function returns True even when it should be False.

http://apollo.mikeroysoft.com/wktest.html  demonstrates the issue pretty clearly.

Script in full:
	&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt; 
		window.addEventListener(&quot;online&quot;,function() {
			alert(&quot;Online&quot;);
		},false);
 
		window.addEventListener(&quot;offline&quot;,function() {
			alert(&quot;Offline&quot;);
		},false);
	&lt;/script&gt; 

When Fusion is not installed, it behaves as expected.  When you turn Airport off, or unplug ethernet, an alert is raised, and when you re-connect it, a new alert is raised.
When Fusion is installed, nothing happens.

We believe it is detecting our vmnet interfaces and returning a false-positive.  

If you run from Terminal: 

sudo ./boot.sh --stop  

the issue disappears and things behave as expected.  This command shuts down all the Virtual Network interfaces.
(First, cd to: /Library/Application Support/VMware Fusion/)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>334861</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-01-14 22:54:08 -0800</bug_when>
    <thetext>Yes, that&apos;s a known issue. This is almost a philosophical question - what does it mean to be online? For example, are you online if you&apos;re on intranet without access to Internet?

If all one cares about is testing a web app running in a virtual server in VMWare, they want navigator.onLine to return true even if that&apos;s the only active interface.

*** This bug has been marked as a duplicate of bug 32327 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>