Return null from native window.open when allowpopups is unset

This commit is contained in:
Kevin Sawicki 2017-05-23 15:59:17 -07:00
parent a0571e3c72
commit dbd240a7cb
5 changed files with 32 additions and 2 deletions

View file

@ -237,6 +237,11 @@ bool WebContentsPreferences::IsPluginsEnabled(
return IsPreferenceEnabled("plugins", web_contents);
}
bool WebContentsPreferences::DisablePopups(
content::WebContents* web_contents) {
return IsPreferenceEnabled("disablePopups", web_contents);
}
// static
void WebContentsPreferences::OverrideWebkitPrefs(
content::WebContents* web_contents, content::WebPreferences* prefs) {