mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Issue #8352: Dispatch mozbrowsershowmodalprompt event for alert().
This commit is contained in:
@@ -289,7 +289,7 @@ pub enum MozBrowserEvent {
|
||||
/// Sent when the SSL state changes within a browser `<iframe>`.
|
||||
SecurityChange,
|
||||
/// Sent when alert(), confirm(), or prompt() is called within a browser `<iframe>`.
|
||||
ShowModalPrompt,
|
||||
ShowModalPrompt(String, String, String, String), // TODO(simartin): Handle unblock()
|
||||
/// Sent when the document.title changes within a browser `<iframe>`.
|
||||
TitleChange(String),
|
||||
/// Sent when an HTTP authentification is requested.
|
||||
@@ -311,7 +311,7 @@ impl MozBrowserEvent {
|
||||
MozBrowserEvent::LocationChange(_) => "mozbrowserlocationchange",
|
||||
MozBrowserEvent::OpenWindow => "mozbrowseropenwindow",
|
||||
MozBrowserEvent::SecurityChange => "mozbrowsersecuritychange",
|
||||
MozBrowserEvent::ShowModalPrompt => "mozbrowsershowmodalprompt",
|
||||
MozBrowserEvent::ShowModalPrompt(_, _, _, _) => "mozbrowsershowmodalprompt",
|
||||
MozBrowserEvent::TitleChange(_) => "mozbrowsertitlechange",
|
||||
MozBrowserEvent::UsernameAndPasswordRequired => "mozbrowserusernameandpasswordrequired",
|
||||
MozBrowserEvent::OpenSearch => "mozbrowseropensearch"
|
||||
|
||||
Reference in New Issue
Block a user