mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Issue #8352: Dispatch mozbrowsershowmodalprompt event for alert().
This commit is contained in:
parent
2a3a7a73b5
commit
0d910bb934
7 changed files with 58 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue