RESOLVED DUPLICATE of bug 3232752491
Ability to detect if the Safari browser is online or not broken when VMware Fusion is installed
https://bugs.webkit.org/show_bug.cgi?id=52491
Summary Ability to detect if the Safari browser is online or not broken when VMware F...
Michael Roy
Reported 2011-01-14 15:38:26 PST
Hi there, I'm a support engineer at VMware and this was reported to us recently. When addEventListener is listening for "online" or "offline" 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: <script type="text/javascript" charset="utf-8"> window.addEventListener("online",function() { alert("Online"); },false); window.addEventListener("offline",function() { alert("Offline"); },false); </script> 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/)
Attachments
Alexey Proskuryakov
Comment 1 2011-01-14 22:54:08 PST
Yes, that's a known issue. This is almost a philosophical question - what does it mean to be online? For example, are you online if you'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's the only active interface. *** This bug has been marked as a duplicate of bug 32327 ***
Note You need to log in before you can comment on or make changes to this bug.