report panic to embedder

This commit is contained in:
Paul Rouget 2018-02-08 08:08:57 +01:00
parent d09bb477f9
commit ee25413c0f
5 changed files with 17 additions and 2 deletions

View file

@ -457,6 +457,11 @@ impl<Window> Servo<Window> where Window: WindowMethods + 'static {
// TODO(pcwalton): Specify which frame's load completed.
self.compositor.window.load_end(top_level_browsing_context);
},
(EmbedderMsg::Panic(top_level_browsing_context, reason, backtrace),
ShutdownState::NotShuttingDown) => {
self.compositor.window.handle_panic(top_level_browsing_context, reason, backtrace);
},
}
}
}