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

Issue 1409293007: new URL('') should throw TypeError (Closed)

Created:
5 years, 1 month ago by ramya.v
Modified:
5 years ago
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

new URL('') should throw TypeError As per the spec https://url.spec.whatwg.org/#no-scheme-state If base url is null or not relative and starting character of url is not # return failure. So empty url should also throw exception in this case. Few tests related to autofill were failing after this change, because empty action url is by default resolved to base url before this patch. Made appropriate code changes as empty action url can be equal to base url only for relative base urls. BUG=463961 Committed: https://crrev.com/56d42205139458d71b64a9b2f773b4445460e3a6 Cr-Commit-Position: refs/heads/master@{#362589}

Patch Set 1 #

Patch Set 2 : Updated testcase expectations #

Patch Set 3 : Updating test expectations #

Total comments: 9

Patch Set 4 : Updated as per review comments #

Patch Set 5 : Updated comments #

Total comments: 2

Patch Set 6 : Added unittest case #

Patch Set 7 : Updated testcase #

Messages

Total messages: 48 (15 generated)
ramya.v
PTAL! Thanks.
5 years, 1 month ago (2015-11-04 19:20:36 UTC) #2
rwlbuis
On 2015/11/04 19:20:36, ramya.v wrote: > PTAL! > Thanks. Looks good, but are the autofill ...
5 years, 1 month ago (2015-11-04 20:07:35 UTC) #3
ramya.v
On 2015/11/04 20:07:35, rwlbuis wrote: > On 2015/11/04 19:20:36, ramya.v wrote: > > PTAL! > ...
5 years, 1 month ago (2015-11-05 04:49:00 UTC) #4
rwlbuis
On 2015/11/05 04:49:00, ramya.v wrote: > On 2015/11/04 20:07:35, rwlbuis wrote: > > On 2015/11/04 ...
5 years, 1 month ago (2015-11-05 19:22:08 UTC) #5
ramya.v
On 2015/11/05 19:22:08, rwlbuis wrote: > On 2015/11/05 04:49:00, ramya.v wrote: > > On 2015/11/04 ...
5 years, 1 month ago (2015-11-06 04:20:42 UTC) #8
vabr (Chromium)
Files with *password* in the name LGTM, with some comments and a question, which I ...
5 years, 1 month ago (2015-11-06 11:24:14 UTC) #10
ramya.v
@Vaclav PTAL! Thanks. https://codereview.chromium.org/1409293007/diff/40001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/1409293007/diff/40001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode556 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:556: fill_data_.action = GURL(""); On 2015/11/06 11:24:14, ...
5 years, 1 month ago (2015-11-06 13:45:14 UTC) #11
vabr (Chromium)
Thanks for addressing my comments! Files with *password* in the name still LGTM. Cheers, Vaclav ...
5 years, 1 month ago (2015-11-06 14:08:54 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1409293007/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1409293007/80001
5 years, 1 month ago (2015-11-06 14:40:17 UTC) #14
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/116291)
5 years, 1 month ago (2015-11-06 14:48:41 UTC) #16
ramya.v
Added owners of form_autofill_util.cc url_canon_relative.cc @Evan & Abarth Could you please take a look. Thanks
5 years, 1 month ago (2015-11-07 01:18:03 UTC) #18
vabr (Chromium)
As of yesterday I can actually also review //components/autofill, so jumping in place of Evan: ...
5 years, 1 month ago (2015-11-10 09:49:37 UTC) #19
ramya.v
On 2015/11/10 09:49:37, vabr (Chromium) wrote: > As of yesterday I can actually also review ...
5 years, 1 month ago (2015-11-13 03:32:05 UTC) #20
rwlbuis
On 2015/11/13 03:32:05, ramya.v wrote: > On 2015/11/10 09:49:37, vabr (Chromium) wrote: > > As ...
5 years, 1 month ago (2015-11-19 21:15:44 UTC) #21
Evan Stade
On 2015/11/19 21:15:44, rwlbuis wrote: > On 2015/11/13 03:32:05, ramya.v wrote: > > On 2015/11/10 ...
5 years, 1 month ago (2015-11-19 22:01:09 UTC) #22
rwlbuis
On 2015/11/19 22:01:09, Evan Stade wrote: > > @ramya I don't think abarth is actively ...
5 years, 1 month ago (2015-11-19 22:11:01 UTC) #23
Evan Stade
On 2015/11/19 22:11:01, rwlbuis wrote: > On 2015/11/19 22:01:09, Evan Stade wrote: > > > ...
5 years, 1 month ago (2015-11-19 23:06:35 UTC) #24
ramya.v
On 2015/11/19 23:06:35, Evan Stade wrote: > On 2015/11/19 22:11:01, rwlbuis wrote: > > On ...
5 years, 1 month ago (2015-11-20 03:38:26 UTC) #26
vabr (Chromium)
On 2015/11/19 22:01:09, Evan Stade wrote: > On 2015/11/19 21:15:44, rwlbuis wrote: > > On ...
5 years, 1 month ago (2015-11-20 13:10:50 UTC) #27
ramya.v
On 2015/11/20 13:10:50, vabr (Chromium) wrote: > On 2015/11/19 22:01:09, Evan Stade wrote: > > ...
5 years ago (2015-11-25 09:20:02 UTC) #28
ramya.v
@Tom Looks like brettw and abarth are not available. Could you please review changes related ...
5 years ago (2015-11-27 11:00:39 UTC) #30
Tom Sepez
lgtm
5 years ago (2015-11-27 21:30:33 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1409293007/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1409293007/80001
5 years ago (2015-11-28 10:08:30 UTC) #33
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/122947)
5 years ago (2015-11-28 10:15:41 UTC) #35
ramya.v
On 2015/11/28 10:15:41, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years ago (2015-11-30 03:44:12 UTC) #36
vabr (Chromium)
On 2015/11/30 03:44:12, ramya.v wrote: > On 2015/11/28 10:15:41, commit-bot: I haz the power wrote: ...
5 years ago (2015-11-30 10:02:53 UTC) #37
ramya.v
On 2015/11/30 10:02:53, vabr (Chromium) wrote: > On 2015/11/30 03:44:12, ramya.v wrote: > > On ...
5 years ago (2015-11-30 11:42:35 UTC) #38
brettw
https://codereview.chromium.org/1409293007/diff/80001/url/url_canon_relative.cc File url/url_canon_relative.cc (right): https://codereview.chromium.org/1409293007/diff/80001/url/url_canon_relative.cc#newcode78 url/url_canon_relative.cc:78: if (!is_base_hierarchical) { We should get a test for ...
5 years ago (2015-11-30 17:46:18 UTC) #39
ramya.v
@brett Updated as per review comments. PTAL! Thanks. https://codereview.chromium.org/1409293007/diff/80001/url/url_canon_relative.cc File url/url_canon_relative.cc (right): https://codereview.chromium.org/1409293007/diff/80001/url/url_canon_relative.cc#newcode78 url/url_canon_relative.cc:78: if ...
5 years ago (2015-12-01 07:37:03 UTC) #40
brettw
src/url LGTM
5 years ago (2015-12-01 17:44:02 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1409293007/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1409293007/120001
5 years ago (2015-12-02 00:17:23 UTC) #44
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years ago (2015-12-02 02:24:54 UTC) #46
commit-bot: I haz the power
5 years ago (2015-12-02 02:25:40 UTC) #48
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/56d42205139458d71b64a9b2f773b4445460e3a6
Cr-Commit-Position: refs/heads/master@{#362589}

Powered by Google App Engine
This is Rietveld 408576698