<?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>171277</bug_id>
          
          <creation_ts>2017-04-25 09:36:14 -0700</creation_ts>
          <short_desc>navigator.onLine always returns true on iOS</short_desc>
          <delta_ts>2022-06-23 13:28:52 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>Safari 9</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 9.3</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=225645</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="sudheer Kumar">pskr.1894</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>bfulgham</cc>
    
    <cc>jond</cc>
    
    <cc>pskr.1894</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1301069</commentid>
    <comment_count>0</comment_count>
    <who name="sudheer Kumar">pskr.1894</who>
    <bug_when>2017-04-25 09:36:14 -0700</bug_when>
    <thetext>My application is also works on offline, and i am using navigator.onLine to know whether browser is in online or offline.
This API is working in desktop chrome browser (windows &amp; Mac), safari browser(Mac) &amp; android chrome browsers. 

But in iOS this API is always returning as TRUE &amp; application is not turning to offline mode in both Safari &amp; Chrome browsers.

Please suggest how to know whether the chrome browser is in offline or online in iOS (iPhone &amp; iPad).

Thank you 
Regards
Sudheer Kumar</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1301390</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-04-25 18:37:38 -0700</bug_when>
    <thetext>&lt;rdar://problem/31827156&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1301818</commentid>
    <comment_count>2</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2017-04-26 16:15:02 -0700</bug_when>
    <thetext>(In reply to sudheer Kumar from comment #0)
&gt; But in iOS this API is always returning as TRUE &amp; application is not turning
&gt; to offline mode in both Safari &amp; Chrome browsers.

I note a lack of instructions to reproduce what you&apos;re doing where you expect it to be returning offline.

How exactly are you going &quot;offline&quot;?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>