diff options
Diffstat (limited to 'components/devtools/lib.rs')
-rw-r--r-- | components/devtools/lib.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/components/devtools/lib.rs b/components/devtools/lib.rs index 5fd7191b586..2db915203bf 100644 --- a/components/devtools/lib.rs +++ b/components/devtools/lib.rs @@ -536,6 +536,19 @@ fn run_server(sender: Sender<DevtoolsControlMsg>, worker_id)) => handle_console_message(actors.clone(), id, worker_id, console_message, &actor_pipelines, &actor_workers), + DevtoolsControlMsg::FromScript(ScriptToDevtoolsControlMsg::ReportCSSError( + id, + css_error)) => { + let console_message = ConsoleMessage { + message: css_error.msg, + logLevel: LogLevel::Warn, + filename: css_error.filename, + lineNumber: css_error.line, + columnNumber: css_error.column, + }; + handle_console_message(actors.clone(), id, None, console_message, + &actor_pipelines, &actor_workers) + }, DevtoolsControlMsg::FromChrome(ChromeToDevtoolsControlMsg::NetworkEvent( request_id, network_event)) => { // copy the accepted_connections vector |