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

Issue 274071: When Chrome hands off a URL to be opened by the external host by the ViewHost... (Closed)

Created:
11 years, 2 months ago by ananta
Modified:
9 years, 6 months ago
Reviewers:
amit, Paweł Hajdan Jr.
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, ben+cc_chromium.org, amit, jam, darin (slow to review), tim (not reviewing)
Visibility:
Public.

Description

When Chrome hands off a URL to be opened by the external host by the ViewHostMsg_OpenURL IPC, it needs to pass the referrer as well. The Chrome fixes in this CL are mostly related to passing the HTTP referer off to the browser and from there to the ExternalTabContainer to ChromeFrame and back. The ChromeFrame changes are basically around the same lines with one exception. When we handle the AutomationMsg_OpenURL IPC in the activex and the active document we pass the referer if applicable to the WebBrowser2::Navigate2 interface, which is then read by the BHO in BeforeNavigate2. We then save away an AddRef'ed BHO pointer in TLS which is then referenced by the Active document for reading the referer and passing it off to Chrome in the NavigateInExternalTab message. Added a unit test in ChromeFrame which tests this case. This fixes http://code.google.com/p/chromium/issues/detail?id=22994 Bug=22994

Patch Set 1 #

Total comments: 12

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -36 lines) Patch
M chrome/browser/automation/automation_provider.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/automation/automation_provider.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/external_tab_container.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/automation/automation_messages_internal.h View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/test/automation/automation_proxy_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/automation/tab_proxy.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/test/automation/tab_proxy.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome_frame/bho.h View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M chrome_frame/bho.cc View 1 2 3 4 4 chunks +36 lines, -0 lines 0 comments Download
M chrome_frame/chrome_active_document.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/chrome_active_document.cc View 1 2 3 4 5 chunks +16 lines, -4 lines 0 comments Download
M chrome_frame/chrome_frame_activex_base.h View 1 2 3 4 5 chunks +17 lines, -5 lines 0 comments Download
M chrome_frame/chrome_frame_automation.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M chrome_frame/chrome_frame_automation.cc View 1 2 3 4 4 chunks +7 lines, -5 lines 0 comments Download
M chrome_frame/chrome_frame_delegate.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/chrome_frame_npapi.cc View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M chrome_frame/test/chrome_frame_automation_mock.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/test/chrome_frame_unittests.cc View 1 2 3 4 4 chunks +8 lines, -3 lines 0 comments Download
A chrome_frame/test/data/referrer_frame.html View 1 1 chunk +25 lines, -0 lines 0 comments Download
A chrome_frame/test/data/referrer_main.html View 1 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ananta
11 years, 2 months ago (2009-10-15 23:16:57 UTC) #1
amit
Looks pretty good. I guess we need to go through different OpenUrl calls to see ...
11 years, 2 months ago (2009-10-16 00:15:12 UTC) #2
Paweł Hajdan Jr.
Drive by with a small nit to keep automation messages clean. http://codereview.chromium.org/274071/diff/5001/2013 File chrome/test/automation/automation_messages_internal.h (right): ...
11 years, 2 months ago (2009-10-16 05:16:56 UTC) #3
ananta
http://codereview.chromium.org/274071/diff/1/10 File chrome_frame/bho.cc (right): http://codereview.chromium.org/274071/diff/1/10#newcode139 Line 139: while (it.GetNext()) { On 2009/10/16 00:15:12, amit wrote: ...
11 years, 2 months ago (2009-10-16 16:56:37 UTC) #4
amit
11 years, 2 months ago (2009-10-16 18:42:30 UTC) #5
lgtm

Powered by Google App Engine
This is Rietveld 408576698