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

Issue 1906773002: Have (new URLSearchParams(initString)) skip initial '?'. (Closed)

Created:
4 years, 8 months ago by sof
Modified:
4 years, 8 months ago
Reviewers:
philipj_slow, Mike West
CC:
chromium-reviews, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Have (new URLSearchParams(initString)) skip initial '?'. The spec now requires that when a URLSearchParams is initialized from a string, an initial '?' should be ignored from that string, https://url.spec.whatwg.org/#dom-urlsearchparams-urlsearchparams It accommodating usage like (new URLSearchParams(url.search)) R= BUG=601425 Committed: https://crrev.com/06b35c408742d5e63be72ad7c2fed4073b7caf12 Cr-Commit-Position: refs/heads/master@{#388842}

Patch Set 1 #

Total comments: 3

Patch Set 2 : fix misguided comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html View 1 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/URLSearchParams.cpp View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
sof
please take a look. spec catchup.
4 years, 8 months ago (2016-04-21 12:53:17 UTC) #4
philipj_slow
https://codereview.chromium.org/1906773002/diff/1/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html File third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html (right): https://codereview.chromium.org/1906773002/diff/1/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html#newcode41 third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html:41: // Encoding '?' aligns with Firefox, spec doesn't insist ...
4 years, 8 months ago (2016-04-21 13:13:50 UTC) #5
sof
https://codereview.chromium.org/1906773002/diff/1/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html File third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html (right): https://codereview.chromium.org/1906773002/diff/1/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html#newcode41 third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html:41: // Encoding '?' aligns with Firefox, spec doesn't insist ...
4 years, 8 months ago (2016-04-21 13:19:10 UTC) #6
philipj_slow
https://codereview.chromium.org/1906773002/diff/1/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html File third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html (right): https://codereview.chromium.org/1906773002/diff/1/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html#newcode41 third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html:41: // Encoding '?' aligns with Firefox, spec doesn't insist ...
4 years, 8 months ago (2016-04-21 13:38:07 UTC) #7
sof
On 2016/04/21 13:38:07, philipj_slow wrote: > https://codereview.chromium.org/1906773002/diff/1/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html > File third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html > (right): > > https://codereview.chromium.org/1906773002/diff/1/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html#newcode41 ...
4 years, 8 months ago (2016-04-21 13:59:56 UTC) #8
sof
On 2016/04/21 13:59:56, sof wrote: > On 2016/04/21 13:38:07, philipj_slow wrote: > > > https://codereview.chromium.org/1906773002/diff/1/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html ...
4 years, 8 months ago (2016-04-21 15:11:13 UTC) #9
philipj_slow
lgtm
4 years, 8 months ago (2016-04-21 18:21:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1906773002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1906773002/20001
4 years, 8 months ago (2016-04-21 18:25:09 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-21 19:20:02 UTC) #14
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:37:19 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/06b35c408742d5e63be72ad7c2fed4073b7caf12
Cr-Commit-Position: refs/heads/master@{#388842}

Powered by Google App Engine
This is Rietveld 408576698