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

Issue 23835019: Support URL fragment resolution againt non-hierarchical schemes (Closed)

Created:
7 years, 3 months ago by joth
Modified:
7 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, mkosiba (inactive)
Visibility:
Public.

Description

Support URL fragment resolution against non-hierarchical schemes Support URL fragment resolution against non-hierarchical schemes As a result, data: about: etc now have 'query' and 'ref' components parsed; as a result a new GURL::GetContent() convenience is added to retrieve the spec with the scheme stripped off. A complication in supporting this is that we now need to allow whitespace to trailing whitespace to be preserved when transferring url_parse::Parsed structs between KURL and GURL. Without this, the URL prior to the #fragment can change (i.e. whitespace stripped) when following an anchor link which breaks the page (causes reload from source). See http://crbug.com/291747 for more details on this. R=brettw@chromium.org TBR=cbentzel@chromium.org BUG=291747 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236917

Patch Set 1 #

Patch Set 2 : add back the trim_path_end flag #

Patch Set 3 : clarify docs #

Patch Set 4 : rebase #

Patch Set 5 : space -> %20 #

Patch Set 6 : fix net & webview tag tests #

Total comments: 1

Patch Set 7 : more %20 fixes #

Patch Set 8 : revert to PS4 (plus rebase) #

Patch Set 9 : actually restore PS4 this time #

Total comments: 21

Patch Set 10 : brettw comments 1 #

Total comments: 2

Patch Set 11 : brettw2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -115 lines) Patch
M net/base/net_util_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M url/gurl.h View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -0 lines 0 comments Download
M url/gurl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +31 lines, -35 lines 0 comments Download
M url/gurl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +23 lines, -0 lines 0 comments Download
M url/third_party/mozilla/url_parse.h View 1 5 6 7 8 1 chunk +5 lines, -1 line 0 comments Download
M url/third_party/mozilla/url_parse.cc View 1 2 3 4 5 6 7 8 9 2 chunks +34 lines, -20 lines 0 comments Download
M url/url_canon_pathurl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +41 lines, -23 lines 0 comments Download
M url/url_canon_relative.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -3 lines 0 comments Download
M url/url_canon_unittest.cc View 1 5 6 7 8 5 chunks +13 lines, -10 lines 0 comments Download
M url/url_parse_internal.h View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -5 lines 0 comments Download
M url/url_parse_unittest.cc View 1 5 6 7 8 2 chunks +8 lines, -8 lines 0 comments Download
M url/url_util.h View 1 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M url/url_util.cc View 1 5 6 7 8 6 chunks +10 lines, -6 lines 0 comments Download
M url/url_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
joth
Brett - this is now ready for full review. Notes: - depends on https://codereview.chromium.org/23549039/ for ...
7 years, 3 months ago (2013-09-20 22:59:39 UTC) #1
joth
+abarth,brettw - PTAL as per our separate email conversation, here's the updated version that allows ...
7 years, 2 months ago (2013-10-20 04:31:25 UTC) #2
joth
https://codereview.chromium.org/23835019/diff/324001/chrome/test/data/extensions/platform_apps/web_view/shim/main.js File chrome/test/data/extensions/platform_apps/web_view/shim/main.js (right): https://codereview.chromium.org/23835019/diff/324001/chrome/test/data/extensions/platform_apps/web_view/shim/main.js#newcode714 chrome/test/data/extensions/platform_apps/web_view/shim/main.js:714: embedder.test.assertEq(dataUrl, webview.getAttribute('src')); this is the sort of statement that ...
7 years, 1 month ago (2013-11-01 06:32:54 UTC) #3
brettw
https://codereview.chromium.org/23835019/diff/694001/url/gurl.cc File url/gurl.cc (right): https://codereview.chromium.org/23835019/diff/694001/url/gurl.cc#newcode20 url/gurl.cc:20: // TODO(joth): Move to appropriate place in file, justing ...
7 years, 1 month ago (2013-11-20 00:03:51 UTC) #4
joth
Thanks for the review Brett! Think I got everything. https://codereview.chromium.org/23835019/diff/694001/url/gurl.cc File url/gurl.cc (right): https://codereview.chromium.org/23835019/diff/694001/url/gurl.cc#newcode20 url/gurl.cc:20: ...
7 years, 1 month ago (2013-11-21 00:08:44 UTC) #5
brettw
lgtm https://codereview.chromium.org/23835019/diff/824001/url/url_util_unittest.cc File url/url_util_unittest.cc (right): https://codereview.chromium.org/23835019/diff/824001/url/url_util_unittest.cc#newcode277 url/url_util_unittest.cc:277: {"about:blank", "#id42", true, "about:blank#id42" }, Can you also ...
7 years, 1 month ago (2013-11-21 23:26:07 UTC) #6
joth
Thanks for you time on this Brett! I'll send a PSA to chromium-dev when it ...
7 years, 1 month ago (2013-11-22 06:00:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/23835019/954001
7 years, 1 month ago (2013-11-22 06:03:58 UTC) #8
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=37591
7 years, 1 month ago (2013-11-22 06:18:25 UTC) #9
joth
+cbentzel@chromium.org for net/base/* Thanks!
7 years, 1 month ago (2013-11-22 19:02:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/23835019/954001
7 years, 1 month ago (2013-11-23 00:31:42 UTC) #11
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=37783
7 years, 1 month ago (2013-11-23 00:50:50 UTC) #12
joth
7 years, 1 month ago (2013-11-23 01:54:02 UTC) #13
Message was sent while issue was closed.
Committed patchset #11 manually as r236917 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698