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

Unified Diff: chrome_frame/chrome_frame_npapi.cc

Issue 3549006: Top level navigations are not sent to the host browser in the ChromeFrame NPA... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_frame_npapi.h ('k') | chrome_frame/chrome_frame_npapi_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_npapi.cc
===================================================================
--- chrome_frame/chrome_frame_npapi.cc (revision 60826)
+++ chrome_frame/chrome_frame_npapi.cc (working copy)
@@ -246,6 +246,11 @@
automation_client_->set_use_chrome_network(chrome_network_arg);
}
+ static const wchar_t kHandleTopLevelRequests[] = L"HandleTopLevelRequests";
+ bool top_level_requests = GetConfigBool(true, kHandleTopLevelRequests);
+ automation_client_->set_handle_top_level_requests(top_level_requests);
+ automation_client_->set_route_all_top_level_navigations(true);
+
// Setup Url fetcher.
url_fetcher_.set_NPPInstance(instance_);
url_fetcher_.set_frame_busting(!is_privileged_);
@@ -275,7 +280,7 @@
// host's in-private mode.
return InitializeAutomation(profile_name, extra_arguments,
GetBrowserIncognitoMode(), true,
- GURL(src_), GURL());
+ GURL(src_), GURL(), true);
}
void ChromeFrameNPAPI::Uninitialize() {
@@ -466,7 +471,9 @@
}
void ChromeFrameNPAPI::OnOpenURL(int tab_handle,
- const GURL& url, int open_disposition) {
+ const GURL& url,
+ const GURL& referrer,
+ int open_disposition) {
std::string target;
switch (open_disposition) {
case NEW_FOREGROUND_TAB:
« no previous file with comments | « chrome_frame/chrome_frame_npapi.h ('k') | chrome_frame/chrome_frame_npapi_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698