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

Issue 1442643008: Implement 'URLSearchParams' (Closed)

Created:
5 years, 1 month ago by Mike West
Modified:
5 years, 1 month ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, Inactive, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof, vivekg_samsung, vivekg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement 'URLSearchParams' This patch implements the 'URLSearchParams' interface (https://url.spec.whatwg.org/#interface-urlsearchparams), extracted from Sigbjorn's excellent https://codereview.chromium.org/143313002/. The bits of that patch which integrate 'URLSearchParams' with 'URL' and 'URLUtils' are dependent on Node moving to Oilpan, and will be added in a subsequent patch. Intent to Implement and Ship: https://groups.google.com/a/chromium.org/d/msg/blink-dev/grHZDbldP04/JdsoQ169AQAJ BUG=303152 Committed: https://crrev.com/dff906eef78f37d1b44bb67785440366245ddb9d Cr-Commit-Position: refs/heads/master@{#360086}

Patch Set 1 #

Total comments: 17

Patch Set 2 : sof #

Total comments: 7

Patch Set 3 : nits #

Total comments: 23

Patch Set 4 : webexposed #

Patch Set 5 : Feedback. #

Patch Set 6 : Dropping assert_object_equals #

Patch Set 7 : Ugh. #

Total comments: 8

Patch Set 8 : Nits. #

Patch Set 9 : Test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1302 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/fast/domurl/resources/urlsearchparams-worker.js View 1 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-append.html View 1 1 chunk +51 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-constructor.html View 1 2 3 4 5 6 1 chunk +163 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-delete.html View 1 1 chunk +42 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-get.html View 1 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-getall.html View 1 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-has.html View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-iterable.html View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-set.html View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-stringifier.html View 1 2 3 4 5 6 7 1 chunk +146 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-stringifier-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +270 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-worker.html View 1 1 chunk +12 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 1 chunk +13 lines, -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 1 chunk +13 lines, -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 +13 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 1 chunk +13 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 +13 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 chunks +3 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/URLSearchParams.h View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/URLSearchParams.cpp View 1 2 3 4 5 6 7 1 chunk +188 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/dom/URLSearchParams.idl View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
Mike West
Hi Jochen, Philip, and Sigbjorn! Would you mind taking a look at this patch? Sigbjorn ...
5 years, 1 month ago (2015-11-13 14:16:02 UTC) #2
sof
https://codereview.chromium.org/1442643008/diff/1/third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js File third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js (right): https://codereview.chromium.org/1442643008/diff/1/third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js#newcode7 third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js:7: function assert_throws_message(func, expected, name) { This helper doesn't appear ...
5 years, 1 month ago (2015-11-15 09:04:11 UTC) #3
Mike West
Thanks for taking a look, Sigbjorn! https://codereview.chromium.org/1442643008/diff/1/third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js File third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js (right): https://codereview.chromium.org/1442643008/diff/1/third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js#newcode7 third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js:7: function assert_throws_message(func, expected, ...
5 years, 1 month ago (2015-11-16 08:57:57 UTC) #5
sof
Expected output of various other tests that check what's provided by global objects need to ...
5 years, 1 month ago (2015-11-16 10:11:53 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1442643008/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1442643008/40001
5 years, 1 month ago (2015-11-16 10:35:16 UTC) #8
Mike West
On 2015/11/16 at 10:11:53, sigbjornf wrote: > Expected output of various other tests that check ...
5 years, 1 month ago (2015-11-16 10:35:25 UTC) #9
sof
lgtm
5 years, 1 month ago (2015-11-16 11:35:40 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-16 11:47:29 UTC) #12
philipj_slow
Will also take a look at tests. https://codereview.chromium.org/1442643008/diff/20001/third_party/WebKit/Source/core/dom/URLSearchParams.idl File third_party/WebKit/Source/core/dom/URLSearchParams.idl (right): https://codereview.chromium.org/1442643008/diff/20001/third_party/WebKit/Source/core/dom/URLSearchParams.idl#newcode8 third_party/WebKit/Source/core/dom/URLSearchParams.idl:8: Constructor(), Does ...
5 years, 1 month ago (2015-11-16 12:15:46 UTC) #13
philipj_slow
lgtm % nits I wouldn't mind taking another look, but if I'm slow to respond ...
5 years, 1 month ago (2015-11-16 12:47:09 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1442643008/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1442643008/80001
5 years, 1 month ago (2015-11-16 14:11:28 UTC) #16
Mike West
I see new comments! I'll address them while you skim the new code. :) https://codereview.chromium.org/1442643008/diff/20001/third_party/WebKit/Source/core/dom/URLSearchParams.idl ...
5 years, 1 month ago (2015-11-16 14:12:11 UTC) #17
philipj_slow
Off-topic: There's a bit of duplication in MediaFragmentURIParser. The spec (currently unmaintained) would have to ...
5 years, 1 month ago (2015-11-16 14:17:33 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-16 15:50:44 UTC) #21
Mike West
WDYT, Philip? https://codereview.chromium.org/1442643008/diff/40001/third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js File third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js (right): https://codereview.chromium.org/1442643008/diff/40001/third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js#newcode9 third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js:9: function assert_syntax_error(f, msg) { On 2015/11/16 at ...
5 years, 1 month ago (2015-11-17 10:23:26 UTC) #22
philipj_slow
lgtm % minor nits https://codereview.chromium.org/1442643008/diff/140001/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-stringifier-expected.txt File third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-stringifier-expected.txt (right): https://codereview.chromium.org/1442643008/diff/140001/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-stringifier-expected.txt#newcode43 third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-stringifier-expected.txt:43: ' On 2015/11/17 10:23:26, Mike ...
5 years, 1 month ago (2015-11-17 11:00:17 UTC) #23
Mike West
Thanks! https://codereview.chromium.org/1442643008/diff/140001/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-stringifier-expected.txt File third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-stringifier-expected.txt (right): https://codereview.chromium.org/1442643008/diff/140001/third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-stringifier-expected.txt#newcode43 third_party/WebKit/LayoutTests/fast/domurl/urlsearchparams-stringifier-expected.txt:43: ' On 2015/11/17 at 11:00:17, philipj wrote: > ...
5 years, 1 month ago (2015-11-17 12:39:37 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1442643008/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1442643008/160001
5 years, 1 month ago (2015-11-17 12:40:00 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/141765)
5 years, 1 month ago (2015-11-17 13:40:38 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1442643008/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1442643008/180001
5 years, 1 month ago (2015-11-17 14:10:12 UTC) #32
commit-bot: I haz the power
Committed patchset #9 (id:180001)
5 years, 1 month ago (2015-11-17 16:24:34 UTC) #33
commit-bot: I haz the power
5 years, 1 month ago (2015-11-17 16:25:30 UTC) #34
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/dff906eef78f37d1b44bb67785440366245ddb9d
Cr-Commit-Position: refs/heads/master@{#360086}

Powered by Google App Engine
This is Rietveld 408576698