<?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>15417</bug_id>
          
          <creation_ts>2012-01-04 14:37:45 +0000</creation_ts>
          <short_desc>Redirects and the base URL</short_desc>
          <delta_ts>2014-02-07 16:16:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>XHR</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>cowwoc</cc>
    
    <cc>hsteen</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>xKhorasan+w3c</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62272</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-01-04 14:37:45 +0000</bug_when>
    <thetext>We should be clear about what responseXML&apos;s Document&apos;s object associated URL needs to be.

See: http://lists.w3.org/Archives/Public/public-webapps/2010OctDec/0241.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63765</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-02-06 17:07:12 +0000</bug_when>
    <thetext>This is clear now. But maybe we should also expose something like responseURL in case there is no document, but you want to resolve relative URLs in say, JSON?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63766</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-02-06 17:07:48 +0000</bug_when>
    <thetext>Document&apos;s URL was defined in http://dvcs.w3.org/hg/xhr/rev/ca4c13d638f9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87750</commentid>
    <comment_count>3</comment_count>
    <who name="Hallvord R. M. Steen">hsteen</who>
    <bug_when>2013-05-16 08:46:42 +0000</bug_when>
    <thetext>&gt; maybe we should also expose something like responseURL in case
&gt; there is no document, but you want to resolve relative URLs in say, JSON?

-1 - it does not feel &quot;natural&quot; to me to resolve URLs that are not in a &quot;document&quot; according to the resource&apos;s URL.

(On the other hand, I&apos;ve often wanted something like an xhr.requestURL property for debugging..sometimes while stepping through code one might come across an XHR object reference and need to know what URL it was used for. There are workarounds, but they are clunky.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87760</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-05-16 11:41:33 +0000</bug_when>
    <thetext>You mean like in a cache manifest? Of course it&apos;s natural.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87768</commentid>
    <comment_count>5</comment_count>
    <who name="Hallvord R. M. Steen">hsteen</who>
    <bug_when>2013-05-16 12:54:38 +0000</bug_when>
    <thetext>Hm.. I guess you&apos;re right, also matches resolution of relative URLs in CSS. A responseURL property seems like a good idea.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93870</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-09-26 12:49:51 +0000</bug_when>
    <thetext>*** Bug 23361 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99622</commentid>
    <comment_count>7</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2014-02-03 18:15:37 +0000</bug_when>
    <thetext>I think it should also at least include the redirect status code plus the final request method (because of the &quot;occasional&quot; rewriting to GET).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100019</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-07 16:16:47 +0000</bug_when>
    <thetext>That doesn&apos;t seem like sufficient reason, but it&apos;s also out of scope of this bug.

https://github.com/whatwg/xhr/commit/0c9670185b79c255211881e086e05e7a99e65f06</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>