<?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>29218</bug_id>
          
          <creation_ts>2015-10-21 14:48:31 +0000</creation_ts>
          <short_desc>Order of error checks in spec incompatible with proxy implementations</short_desc>
          <delta_ts>2015-10-31 03:22:28 +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>20860</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>ato</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>123823</commentid>
    <comment_count>0</comment_count>
    <who name="James Graham">james</who>
    <bug_when>2015-10-21 14:48:31 +0000</bug_when>
    <thetext>&quot;1. If the current browsing context is no longer open, return error with error code no such window.

2. Handle any user prompts, and return its value if it is an error.

3. Let cookie be the result of getting a property named &quot;cookie&quot; from the parameters argument.&quot;

This pattern doesn&apos;t work with a proxy implementation since it must read the full request before communicating with the backend that can know things like whether the browsing context is still open. Also the browsing context may close whilst the request is being read. So generally it seems better to delay these checks until after the request is fully processed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124019</commentid>
    <comment_count>1</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2015-10-31 03:22:28 +0000</bug_when>
    <thetext>By “proxy implementation” I’m assuming you mean “intermediary node”.

You say that they need to read the full request before communicating with the backend.  I guess I don’t understand what this means, since intermediaries won’t run any of the remote end steps themselves.  They act, as you say, as proxies, or multiplexers.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>