Disable browser-side navigation by default (issue #2290)

This commit is contained in:
Marshall Greenblatt
2017-10-26 14:15:05 -04:00
parent 9334a09176
commit 2733a561e4

View File

@@ -435,6 +435,13 @@ bool CefMainDelegate::BasicStartupComplete(int* exit_code) {
switches::kUncaughtExceptionStackSize, switches::kUncaughtExceptionStackSize,
base::IntToString(settings.uncaught_exception_stack_size)); base::IntToString(settings.uncaught_exception_stack_size));
} }
// If browser-side navigation is not explicitly enabled or disabled, disable
// it. See https://crbug.com/776884.
if (!command_line->HasSwitch(switches::kDisableBrowserSideNavigation) &&
!command_line->HasSwitch(switches::kEnableBrowserSideNavigation)) {
command_line->AppendSwitch(switches::kDisableBrowserSideNavigation);
}
} }
if (content_client_.application().get()) { if (content_client_.application().get()) {