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

Issue 9808029: Prepending view-source: does not load the source of the userscript. (Closed)

Created:
8 years, 9 months ago by chebert
Modified:
8 years, 7 months ago
CC:
clintstaley, mitchellwrosen, rdevlin.cronin_gmail.com, eriq.augustine_gmail.com, cduvall
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Prepending view-source: does not load the source of the userscript. Instead, Chrome attempts to install the userscript. BUG=Prepending "view-source:" to userscripts' URLs is ignored TEST=Load userscript with "view-source:" pre-pended. Expected: source code is seen. Load userscript w/o "view-source:". Expected: dialog appears to install userscript. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135271

Patch Set 1 : Removed extra logging code. #

Total comments: 8

Patch Set 2 : No more WebKit. #

Patch Set 3 : Removed comments. #

Total comments: 8

Patch Set 4 : Navigation State instead of member data. #

Patch Set 5 : TabContents is now WebContentsImpl #

Total comments: 1

Patch Set 6 : Nit-fix #

Patch Set 7 : Unittest adjusted to match change in ResourceRequest #

Patch Set 8 : allow_download_(true) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -4 lines) Patch
M content/browser/renderer_host/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/request_extra_data.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M content/common/request_extra_data.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/resource_dispatcher.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/resource_dispatcher_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/common/resource_messages.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/renderer/navigation_state.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M content/public/renderer/navigation_state.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
chebert
This won't compile. One of the files was missed in my git-cl upload, so you ...
8 years, 9 months ago (2012-03-26 23:01:00 UTC) #1
darin (slow to review)
I think there should be a better way to implement this. Passing the virtual URL ...
8 years, 9 months ago (2012-03-27 03:20:49 UTC) #2
darin (slow to review)
See also RenderView::willSendRequest. That gives you a way to tag additional fields on the WebURLRequest ...
8 years, 9 months ago (2012-03-27 03:23:47 UTC) #3
chebert
On 2012/03/27 03:23:47, darin wrote: > See also RenderView::willSendRequest. That gives you a way to ...
8 years, 8 months ago (2012-03-31 21:03:10 UTC) #4
chebert
http://codereview.chromium.org/9808029/diff/2001/content/browser/renderer_host/buffered_resource_handler.cc File content/browser/renderer_host/buffered_resource_handler.cc (right): http://codereview.chromium.org/9808029/diff/2001/content/browser/renderer_host/buffered_resource_handler.cc#newcode352 content/browser/renderer_host/buffered_resource_handler.cc:352: if (request_->virtual_url().SchemeIs(chrome::kViewSourceScheme)) On 2012/03/27 03:20:49, darin wrote: > while ...
8 years, 8 months ago (2012-03-31 21:03:18 UTC) #5
chebert
Also note: If you are running a build of 128744 or later, you might have ...
8 years, 8 months ago (2012-03-31 21:19:12 UTC) #6
darin (slow to review)
http://codereview.chromium.org/9808029/diff/9011/content/common/resource_messages.h File content/common/resource_messages.h (right): http://codereview.chromium.org/9808029/diff/9011/content/common/resource_messages.h#newcode62 content/common/resource_messages.h:62: IPC_STRUCT_MEMBER(bool, allow_download) any rhyme or reason for inserting this ...
8 years, 8 months ago (2012-04-03 21:56:20 UTC) #7
chebert
http://codereview.chromium.org/9808029/diff/9011/content/common/view_messages.h File content/common/view_messages.h (right): http://codereview.chromium.org/9808029/diff/9011/content/common/view_messages.h#newcode593 content/common/view_messages.h:593: IPC_STRUCT_MEMBER(bool, allow_download) On 2012/04/03 21:56:20, darin wrote: > ditto... ...
8 years, 8 months ago (2012-04-03 22:13:22 UTC) #8
chebert
Alright. I reviewed the code and what you suggested, and I *think* I understand what ...
8 years, 8 months ago (2012-04-07 01:06:44 UTC) #9
chebert
8 years, 8 months ago (2012-04-17 00:04:41 UTC) #10
chebert
brettw: Would you mind taking a look at this for me?
8 years, 8 months ago (2012-04-24 20:45:29 UTC) #11
darin (slow to review)
LGTM w/ nits fixed https://chromiumcodereview.appspot.com/9808029/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://chromiumcodereview.appspot.com/9808029/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode218 content/browser/web_contents/web_contents_impl.cc:218: // We only want to ...
8 years, 8 months ago (2012-04-26 21:54:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hebert.christopherj@chromium.org/9808029/25001
8 years, 8 months ago (2012-04-27 00:51:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hebert.christopherj@chromium.org/9808029/31003
8 years, 8 months ago (2012-04-27 01:47:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hebert.christopherj@chromium.org/9808029/39001
8 years, 8 months ago (2012-04-27 23:59:13 UTC) #15
commit-bot: I haz the power
Try job failure for 9808029-39001 (retry) on linux_rel for step "browser_tests". It's a second try, ...
8 years, 8 months ago (2012-04-28 01:11:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hebert.christopherj@chromium.org/9808029/39001
8 years, 8 months ago (2012-04-28 01:12:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hebert.christopherj@chromium.org/9808029/39001
8 years, 8 months ago (2012-04-28 01:14:42 UTC) #18
commit-bot: I haz the power
Try job failure for 9808029-39001 (retry) on linux_rel for step "browser_tests". It's a second try, ...
8 years, 8 months ago (2012-04-28 02:13:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hebert.christopherj@chromium.org/9808029/52003
8 years, 7 months ago (2012-05-04 00:02:42 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hebert.christopherj@chromium.org/9808029/60003
8 years, 7 months ago (2012-05-04 00:18:00 UTC) #21
commit-bot: I haz the power
8 years, 7 months ago (2012-05-04 01:47:13 UTC) #22
Change committed as 135271

Powered by Google App Engine
This is Rietveld 408576698