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

Issue 2518763002: MD Settings: Allow trailing slashes in otherwise valid URLs. (Closed)

Created:
4 years, 1 month ago by dpapad
Modified:
4 years ago
Reviewers:
tommycli
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Allow trailing slashes in otherwise valid URLs. BUG=615242 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/67c02ed84a243982e46ed96bdf392ee213b5fef1 Cr-Commit-Position: refs/heads/master@{#434816}

Patch Set 1 #

Patch Set 2 : Fix case of / #

Total comments: 5

Patch Set 3 : Beef up the regexp. #

Total comments: 4

Patch Set 4 : add more assertions #

Patch Set 5 : Nit per Tommy's comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -4 lines) Patch
M chrome/browser/resources/settings/route.js View 1 2 3 4 1 chunk +14 lines, -4 lines 0 comments Download
M chrome/test/data/webui/settings/route_tests.js View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (23 generated)
dpapad
Could not find an easy way to write a test for this. navigateTo() accepts Route ...
4 years ago (2016-11-23 21:32:08 UTC) #12
tommycli
On 2016/11/23 21:32:08, dpapad wrote: > Could not find an easy way to write a ...
4 years ago (2016-11-23 22:07:08 UTC) #13
tommycli
thanks for the in-person explanation. production code lgtm. whole thing lgtm assuming adding those tests ...
4 years ago (2016-11-23 22:33:46 UTC) #14
dpapad
https://codereview.chromium.org/2518763002/diff/20001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2518763002/diff/20001/chrome/browser/resources/settings/route.js#newcode249 chrome/browser/resources/settings/route.js:249: return Route[key].path == (path == '/' ? path : ...
4 years ago (2016-11-23 22:57:20 UTC) #15
dpapad
@tommycli: PTAL. I modified this CL since original LG, by beefing up the regular expression ...
4 years ago (2016-11-23 23:55:04 UTC) #18
tommycli
lgtm nit: https://codereview.chromium.org/2518763002/diff/40001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2518763002/diff/40001/chrome/browser/resources/settings/route.js#newcode245 chrome/browser/resources/settings/route.js:245: var CANONICAL_PATH_REGEX = /(^\/)([\/-\w]{1,})(\/$)/; Any particular reason ...
4 years ago (2016-11-24 00:02:52 UTC) #19
tommycli
https://codereview.chromium.org/2518763002/diff/40001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2518763002/diff/40001/chrome/browser/resources/settings/route.js#newcode245 chrome/browser/resources/settings/route.js:245: var CANONICAL_PATH_REGEX = /(^\/)([\/-\w]{1,})(\/$)/; On 2016/11/24 00:02:51, tommycli wrote: ...
4 years ago (2016-11-24 00:04:07 UTC) #20
dpapad
https://codereview.chromium.org/2518763002/diff/40001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2518763002/diff/40001/chrome/browser/resources/settings/route.js#newcode245 chrome/browser/resources/settings/route.js:245: var CANONICAL_PATH_REGEX = /(^\/)([\/-\w]{1,})(\/$)/; On 2016/11/24 at 00:04:07, tommycli ...
4 years ago (2016-11-24 00:07:41 UTC) #21
dpapad
https://codereview.chromium.org/2518763002/diff/40001/chrome/browser/resources/settings/route.js File chrome/browser/resources/settings/route.js (right): https://codereview.chromium.org/2518763002/diff/40001/chrome/browser/resources/settings/route.js#newcode245 chrome/browser/resources/settings/route.js:245: var CANONICAL_PATH_REGEX = /(^\/)([\/-\w]{1,})(\/$)/; On 2016/11/24 at 00:07:41, dpapad ...
4 years ago (2016-11-24 01:54:09 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2518763002/80001
4 years ago (2016-11-24 01:55:17 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years ago (2016-11-24 03:56:35 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2518763002/80001
4 years ago (2016-11-28 19:05:39 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/343456)
4 years ago (2016-11-28 19:40:41 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2518763002/80001
4 years ago (2016-11-29 00:28:34 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-11-29 01:41:44 UTC) #37
commit-bot: I haz the power
4 years ago (2016-11-29 01:48:01 UTC) #39
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/67c02ed84a243982e46ed96bdf392ee213b5fef1
Cr-Commit-Position: refs/heads/master@{#434816}

Powered by Google App Engine
This is Rietveld 408576698