Return null from native window.open when allowpopups is unset
This commit is contained in:
parent
a0571e3c72
commit
dbd240a7cb
5 changed files with 32 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue