mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
report panic to embedder
This commit is contained in:
parent
d09bb477f9
commit
ee25413c0f
5 changed files with 17 additions and 2 deletions
|
@ -146,6 +146,8 @@ pub enum EmbedderMsg {
|
|||
LoadStart(TopLevelBrowsingContextId),
|
||||
/// The load of a page has completed
|
||||
LoadComplete(TopLevelBrowsingContextId),
|
||||
/// A pipeline panicked. First string is the reason, second one is the backtrace.
|
||||
Panic(TopLevelBrowsingContextId, String, Option<String>),
|
||||
}
|
||||
|
||||
/// Messages from the painting thread and the constellation thread to the compositor thread.
|
||||
|
@ -237,6 +239,7 @@ impl Debug for EmbedderMsg {
|
|||
EmbedderMsg::SetFullscreenState(..) => write!(f, "SetFullscreenState"),
|
||||
EmbedderMsg::LoadStart(..) => write!(f, "LoadStart"),
|
||||
EmbedderMsg::LoadComplete(..) => write!(f, "LoadComplete"),
|
||||
EmbedderMsg::Panic(..) => write!(f, "Panic"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue