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

Issue 24066010: Implement URLUtils and URL interface (Closed)

Created:
7 years, 3 months ago by arv (Not doing code reviews)
Modified:
7 years, 2 months ago
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org, do-not-use
Visibility:
Public.

Description

Implement URLUtils and URL interface This does not implement the URLQuery part of the URL spec yet. This moves the URLUtils WebIDL attributes from HTMLAnchorElement to URLUtils and let both URL and HTMLAnchorElement implement URLUtils. This allows creating new URL objects using `new URL`, which can later be mutated using the same property names as provided by HTMLAnchorElement and Location. BUG=303152 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159337

Patch Set 1 : Get rid of preUpdateStep #

Patch Set 2 : cleanup #

Patch Set 3 : git rebase #

Total comments: 6

Patch Set 4 : updates based on code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1109 lines, -296 lines) Patch
M LayoutTests/fast/dom/DOMURL/check-instanceof-domurl-functions.html View 1 2 3 1 chunk +0 lines, -30 lines 0 comments Download
D LayoutTests/fast/dom/DOMURL/check-instanceof-domurl-functions-expected.txt View 1 2 3 1 chunk +0 lines, -19 lines 0 comments Download
A + LayoutTests/fast/domurl/check-instanceof-domurl-functions.html View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + LayoutTests/fast/domurl/check-instanceof-domurl-functions-expected.txt View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A LayoutTests/fast/domurl/url-constructor.html View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-constructor-expected.txt View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-hash.html View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-hash-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-host.html View 1 2 3 1 chunk +110 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-host-expected.txt View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-hostname.html View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-hostname-expected.txt View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-href.html View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-href-expected.txt View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-origin.html View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-origin-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-password.html View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-password-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-pathname.html View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-pathname-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-port.html View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-port-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-protocol.html View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-protocol-expected.txt View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-search.html View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-search-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-username.html View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A LayoutTests/fast/domurl/url-username-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M LayoutTests/fast/js/constructor-length.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/js/constructor-length-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/core.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/html/DOMURL.h View 1 2 3 1 chunk +31 lines, -2 lines 0 comments Download
M Source/core/html/DOMURL.cpp View 1 chunk +27 lines, -2 lines 0 comments Download
A + Source/core/html/DOMURLUtils.h View 1 chunk +43 lines, -14 lines 0 comments Download
A Source/core/html/DOMURLUtils.cpp View 1 chunk +275 lines, -0 lines 0 comments Download
M Source/core/html/HTMLAnchorElement.h View 1 2 3 3 chunks +6 lines, -24 lines 0 comments Download
M Source/core/html/HTMLAnchorElement.cpp View 1 2 chunks +20 lines, -168 lines 0 comments Download
M Source/core/html/HTMLAnchorElement.idl View 1 2 2 chunks +1 line, -13 lines 0 comments Download
M Source/core/html/HTMLAreaElement.idl View 1 2 1 chunk +1 line, -10 lines 0 comments Download
M Source/core/html/URL.idl View 1 1 chunk +6 lines, -1 line 0 comments Download
A + Source/core/html/URLUtils.idl View 1 chunk +22 lines, -9 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
arv (Not doing code reviews)
PTAL Eric: You mentioned doing this behind a runtime flag but as far as I ...
7 years, 2 months ago (2013-10-08 22:31:31 UTC) #1
eseidel
I'm not sure what X implements Y translates to. Does it just expose the properties? ...
7 years, 2 months ago (2013-10-08 22:33:23 UTC) #2
arv (Not doing code reviews)
On 2013/10/08 22:33:23, eseidel wrote: > I'm not sure what X implements Y translates to. ...
7 years, 2 months ago (2013-10-08 22:36:40 UTC) #3
eseidel
If it's not observable from JS than I don't care at all about the runtime ...
7 years, 2 months ago (2013-10-08 22:49:05 UTC) #4
arv (Not doing code reviews)
On 2013/10/08 22:49:05, eseidel wrote: > If it's not observable from JS than I don't ...
7 years, 2 months ago (2013-10-09 00:58:22 UTC) #5
arv (Not doing code reviews)
This is now as polished as I can get it.
7 years, 2 months ago (2013-10-09 21:29:49 UTC) #6
abarth-chromium
Can you put these tests in fast/domurl ? There's no need to put them in ...
7 years, 2 months ago (2013-10-10 04:11:55 UTC) #7
abarth-chromium
LGTM We can't share this code with Location too? https://codereview.chromium.org/24066010/diff/18039/Source/core/html/DOMURL.h File Source/core/html/DOMURL.h (right): https://codereview.chromium.org/24066010/diff/18039/Source/core/html/DOMURL.h#newcode71 Source/core/html/DOMURL.h:71: ...
7 years, 2 months ago (2013-10-10 04:17:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/24066010/18039
7 years, 2 months ago (2013-10-10 04:17:54 UTC) #9
arv (Not doing code reviews)
On 2013/10/10 04:11:55, abarth wrote: > Can you put these tests in fast/domurl ? There's ...
7 years, 2 months ago (2013-10-10 12:57:27 UTC) #10
arv (Not doing code reviews)
I was planning on handling Location and WorkerLocation next. Location uses some extended attributes that ...
7 years, 2 months ago (2013-10-10 13:03:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/24066010/37001
7 years, 2 months ago (2013-10-10 13:16:55 UTC) #12
commit-bot: I haz the power
7 years, 2 months ago (2013-10-10 14:46:13 UTC) #13
Message was sent while issue was closed.
Change committed as 159337

Powered by Google App Engine
This is Rietveld 408576698