Use native window.open implementation
This commit is contained in:
parent
054ba7a964
commit
a1f9a45276
7 changed files with 22 additions and 15 deletions
|
@ -102,6 +102,8 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches(
|
|||
// integration.
|
||||
if (IsSandboxed(web_contents))
|
||||
command_line->AppendSwitch(switches::kEnableSandbox);
|
||||
if (UsesNativeWindowOpen(web_contents))
|
||||
command_line->AppendSwitch(switches::kNativeWindowOpen);
|
||||
|
||||
// The preload script.
|
||||
base::FilePath::StringType preload;
|
||||
|
@ -208,7 +210,7 @@ bool WebContentsPreferences::IsSandboxed(content::WebContents* web_contents) {
|
|||
return sandboxed;
|
||||
}
|
||||
|
||||
bool WebContentsPreferences::IsNativeWindowOpenEnabled(content::WebContents* web_contents) {
|
||||
bool WebContentsPreferences::UsesNativeWindowOpen(content::WebContents* web_contents) {
|
||||
WebContentsPreferences* self;
|
||||
if (!web_contents)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue