|
|
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. |
DescriptionXMLHttpRequest.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. #
Messages
Total messages: 35 (14 generated)
PTAL.
paritosh.in@samsung.com changed reviewers: + yhirano@chromium.org
paritosh.in@samsung.com changed reviewers: - habib.virji@samsung.com
PTAL.
paritosh.in@samsung.com changed reviewers: + habib.virji@chromium.org
paritosh.in@samsung.com changed reviewers: + habib.virji@samsung.com - habib.virji@chromium.org, yhirano@chromium.org
Your changes look okay. This area is new to me, so cannot comment on it. Your explanation is not straightforward, would be better if you can specify "serialization without exclude fragment flag" is properly explained above.
paritosh.in@samsung.com changed reviewers: + yhirano@chromium.org - habib.virji@samsung.com
PTAL.
paritosh.in@samsung.com changed reviewers: + habib.virji@samsung.com
Please remove [WIP] from the title and the description if you want to land this CL. > responseURL attribute should return url without "#bar/baz+xml" but not returning that. Sorry I don't understand the sentence: What do you mean by it? https://codereview.chromium.org/681513003/diff/1/LayoutTests/http/tests/xmlht... File LayoutTests/http/tests/xmlhttprequest/responseURL.html (right): https://codereview.chromium.org/681513003/diff/1/LayoutTests/http/tests/xmlht... LayoutTests/http/tests/xmlhttprequest/responseURL.html:44: return get('/xmlhttprequest/supported-xml-content-types.cgi?type=foo#bar/baz+xml', 'xml'); Can you tell me why you use such a complex URL?
Thanks. PTAL.. > Please remove [WIP] from the title and the description if you > want to land this CL. Updated. > >responseURL attribute should return url without "#bar/baz+xml" but not returning that. > Sorry I don't understand the sentence: What do you mean by it? Edited in the description. https://codereview.chromium.org/681513003/diff/1/LayoutTests/http/tests/xmlht... File LayoutTests/http/tests/xmlhttprequest/responseURL.html (right): https://codereview.chromium.org/681513003/diff/1/LayoutTests/http/tests/xmlht... 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 03:59:53, yhirano wrote: > Can you tell me why you use such a complex URL? Just To test for URL with fragments..
https://codereview.chromium.org/681513003/diff/1/LayoutTests/http/tests/xmlht... File LayoutTests/http/tests/xmlhttprequest/responseURL.html (right): https://codereview.chromium.org/681513003/diff/1/LayoutTests/http/tests/xmlht... 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: > On 2014/10/28 03:59:53, yhirano wrote: > > Can you tell me why you use such a complex URL? > > Just To test for URL with fragments.. Then, isn't resources/test.html#foobar enough?
And, please file a bug.
Thanks Updated as suggested and filed the bug (http://crbug.com/427789). PTAL. https://codereview.chromium.org/681513003/diff/1/LayoutTests/http/tests/xmlht... File LayoutTests/http/tests/xmlhttprequest/responseURL.html (right): https://codereview.chromium.org/681513003/diff/1/LayoutTests/http/tests/xmlht... 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 05:08:05, yhirano wrote: > On 2014/10/28 04:26:28, Paritosh Kumar wrote: > > On 2014/10/28 03:59:53, yhirano wrote: > > > Can you tell me why you use such a complex URL? > > > > Just To test for URL with fragments.. > > Then, isn't resources/test.html#foobar enough? Yes.. Done.
The title looks a bit vague: "XMLHttpRequest.responseURL should exclude url fragment" might be better? Please update the description: the test target name is old. https://codereview.chromium.org/681513003/diff/20001/LayoutTests/http/tests/x... File LayoutTests/http/tests/xmlhttprequest/responseURL.html (right): https://codereview.chromium.org/681513003/diff/20001/LayoutTests/http/tests/x... LayoutTests/http/tests/xmlhttprequest/responseURL.html:44: return get('resources/navigation-target.html#foobar', 'html'); There is no 'html' response type. Maybe 'text'? https://xhr.spec.whatwg.org/#the-responsetype-attribute
Thanks Updated as suggested, PTAL. https://codereview.chromium.org/681513003/diff/20001/LayoutTests/http/tests/x... File LayoutTests/http/tests/xmlhttprequest/responseURL.html (right): https://codereview.chromium.org/681513003/diff/20001/LayoutTests/http/tests/x... LayoutTests/http/tests/xmlhttprequest/responseURL.html:44: return get('resources/navigation-target.html#foobar', 'html'); On 2014/10/28 05:54:50, yhirano wrote: > There is no 'html' response type. Maybe 'text'? > https://xhr.spec.whatwg.org/#the-responsetype-attribute Thanks. Done.
LGTM You need an owner's approval: I recommend sigbjorn@opera.com or kouhei@chromium.org.
paritosh.in@samsung.com changed reviewers: + kouhei@chromium.org
PTAL.
paritosh.in@samsung.com changed reviewers: + sigbjorn@opera.com - habib.virji@samsung.com, kouhei@chromium.org, yhirano@chromium.org
PTAL.
paritosh.in@samsung.com changed reviewers: + habib.virji@samsung.com, kouhei@chromium.org, yhirano@chromium.org
On 2014/10/28 06:16:52, Paritosh Kumar wrote: > PTAL. Lgtm
The CQ bit was checked by paritosh.in@samsung.com
The CQ bit was unchecked by paritosh.in@samsung.com
The CQ bit was checked by paritosh.in@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/681513003/40001
The CQ bit was unchecked by commit-bot@chromium.org
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)
Sorry to interrupt this, but would you add an entry to AUTHORS file before submitting this CL? Also, please sign our CLA form at https://cla.developers.google.com/clas
> Sorry to interrupt this, but would you add an entry to AUTHORS file before > submitting this CL? Added Myself to AUTHORS file https://codereview.chromium.org/549933003/ > Also, please sign our CLA form at https://cla.developers.google.com/clas Already signed CLA from Samsung.
The CQ bit was checked by paritosh.in@samsung.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/681513003/40001
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 184513 |