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

Issue 3051018: Ensure that window.open requests issued by ChromeFrame carry the correct cook... (Closed)

Created:
10 years, 4 months ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
amit, stoyan
CC:
chromium-reviews
Visibility:
Public.

Description

Ensure that window.open requests issued by ChromeFrame carry the correct cookies in the outgoing HTTP requests. To achieve this we no longer issue navigations with the gcf:attach* prefix. We now issue a navigation to the current page URL with the attach external tab suffix, which indicates that the page is forced into ChromeFrame without making an actual HTTP request. This ensures that the new IE8 process has access to all HTTP cookies. We need to patch IInternetProtocol::LockRequest and UnlockRequest to not call the underlying implementations for our dummy request as this crashes in IE8 in the prebinding code path. Fixes bug http://b/issue?id=2277519 Added tests for the CanNavigateFullTabMode helper function. Bug=2277519 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54019

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 3

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+426 lines, -208 lines) Patch
M chrome_frame/chrome_active_document.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -16 lines 0 comments Download
M chrome_frame/chrome_active_document.cc View 1 2 3 4 5 6 7 8 7 chunks +46 lines, -133 lines 0 comments Download
M chrome_frame/chrome_frame_activex_base.h View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -9 lines 0 comments Download
M chrome_frame/protocol_sink_wrap.h View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -2 lines 0 comments Download
M chrome_frame/protocol_sink_wrap.cc View 1 2 3 4 5 6 7 8 9 9 chunks +91 lines, -3 lines 0 comments Download
M chrome_frame/test/util_unittests.cc View 6 7 8 2 chunks +123 lines, -18 lines 0 comments Download
M chrome_frame/utils.h View 1 2 3 4 5 6 7 8 2 chunks +54 lines, -8 lines 0 comments Download
M chrome_frame/utils.cc View 1 2 3 4 5 6 7 8 9 5 chunks +88 lines, -19 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ananta
10 years, 4 months ago (2010-07-27 19:12:30 UTC) #1
stoyan
LGTM http://codereview.chromium.org/3051018/diff/1/5 File chrome_frame/protocol_sink_wrap.cc (right): http://codereview.chromium.org/3051018/diff/1/5#newcode530 chrome_frame/protocol_sink_wrap.cc:530: // This hack is required because window.open requests ...
10 years, 4 months ago (2010-07-27 19:41:10 UTC) #2
amit
Woot! drive by lgtm http://codereview.chromium.org/3051018/diff/24001/21002 File chrome_frame/chrome_active_document.cc (right): http://codereview.chromium.org/3051018/diff/24001/21002#newcode997 chrome_frame/chrome_active_document.cc:997: bool allow_gcf_protocol = !cf_url.attach_to_external_tab() || ...
10 years, 4 months ago (2010-07-27 19:49:39 UTC) #3
ananta
http://codereview.chromium.org/3051018/diff/24001/21002 File chrome_frame/chrome_active_document.cc (right): http://codereview.chromium.org/3051018/diff/24001/21002#newcode997 chrome_frame/chrome_active_document.cc:997: bool allow_gcf_protocol = !cf_url.attach_to_external_tab() || On 2010/07/27 19:49:40, amit ...
10 years, 4 months ago (2010-07-27 22:08:48 UTC) #4
amit
10 years, 4 months ago (2010-07-27 23:15:27 UTC) #5
On Tue, Jul 27, 2010 at 3:08 PM,  <ananta@chromium.org> wrote:
>
> http://codereview.chromium.org/3051018/diff/24001/21002
> File chrome_frame/chrome_active_document.cc (right):
>
> http://codereview.chromium.org/3051018/diff/24001/21002#newcode997
> chrome_frame/chrome_active_document.cc:997: bool allow_gcf_protocol =
> !cf_url.attach_to_external_tab() ||
> On 2010/07/27 19:49:40, amit wrote:
>>
>> This is nice. Now we need a test to make sure gcf protocol is only
>
> supported in
>>
>> a limited way.
>
> Added unit tests for the CanNavigateInFullTabMode helper function.
Awesome! You could log a bug do it in the next CL but what I am
concerned is accidently allowing gcf: to work for more types of URLs
than it is safe. So we need a test covering that.
>
> http://codereview.chromium.org/3051018/show
>

Powered by Google App Engine
This is Rietveld 408576698