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

Issue 655023002: Fix view-source url creation logic (Closed)

Created:
6 years, 2 months ago by sgurun-gerrit only
Modified:
6 years, 2 months ago
Reviewers:
joth, brettw, sky
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix view-source url creation logic BUG=336846 The logic to create a view-source URL from a non-view-source URL has the incorrect assumption that the URL path includes both the query and the fragment parts. This causes these parts to be repeated after the transformation. Committed: https://crrev.com/939a726c563033b68a307faaad16ddab06e05849 Cr-Commit-Position: refs/heads/master@{#299752}

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -6 lines) Patch
M content/browser/browser_url_handler_impl.cc View 1 chunk +2 lines, -6 lines 5 comments Download

Messages

Total messages: 23 (6 generated)
sgurun-gerrit only
On 2014/10/14 19:17:24, sgurun_OOO_until_Oct5 wrote: > mailto:sgurun@chromium.org changed reviewers: > + mailto:sky@chromium.org @sky, PTAL, thanks!
6 years, 2 months ago (2014-10-14 19:17:47 UTC) #2
sky
https://codereview.chromium.org/655023002/diff/1/content/browser/browser_url_handler_impl.cc File content/browser/browser_url_handler_impl.cc (right): https://codereview.chromium.org/655023002/diff/1/content/browser/browser_url_handler_impl.cc#newcode66 content/browser/browser_url_handler_impl.cc:66: *url = GURL(kViewSourceScheme + std::string(":") + url->spec()); Doesn't gurl ...
6 years, 2 months ago (2014-10-14 19:56:31 UTC) #3
sgurun-gerrit only
https://codereview.chromium.org/655023002/diff/1/content/browser/browser_url_handler_impl.cc File content/browser/browser_url_handler_impl.cc (right): https://codereview.chromium.org/655023002/diff/1/content/browser/browser_url_handler_impl.cc#newcode66 content/browser/browser_url_handler_impl.cc:66: *url = GURL(kViewSourceScheme + std::string(":") + url->spec()); On 2014/10/14 ...
6 years, 2 months ago (2014-10-14 21:02:52 UTC) #4
sky
+brettw for url replacements usage.
6 years, 2 months ago (2014-10-14 22:56:38 UTC) #6
brettw
I think in this case the new code is the clearest. LGTM
6 years, 2 months ago (2014-10-15 03:19:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/655023002/1
6 years, 2 months ago (2014-10-15 04:57:16 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/17718)
6 years, 2 months ago (2014-10-15 05:04:28 UTC) #11
sgurun-gerrit only
On 2014/10/15 05:04:28, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 2 months ago (2014-10-15 17:25:24 UTC) #12
sky
LGTM
6 years, 2 months ago (2014-10-15 19:13:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/655023002/1
6 years, 2 months ago (2014-10-15 19:16:38 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 2 months ago (2014-10-15 20:21:25 UTC) #16
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/939a726c563033b68a307faaad16ddab06e05849 Cr-Commit-Position: refs/heads/master@{#299752}
6 years, 2 months ago (2014-10-15 20:22:04 UTC) #17
Mark P
Drive-by comment: is it possible to add a test for this? I tend to think ...
6 years, 2 months ago (2014-10-15 20:51:31 UTC) #18
sgurun-gerrit only
On 2014/10/15 20:51:31, Mark P wrote: > Drive-by comment: > is it possible to add ...
6 years, 2 months ago (2014-10-15 22:48:18 UTC) #19
joth
https://codereview.chromium.org/655023002/diff/1/content/browser/browser_url_handler_impl.cc File content/browser/browser_url_handler_impl.cc (right): https://codereview.chromium.org/655023002/diff/1/content/browser/browser_url_handler_impl.cc#newcode66 content/browser/browser_url_handler_impl.cc:66: *url = GURL(kViewSourceScheme + std::string(":") + url->spec()); Thanks for ...
6 years, 2 months ago (2014-10-17 20:18:40 UTC) #21
sgurun-gerrit only
https://codereview.chromium.org/655023002/diff/1/content/browser/browser_url_handler_impl.cc File content/browser/browser_url_handler_impl.cc (right): https://codereview.chromium.org/655023002/diff/1/content/browser/browser_url_handler_impl.cc#newcode66 content/browser/browser_url_handler_impl.cc:66: *url = GURL(kViewSourceScheme + std::string(":") + url->spec()); On 2014/10/17 ...
6 years, 2 months ago (2014-10-17 20:35:35 UTC) #22
sgurun-gerrit only
6 years, 2 months ago (2014-10-17 20:37:40 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/655023002/diff/1/content/browser/browser_url_...
File content/browser/browser_url_handler_impl.cc (right):

https://codereview.chromium.org/655023002/diff/1/content/browser/browser_url_...
content/browser/browser_url_handler_impl.cc:66: *url = GURL(kViewSourceScheme +
std::string(":") + url->spec());
On 2014/10/17 20:35:35, sgurun wrote:
> On 2014/10/17 20:18:39, joth (inactive) wrote:
> > Thanks for fixing my bug! (well, bug my cl exposed :)
> > 
> > worth adding some regression tests for ReverseViewSource with a couple of
the
> > example URLs from the bug report?
> 
> Rather then regression tests, I have written a unit test, which I think was
more
> appropriate in this case.
> https://codereview.chromium.org/659153003/


haha I think I read regression as integration tests :) yeah wrote a unit test.

Powered by Google App Engine
This is Rietveld 408576698