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

Issue 3036038: ChromeFrame currently overrides the request context for intercepting network ... (Closed)

Created:
10 years, 4 months ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
amit
CC:
chromium-reviews, ben+cc_chromium.org, Erik does not do reviews, Paweł Hajdan Jr., Aaron Boodman, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, willchan no longer on Chromium
Visibility:
Public.

Description

ChromeFrame currently overrides the request context for intercepting network requests and cookie requests to route them over the automation channel. This adds needless complexity and race conditions between registering a request context for a renderer process as the first one wins. We no longer override the request context in ChromeFrame. For cookie requests we look up the registered render view map and on finding one we route the request over the automation channel. Fixes bug http://code.google.com/p/chromium/issues/detail?id=51103 Bug=51103 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54867

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -377 lines) Patch
D chrome/browser/automation/automation_profile_impl.h View 1 2 3 1 chunk +0 lines, -26 lines 0 comments Download
D chrome/browser/automation/automation_profile_impl.cc View 1 2 3 1 chunk +0 lines, -203 lines 0 comments Download
M chrome/browser/automation/automation_provider.cc View 1 2 3 2 chunks +2 lines, -12 lines 0 comments Download
M chrome/browser/automation/automation_resource_message_filter.h View 1 2 3 4 chunks +19 lines, -7 lines 0 comments Download
M chrome/browser/automation/automation_resource_message_filter.cc View 1 2 3 10 chunks +101 lines, -28 lines 0 comments Download
M chrome/browser/background_contents_service.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/external_tab_container_win.h View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/external_tab_container_win.cc View 1 2 3 3 chunks +0 lines, -17 lines 0 comments Download
M chrome/browser/notifications/balloon_host.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/browser_render_process_host.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/browser_render_process_host.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/mock_render_process_host.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/mock_render_process_host.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_process_host.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.h View 1 2 3 4 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 3 8 chunks +32 lines, -20 lines 2 comments Download
M chrome/browser/renderer_host/test/test_render_view_host.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/test/test_render_view_host.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/tab_contents/interstitial_page.cc View 1 2 3 1 chunk +1 line, -6 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 2 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/tab_contents/test_tab_contents.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/visitedlink_unittest.cc View 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ananta
10 years, 4 months ago (2010-08-03 22:40:07 UTC) #1
amit
LGTM! Thanks for getting rid of UrlRequestContext override for Automation and related muck. http://codereview.chromium.org/3036038/diff/1/5 File ...
10 years, 4 months ago (2010-08-04 00:30:01 UTC) #2
ananta
http://codereview.chromium.org/3036038/diff/1/5 File chrome/browser/automation/automation_resource_message_filter.cc (right): http://codereview.chromium.org/3036038/diff/1/5#newcode35 chrome/browser/automation/automation_resource_message_filter.cc:35: // CookieStore specialization to have automation specific On 2010/08/04 ...
10 years, 4 months ago (2010-08-04 01:25:17 UTC) #3
willchan no longer on Chromium
http://codereview.chromium.org/3036038/diff/2003/chrome/browser/renderer_host/resource_message_filter.cc File chrome/browser/renderer_host/resource_message_filter.cc (right): http://codereview.chromium.org/3036038/diff/2003/chrome/browser/renderer_host/resource_message_filter.cc#newcode565 chrome/browser/renderer_host/resource_message_filter.cc:565: context); I was doing a refactor of this code ...
9 years, 9 months ago (2011-03-23 02:21:21 UTC) #4
ananta
9 years, 9 months ago (2011-03-23 03:39:29 UTC) #5
http://codereview.chromium.org/3036038/diff/2003/chrome/browser/renderer_host...
File chrome/browser/renderer_host/resource_message_filter.cc (right):

http://codereview.chromium.org/3036038/diff/2003/chrome/browser/renderer_host...
chrome/browser/renderer_host/resource_message_filter.cc:565: context);
On 2011/03/23 02:21:22, willchan wrote:
> I was doing a refactor of this code (now moved to content/). I don't
understand
> how this is not being leaked when CF intercepts it. I don't see the
> AutomationResourceMessageFilter running or deleting this callback. How does
this
> work?

Thanks for catching this. It is definitely being leaked. The callback can be
deleted after sending the IPC over to chrome frame.

Powered by Google App Engine
This is Rietveld 408576698