emit console-message in OSR mode

This commit is contained in:
Shelley Vohr 2018-02-14 09:09:45 -05:00
parent 402201ac39
commit c3d11a51cc
No known key found for this signature in database
GPG key ID: F13993A75599653C

View file

@ -481,13 +481,9 @@ bool WebContents::DidAddMessageToConsole(content::WebContents* source,
const base::string16& message,
int32_t line_no,
const base::string16& source_id) {
if (type_ == OFF_SCREEN) {
return false;
} else {
Emit("console-message", level, message, line_no, source_id);
return true;
}
}
void WebContents::OnCreateWindow(
const GURL& target_url,