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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25179</bug_id>
          
          <creation_ts>2014-03-27 16:03:01 +0000</creation_ts>
          <short_desc>[WebDriver Spec]: Need a way to enable / disable networking from webdriver</short_desc>
          <delta_ts>2014-07-07 15:59:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Browser Test/Tools WG</product>
          <component>WebDriver</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>24121</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="James Graham">james</reporter>
          <assigned_to name="Browser Testing and Tools WG">public-browser-tools-testing</assigned_to>
          <cc>fisherii</cc>
    
    <cc>luke.semerau</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Browser Testing and Tools WG">public-browser-tools-testing</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103021</commentid>
    <comment_count>0</comment_count>
    <who name="James Graham">james</who>
    <bug_when>2014-03-27 16:03:01 +0000</bug_when>
    <thetext>The new generation of web apps are expected to continue to function when networking is not available for whatever reason. Obviously this is particularly important on mobile devices to close the gap between native apps and web apps.

At present it isn&apos;t possible to test the behaviour of an app when it is offline, or the transition between online and offline or vice-versa. This substantially decreases the utility of WebDriver for testing contemporary web applications. Neither is it possible to write testsuites for the features underlying offline support (AppCache, Service Worker), substantially increasing the chance of buggy or non-interoperable implementations. 

The most obvious way to provide this would be to expose an API to webdriver that would allow disabling &quot;content&quot; networking i.e. from the point of view of the webpage it would look like the browser was offline, but privileged code (in particular webdriver itself) would still be able to perform network operations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103030</commentid>
    <comment_count>1</comment_count>
    <who name="Marc Fisher">fisherii</who>
    <bug_when>2014-03-27 16:57:11 +0000</bug_when>
    <thetext>While I think this is an important and useful feature, I believe that it more appropriately belongs in Level 2 than Level 1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108755</commentid>
    <comment_count>2</comment_count>
    <who name="Luke Inman-Semerau">luke.semerau</who>
    <bug_when>2014-07-07 15:59:30 +0000</bug_when>
    <thetext>related mobile spec:

https://code.google.com/p/selenium/source/browse/spec-draft.md?repo=mobile#120</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>