Updated required code to handle missing additional features for popup windows
This commit is contained in:
parent
ef88a06f08
commit
c811188e22
9 changed files with 35 additions and 17 deletions
|
@ -416,11 +416,12 @@ bool WebContents::AddMessageToConsole(content::WebContents* source,
|
|||
|
||||
void WebContents::OnCreateWindow(const GURL& target_url,
|
||||
const std::string& frame_name,
|
||||
WindowOpenDisposition disposition) {
|
||||
WindowOpenDisposition disposition,
|
||||
const std::vector<base::string16>& features) {
|
||||
if (type_ == BROWSER_WINDOW || type_ == OFF_SCREEN)
|
||||
Emit("-new-window", target_url, frame_name, disposition);
|
||||
Emit("-new-window", target_url, frame_name, disposition, features);
|
||||
else
|
||||
Emit("new-window", target_url, frame_name, disposition);
|
||||
Emit("new-window", target_url, frame_name, disposition, features);
|
||||
}
|
||||
|
||||
void WebContents::WebContentsCreated(content::WebContents* source_contents,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue