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

Issue 343086: Don't switch to CF's active document for frames or iframes.... (Closed)

Created:
11 years, 1 month ago by tommi (sloooow) - chröme
Modified:
9 years, 7 months ago
Reviewers:
amit
CC:
chromium-reviews_googlegroups.com, amit, Paweł Hajdan Jr.
Visibility:
Public.

Description

Don't switch to CF's active document for frames or iframes.This fixes an issue where a page that uses CF would be loaded in an IFRAME on Google Images.Instead of attempting to load CF (not supported), we now defer to the host browser. Previously a blank page was displayed.TEST=Run new unit tests: FullTabModeIE_SubIFrame and FullTabModeIE_SubFrameBUG=22989 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30782

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -30 lines) Patch
M chrome_frame/protocol_sink_wrap.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome_frame/protocol_sink_wrap.cc View 1 2 chunks +40 lines, -19 lines 0 comments Download
M chrome_frame/test/chrome_frame_unittests.cc View 1 3 chunks +15 lines, -4 lines 0 comments Download
M chrome_frame/test/data/chrome_frame_tester_helpers.js View 2 chunks +10 lines, -5 lines 0 comments Download
A chrome_frame/test/data/full_tab_sub_frame1.html View 1 1 chunk +26 lines, -0 lines 0 comments Download
A chrome_frame/test/data/full_tab_sub_frame2.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A chrome_frame/test/data/full_tab_sub_frame_main.html View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome_frame/test/data/full_tab_sub_iframe_main.html View 1 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
tommi (sloooow) - chröme
11 years, 1 month ago (2009-11-02 22:38:11 UTC) #1
amit
very nice. LGTM with a few nits. http://codereview.chromium.org/343086/diff/1/2 File chrome_frame/protocol_sink_wrap.cc (right): http://codereview.chromium.org/343086/diff/1/2#newcode639 Line 639: ScopedComPtr<IHTMLWindow2> ...
11 years, 1 month ago (2009-11-02 23:36:25 UTC) #2
tommi (sloooow) - chröme
11 years, 1 month ago (2009-11-02 23:56:36 UTC) #3
http://codereview.chromium.org/343086/diff/1/2
File chrome_frame/protocol_sink_wrap.cc (right):

http://codereview.chromium.org/343086/diff/1/2#newcode639
Line 639: ScopedComPtr<IHTMLWindow2> win, parent;
On 2009/11/02 23:36:25, amit wrote:
> nit: Rename win -> current_frame, parent -> parent_frame?

Done.

http://codereview.chromium.org/343086/diff/1/8
File chrome_frame/test/data/full_tab_sub_frame1.html (right):

http://codereview.chromium.org/343086/diff/1/8#newcode12
Line 12: var is_chrome = /chrome/.test(navigator.userAgent.toLowerCase());
On 2009/11/02 23:36:25, amit wrote:
> chrome_frame_tester_helpers.js has TestIfRunningInChrome() that can be used
> here, maybe with some refactoring.

Done.

http://codereview.chromium.org/343086/diff/1/5
File chrome_frame/test/data/full_tab_sub_iframe_main.html (right):

http://codereview.chromium.org/343086/diff/1/5#newcode10
Line 10: <a href="http://images.google.com/imghp?hl=en">
On 2009/11/02 23:36:25, amit wrote:
> we should avoid references to external sites, might pose issues on borg etc.

Done.

Powered by Google App Engine
This is Rietveld 408576698