<?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>10213</bug_id>
          
          <creation_ts>2010-07-20 20:37:20 +0000</creation_ts>
          <short_desc>[URL] The definition of &quot;absolute url&quot; makes https:foo not an absolute url, since its behavior depends on whether the base is https: or not.  Is that desired?  In particular, using this definition for websockets means that wss: urls with no forward...</short_desc>
          <delta_ts>2012-07-27 06:27:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>17772</dup_id>
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#absolute-url</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          <dependson>17772</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>adrianba</cc>
    
    <cc>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-webapps</cc>
    
    <cc>w3c</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37024</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-07-20 20:37:20 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#absolute-url

Comment:
The definition of &quot;absolute url&quot; makes https:foo not an absolute url, since
its behavior depends on whether the base is https: or not.  Is that desired? 
In particular, using this definition for websockets means that wss: urls with
no forward slashes after the &apos;:&apos; are treated as non-absolute, though in fact
they&apos;re treated as absolute by the browser in practice.

Posted from: 173.48.34.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37028</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2010-07-20 21:34:35 +0000</bug_when>
    <thetext>Changing component so Hixie sees this while working on websockets.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37059</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-07-22 05:39:43 +0000</bug_when>
    <thetext>ws:foo isn&apos;t absolute, therefore per spec it&apos;s treated as non-absolute. Am I missing something? Are browsers not implementing the spec here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37061</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2010-07-22 05:50:07 +0000</bug_when>
    <thetext>&gt; ws:foo isn&apos;t absolute,

How is a browser supposed to know that?  Trying to create a URI from that string without a base URI successfully creates one, for example...

&gt; Are browsers not implementing the spec here?

Nope.  Neither Gecko nor webkit throw on such a url, for example.  In Gecko&apos;s case, because the concept of &quot;absolute url&quot; the spec uses (one which resolves to different things depending on the base) matches nothing that Necko exposes, and because by the definition normally used in Gecko (it&apos;s an absolute URL if you can parse it as a url even if there is no base) this url is absolute.

See also https://bugzilla.mozilla.org/show_bug.cgi?id=580234 which is what prompted me to read this section to start with.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37390</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-08-13 07:31:20 +0000</bug_when>
    <thetext>I would like to make this Adam&apos;s problem. Not sure what the status of his URL work is right now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37409</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">w3c</who>
    <bug_when>2010-08-13 16:39:54 +0000</bug_when>
    <thetext>Happy for this to be my problem.  The state of the URL work is that I have lots of data to crunch and I need to sit down with a big pot of coffee and crunch it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48749</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-05-24 20:24:47 +0000</bug_when>
    <thetext>This is now a problem with the WebSocket protocol spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50800</commentid>
    <comment_count>7</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2011-07-07 21:45:28 +0000</bug_when>
    <thetext>Section 3 of the protocol spec (http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-09#section-3) shows the valid syntax for a ws-URI. We believe the API should throw a SYNTAX_ERR if the address supplied does not match this format.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50806</commentid>
    <comment_count>8</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-07-07 22:43:47 +0000</bug_when>
    <thetext>That would be inconsistent with how URIs are handled elsewhere in the web platform...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50848</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-07-08 20:05:50 +0000</bug_when>
    <thetext>This is a generic platform bug, so I&apos;m moving it out of the WebSockets bucket.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69948</commentid>
    <comment_count>10</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-13 18:30:43 +0000</bug_when>
    <thetext>This bug was cloned to create bug 17772 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71538</commentid>
    <comment_count>11</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-07-26 23:32:10 +0000</bug_when>
    <thetext>Anne, is this your problem now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71588</commentid>
    <comment_count>12</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-07-27 06:27:03 +0000</bug_when>
    <thetext>Yeah, already reassigned the original.

*** This bug has been marked as a duplicate of bug 17772 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71590</commentid>
    <comment_count>13</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-07-27 06:27:36 +0000</bug_when>
    <thetext>Euh, the clone. Oops :-)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>