Bug 52491
| Summary: | Ability to detect if the Safari browser is online or not broken when VMware Fusion is installed | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Roy <mroy> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ap |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | OS X 10.6 | ||
| URL: | http://apollo.mikeroysoft.com/wktest.html | ||
Michael Roy
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
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 ***