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

Issue 3066004: ChromeFrame cookie requests would incorrectly get routed to the first host br... (Closed)

Created:
10 years, 4 months ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
amit, Jeff Timanus
CC:
chromium-reviews, Paweł Hajdan Jr., ben+cc_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, Eric Dingle
Visibility:
Public.

Description

ChromeFrame cookie requests would incorrectly get routed to the first host browser connected to the renderer. This basically meant that if the browser process exited then other popups could not query cookies from the host. Part of the fix for http://b/issue?id=2277519 Bug=2277519 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53757

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -166 lines) Patch
M chrome/browser/automation/automation_profile_impl.cc View 2 chunks +8 lines, -21 lines 0 comments Download
M chrome/browser/automation/automation_resource_message_filter.h View 1 6 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/automation/automation_resource_message_filter.cc View 1 2 11 chunks +72 lines, -25 lines 1 comment Download
M chrome/browser/renderer_host/resource_message_filter.h View 1 2 1 chunk +57 lines, -0 lines 2 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 4 chunks +85 lines, -113 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
ananta
10 years, 4 months ago (2010-07-26 20:58:36 UTC) #1
amit
[+cc ericdingle, Ananta figured out that the routing id is available in cookie messages so ...
10 years, 4 months ago (2010-07-26 21:28:25 UTC) #2
ananta
http://codereview.chromium.org/3066004/diff/7001/8002 File chrome/browser/automation/automation_resource_message_filter.cc (right): http://codereview.chromium.org/3066004/diff/7001/8002#newcode361 chrome/browser/automation/automation_resource_message_filter.cc:361: automation_details_iter->second.filter->Send( On 2010/07/26 21:28:25, amit wrote: > if (filter) ...
10 years, 4 months ago (2010-07-26 21:39:08 UTC) #3
Jeff Timanus
Eric passed this review on to me. Looks good, but I don't think it will ...
10 years, 4 months ago (2010-07-27 18:14:12 UTC) #4
ananta
10 years, 4 months ago (2010-07-27 19:15:53 UTC) #5
Hi Twiz

I will address these comments in a followup CL.

Thanks
Ananta

On Tue, Jul 27, 2010 at 11:14 AM, <twiz@chromium.org> wrote:

> Eric passed this review on to me.
>
> Looks good, but I don't think it will solve the cookie routing issues fixed
> in a
> separate CL, here:  http://codereview.chromium.org/2961007/show
>
> This will ensure that the correct host browser will receive the cookie
> request,
> but not that Chrome will provide the proper routing-id when making cookie
> requests via Javascript.
>
>
>
> http://codereview.chromium.org/3066004/diff/14001/15002
>
> File chrome/browser/automation/automation_resource_message_filter.cc
> (right):
>
> http://codereview.chromium.org/3066004/diff/14001/15002#newcode348
> chrome/browser/automation/automation_resource_message_filter.cc:348:
> get_cookies_callback->render_view_id())));
> Nit:  4 space indents.
>
> http://codereview.chromium.org/3066004/diff/14001/15004
> File chrome/browser/renderer_host/resource_message_filter.cc (right):
>
> http://codereview.chromium.org/3066004/diff/14001/15004#newcode618
> chrome/browser/renderer_host/resource_message_filter.cc:618: reply_msg,
> this, context, true);
> This will correctly pass the renderer identification to the cookie
> routing mechanism, but there is still a problem here - multiple
> different RenderViews may share the same ResourceMessageFilter.  The
> first to install the context will win - for example, an extension
> background page that does not have the AutomationMessageFilter
> configured will force all subsequent users of this ResourceMessageFilter
> to use the Chrome cookie jar.
>
> http://codereview.chromium.org/3066004/diff/14001/15005
>
> File chrome/browser/renderer_host/resource_message_filter.h (right):
>
> http://codereview.chromium.org/3066004/diff/14001/15005#newcode473
> chrome/browser/renderer_host/resource_message_filter.h:473:
> scoped_refptr<ChromeURLRequestContext> context_;
> Nit:  Disallow copy & assign?
>
> http://codereview.chromium.org/3066004/diff/14001/15005#newcode502
> chrome/browser/renderer_host/resource_message_filter.h:502: bool
> raw_cookies_;
> Disallow copy and assign here too?
>
>
> http://codereview.chromium.org/3066004/show
>

Powered by Google App Engine
This is Rietveld 408576698