Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Issue 681513003: XMLHttpRequest.responseURL should exclude url fragment (Closed)

Created:
6 years, 1 month ago by Paritosh Kumar
Modified:
6 years, 1 month ago
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

XMLHttpRequest.responseURL should exclude url fragment According to the specification of responseURL, it will return empty string if the response URL is null otherwise it will return its serialization with exclude fragment flag set. Specs : https://xhr.spec.whatwg.org/#the-responseurl-attribute To check this added test for URL like "/xmlhttprequest/navigation-target.html#foobar" in responseURL.html test, according to specs for this case responseURL attribute will return url excluding fragments. So removing fragments from response URL in responseURL() method. R=habib.virji@samsung.com BUG=427789 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184513

Patch Set 1 #

Total comments: 4

Patch Set 2 : After editing the test case. #

Total comments: 2

Patch Set 3 : After editing the test case. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -3 lines) Patch
M LayoutTests/http/tests/xmlhttprequest/responseURL.html View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M LayoutTests/http/tests/xmlhttprequest/responseURL-expected.txt View 1 2 chunks +8 lines, -1 line 0 comments Download
M Source/core/xml/XMLHttpRequest.cpp View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 35 (14 generated)
Paritosh Kumar
PTAL.
6 years, 1 month ago (2014-10-27 10:49:17 UTC) #1
Paritosh Kumar
PTAL.
6 years, 1 month ago (2014-10-27 11:47:03 UTC) #4
Habib Virji
Your changes look okay. This area is new to me, so cannot comment on it. ...
6 years, 1 month ago (2014-10-27 17:29:03 UTC) #7
Paritosh Kumar
PTAL.
6 years, 1 month ago (2014-10-28 03:43:17 UTC) #9
yhirano
Please remove [WIP] from the title and the description if you want to land this ...
6 years, 1 month ago (2014-10-28 03:59:53 UTC) #11
Paritosh Kumar
Thanks. PTAL.. > Please remove [WIP] from the title and the description if you > ...
6 years, 1 month ago (2014-10-28 04:26:29 UTC) #12
yhirano
https://codereview.chromium.org/681513003/diff/1/LayoutTests/http/tests/xmlhttprequest/responseURL.html File LayoutTests/http/tests/xmlhttprequest/responseURL.html (right): https://codereview.chromium.org/681513003/diff/1/LayoutTests/http/tests/xmlhttprequest/responseURL.html#newcode44 LayoutTests/http/tests/xmlhttprequest/responseURL.html:44: return get('/xmlhttprequest/supported-xml-content-types.cgi?type=foo#bar/baz+xml', 'xml'); On 2014/10/28 04:26:28, Paritosh Kumar wrote: ...
6 years, 1 month ago (2014-10-28 05:08:06 UTC) #13
yhirano
And, please file a bug.
6 years, 1 month ago (2014-10-28 05:18:07 UTC) #14
Paritosh Kumar
Thanks Updated as suggested and filed the bug (http://crbug.com/427789). PTAL. https://codereview.chromium.org/681513003/diff/1/LayoutTests/http/tests/xmlhttprequest/responseURL.html File LayoutTests/http/tests/xmlhttprequest/responseURL.html (right): https://codereview.chromium.org/681513003/diff/1/LayoutTests/http/tests/xmlhttprequest/responseURL.html#newcode44 ...
6 years, 1 month ago (2014-10-28 05:44:59 UTC) #15
yhirano
The title looks a bit vague: "XMLHttpRequest.responseURL should exclude url fragment" might be better? Please ...
6 years, 1 month ago (2014-10-28 05:54:51 UTC) #16
Paritosh Kumar
Thanks Updated as suggested, PTAL. https://codereview.chromium.org/681513003/diff/20001/LayoutTests/http/tests/xmlhttprequest/responseURL.html File LayoutTests/http/tests/xmlhttprequest/responseURL.html (right): https://codereview.chromium.org/681513003/diff/20001/LayoutTests/http/tests/xmlhttprequest/responseURL.html#newcode44 LayoutTests/http/tests/xmlhttprequest/responseURL.html:44: return get('resources/navigation-target.html#foobar', 'html'); On ...
6 years, 1 month ago (2014-10-28 06:02:21 UTC) #17
yhirano
LGTM You need an owner's approval: I recommend sigbjorn@opera.com or kouhei@chromium.org.
6 years, 1 month ago (2014-10-28 06:12:41 UTC) #18
Paritosh Kumar
PTAL.
6 years, 1 month ago (2014-10-28 06:13:51 UTC) #20
Paritosh Kumar
PTAL.
6 years, 1 month ago (2014-10-28 06:16:52 UTC) #22
kouhei (in TOK)
On 2014/10/28 06:16:52, Paritosh Kumar wrote: > PTAL. Lgtm
6 years, 1 month ago (2014-10-28 06:20:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/681513003/40001
6 years, 1 month ago (2014-10-28 06:22:29 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/33885)
6 years, 1 month ago (2014-10-28 08:53:01 UTC) #30
kouhei (in TOK)
Sorry to interrupt this, but would you add an entry to AUTHORS file before submitting ...
6 years, 1 month ago (2014-10-28 08:58:03 UTC) #31
Paritosh Kumar
> Sorry to interrupt this, but would you add an entry to AUTHORS file before ...
6 years, 1 month ago (2014-10-28 09:23:18 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/681513003/40001
6 years, 1 month ago (2014-10-28 11:54:15 UTC) #34
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 12:48:00 UTC) #35
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 184513

Powered by Google App Engine
This is Rietveld 408576698