mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fire a mozbrowseropenwindow event when an html anchor has a non-self target.
This commit is contained in:
parent
55b0bb027c
commit
835b6a9017
9 changed files with 115 additions and 8 deletions
|
@ -399,8 +399,13 @@ pub enum MozBrowserEvent {
|
|||
LoadStart,
|
||||
/// Sent when a browser `<iframe>`'s location changes.
|
||||
LocationChange(String, bool, bool),
|
||||
/// Sent when window.open() is called within a browser `<iframe>`.
|
||||
OpenWindow,
|
||||
/// Sent when a new tab is opened within a browser `<iframe>` as a result of the user
|
||||
/// issuing a command to open a link target in a new tab (for example ctrl/cmd + click.)
|
||||
/// Includes the URL.
|
||||
OpenTab(String),
|
||||
/// Sent when a new window is opened within a browser `<iframe>`.
|
||||
/// Includes the URL, target browsing context name, and features.
|
||||
OpenWindow(String, Option<String>, Option<String>),
|
||||
/// Sent when the SSL state changes within a browser `<iframe>`.
|
||||
SecurityChange(HttpsState),
|
||||
/// Sent when alert(), confirm(), or prompt() is called within a browser `<iframe>`.
|
||||
|
@ -426,7 +431,8 @@ impl MozBrowserEvent {
|
|||
MozBrowserEvent::LoadEnd => "mozbrowserloadend",
|
||||
MozBrowserEvent::LoadStart => "mozbrowserloadstart",
|
||||
MozBrowserEvent::LocationChange(_, _, _) => "mozbrowserlocationchange",
|
||||
MozBrowserEvent::OpenWindow => "mozbrowseropenwindow",
|
||||
MozBrowserEvent::OpenTab(_) => "mozbrowseropentab",
|
||||
MozBrowserEvent::OpenWindow(_, _, _) => "mozbrowseropenwindow",
|
||||
MozBrowserEvent::SecurityChange(_) => "mozbrowsersecuritychange",
|
||||
MozBrowserEvent::ShowModalPrompt(_, _, _, _) => "mozbrowsershowmodalprompt",
|
||||
MozBrowserEvent::TitleChange(_) => "mozbrowsertitlechange",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue