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

Issue 1860623002: Add support for URL.searchParams getter. (Closed)

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

Description

Add support for URL.searchParams getter. Add the missing piece to our URLSearchParams implementation; the readonly attribute for URL, URL.searchParams: https://url.spec.whatwg.org/#dom-url-searchparams The currently spec'ed connection between URL and URLSearchParams is a lot less general than previous designs, hence the object lifetime complexities it ran into (see https://codereview.chromium.org/143313002/) falls away. Intent to Implement and Ship (for URLSearchParams and this URL attribute): https://groups.google.com/a/chromium.org/d/msg/blink-dev/grHZDbldP04/JdsoQ169AQAJ R=mkwst BUG=303152 Committed: https://crrev.com/181f15d385bd66883ed39a58899a25d04838e2fe Cr-Commit-Position: refs/heads/master@{#386189}

Patch Set 1 #

Patch Set 2 : remove unnecessary constructor #

Patch Set 3 : git log -2 #

Patch Set 4 : restrict .searchParams to URL only #

Total comments: 10

Patch Set 5 : add a couple more tests + prevent update round-tripping on updating URL object's query object #

Patch Set 6 : sync expected webkitURL offerings also #

Patch Set 7 : iwyu tidying #

Patch Set 8 : weaken URLSearchParam's associated URL object reference #

Patch Set 9 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -50 lines) Patch
M third_party/WebKit/LayoutTests/fast/domurl/url-constructor.html View 1 2 3 4 2 chunks +27 lines, -25 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/domurl/url-search.html View 3 chunks +2 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/domurl/url-searchparams.html View 1 2 3 4 1 chunk +76 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMURL.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/DOMURL.cpp View 1 2 3 4 5 6 7 8 3 chunks +47 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/DOMURLUtils.h View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMURLUtils.cpp View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/URL.idl View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/URLSearchParams.h View 1 2 3 4 5 6 7 3 chunks +17 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/dom/URLSearchParams.cpp View 1 2 3 4 5 6 7 8 9 chunks +34 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/dom/URLUtils.idl View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (14 generated)
sof
please take a look. Specs have become considerably less general wrt URLSearchParams integration since last ...
4 years, 8 months ago (2016-04-05 11:52:54 UTC) #3
Mike West
Hooray for procrastination! Thank you for taking this on.. LGTM. Do you plan on updating ...
4 years, 8 months ago (2016-04-05 12:43:51 UTC) #4
sof
Thanks for the quick review. > Do you plan on updating the WPT version of ...
4 years, 8 months ago (2016-04-05 15:23:18 UTC) #5
Mike West
Still LGTM, thanks! On 2016/04/05 at 15:23:18, sigbjornf wrote: > > Do you plan on ...
4 years, 8 months ago (2016-04-05 16:11:00 UTC) #6
sof
On 2016/04/05 16:11:00, Mike West (OOO through 31st) wrote: > Still LGTM, thanks! > thanks; ...
4 years, 8 months ago (2016-04-05 18:32:21 UTC) #7
esprehn
How does this deal with cycles? The URLSearchParams has a strong ref to the URL, ...
4 years, 8 months ago (2016-04-05 21:06:19 UTC) #10
sof
On 2016/04/05 21:06:19, esprehn wrote: > How does this deal with cycles? The URLSearchParams has ...
4 years, 8 months ago (2016-04-05 21:40:08 UTC) #11
sof
On 2016/04/05 21:40:08, sof wrote: > On 2016/04/05 21:06:19, esprehn wrote: > > How does ...
4 years, 8 months ago (2016-04-06 10:34:16 UTC) #12
sof
On 2016/04/05 18:32:21, sof wrote: > On 2016/04/05 16:11:00, Mike West (OOO through 31st) wrote: ...
4 years, 8 months ago (2016-04-06 12:54:41 UTC) #13
sof
Going ahead and landing this one now, added feature dashboard entry + OWP tracking bug ...
4 years, 8 months ago (2016-04-08 11:44:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1860623002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1860623002/140001
4 years, 8 months ago (2016-04-08 11:44:23 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/156618) ios_rel_device_gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-08 11:46:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1860623002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1860623002/160001
4 years, 8 months ago (2016-04-08 13:33:50 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/166326)
4 years, 8 months ago (2016-04-08 13:43:34 UTC) #24
sof
tkent@, philipj@: approve of the webexposed changes being made?
4 years, 8 months ago (2016-04-08 15:49:04 UTC) #26
philipj_slow
On 2016/04/08 15:49:04, sof wrote: > tkent@, philipj@: approve of the webexposed changes being made? ...
4 years, 8 months ago (2016-04-08 19:44:37 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1860623002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1860623002/160001
4 years, 8 months ago (2016-04-08 20:21:26 UTC) #29
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-08 20:27:43 UTC) #31
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 20:29:54 UTC) #33
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/181f15d385bd66883ed39a58899a25d04838e2fe
Cr-Commit-Position: refs/heads/master@{#386189}

Powered by Google App Engine
This is Rietveld 408576698