Allow BrowserWindows to emit console-message events.

This commit is contained in:
Andrew MacDonald 2017-11-07 15:31:15 -08:00
parent 5383b4809f
commit c260a0ab78

View file

@ -480,7 +480,7 @@ bool WebContents::DidAddMessageToConsole(content::WebContents* source,
const base::string16& message,
int32_t line_no,
const base::string16& source_id) {
if (type_ == BROWSER_WINDOW || type_ == OFF_SCREEN) {
if (type_ == OFF_SCREEN) {
return false;
} else {
Emit("console-message", level, message, line_no, source_id);