New issue
Advanced search Search tips
Starred by 3 users

Issue metadata

Status: Fixed
Closed: Jan 17
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac , Fuchsia
Pri: 2
Type: Bug

issue 553535

Sign in to add a comment

Issue 915126: XHR: xhr.responseURL should return the response URL

Reported by, Dec 14 Project Member

Issue description

With service workers, the response URL might not be the same as the request URL. The response URL ( should be used.

This affects xhr.responseURL and xhr.responseXML.URL (when the XHR response was a Document).

Chrome Status:

Spec notes:
For xhr.responseURL:
"The responseURL attribute must return the empty string if response’s url is null and its serialization with the exclude fragment flag set otherwise."

For xhr.responseXML.URL:
"Set document’s URL to response’s url."

Comment 1 by, Jan 16

Status: Started (was: Assigned)

Comment 4 by, Jan 17

Labels: Target-73 M-73 OS-Android OS-Chrome OS-Fuchsia OS-Linux OS-Mac OS-Windows

Comment 5 by, Jan 17

Description: Show this description

Comment 6 by, Jan 17

Labels: -Pri-3 Hotlist-Interop Pri-2

Comment 7 by, Jan 17

Project Member
The following revision refers to this bug:

commit 9c34e04a9e3f0aae3661d2e63f2e3cfaa6236eda
Author: Matt Falkenhagen <>
Date: Thu Jan 17 04:34:18 2019

service worker: WPT: Add generated response tests for XHR response URL.

respondWith(new Response()) is a little tricky for response URL so it's
good to have a test for it.

Bug:  915126 
Change-Id: I21fbc654687d467baf14f02c23f4e41d18ac79ab
Reviewed-by: Kenichi Ishibashi <>
Commit-Queue: Matt Falkenhagen <>
Cr-Commit-Position: refs/heads/master@{#623577}

Comment 8 by, Jan 17

Project Member
The following revision refers to this bug:

commit 47e1c4bb479ec3aa5be900e2ff99de165baa31cc
Author: Matt Falkenhagen <>
Date: Thu Jan 17 05:27:34 2019

xhr: Use the response URL for responseURL and document URL.

Aligns with the spec, see bug.
Chrome Status:

Bug:  915126 
Change-Id: I7d30a902f95a9e34b32eed891d4e2c3fb983dd71
Commit-Queue: Matt Falkenhagen <>
Reviewed-by: Yutaka Hirano <>
Cr-Commit-Position: refs/heads/master@{#623594}

Comment 9 by, Jan 17

Status: Fixed (was: Started)

Sign in to add a comment