Created attachment 428259 [details] Offline, could not load page but navigator.onLine returns true The Safari Browser is currenly unable to distinguish between being online or offline. "In Chrome and Safari, if the browser is not able to connect to a local area network (LAN) or a router, it is offline; all other conditions return true" This seemed to have been true in the past, but currently is not working How to reproduce: Turn off Wifi and make sure not ethernet connection exists. Try to open web page in Safari (e.g www.google.com or any other) Open inspector Go to console type `navigator.onLine` Expected Behaviour: Returns false Observed Behaviour: Returns true
Please note that I was unsure which component to chose here. If you think the component I chose is incorrect, please propose another and I will amend it accordingly.
I can reproduce this, and "ifconfig" isn't showing any active interfaces.
<rdar://problem/78146615>
Thanks for the bug report. I'll see if I can reproduce and investigate shortly.
Weird, I am unable to reproduce on my iMac Pro. I did: 1. Open WebInspector, type navigator.onLine and it returned true 2. Go to Network System preferences and click "Turn off Wifi" 3. type navigator.onLine and it returned false I tried both WebKit trunk and shipping Safari.
(In reply to Chris Dumez from comment #5) > Weird, I am unable to reproduce on my iMac Pro. I did: > 1. Open WebInspector, type navigator.onLine and it returned true > 2. Go to Network System preferences and click "Turn off Wifi" > 3. type navigator.onLine and it returned false > > I tried both WebKit trunk and shipping Safari. I have just tried on a MacBook Pro and it worked fine too.
(In reply to Chris Dumez from comment #6) > (In reply to Chris Dumez from comment #5) > > Weird, I am unable to reproduce on my iMac Pro. I did: > > 1. Open WebInspector, type navigator.onLine and it returned true > > 2. Go to Network System preferences and click "Turn off Wifi" > > 3. type navigator.onLine and it returned false > > > > I tried both WebKit trunk and shipping Safari. > > I have just tried on a MacBook Pro and it worked fine too. I you can attach the output of 'ifconfig', it may help me figure out what's different about our configurations. I think for example that some virtual machines are known to create some network interfaces that say up even when the VM is not running.