From 0d910bb9341f91cc31b672648c3e8e74152b2532 Mon Sep 17 00:00:00 2001 From: Simon Martin Date: Sat, 5 Dec 2015 21:49:49 +0100 Subject: [PATCH] Issue #8352: Dispatch mozbrowsershowmodalprompt event for alert(). --- components/msg/constellation_msg.rs | 4 ++-- components/script/dom/htmliframeelement.rs | 11 ++++++++++- .../script/dom/webidls/BrowserElement.webidl | 8 ++++++++ components/script/dom/window.rs | 9 +++++++-- tests/wpt/mozilla/meta/MANIFEST.json | 6 ++++++ .../mozbrowsershowmodalprompt_event.html | 19 +++++++++++++++++++ ...ozbrowsershowmodalprompt_event_iframe.html | 6 ++++++ 7 files changed, 58 insertions(+), 5 deletions(-) create mode 100644 tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowsershowmodalprompt_event.html create mode 100644 tests/wpt/mozilla/tests/mozilla/mozbrowser/mozbrowsershowmodalprompt_event_iframe.html diff --git a/components/msg/constellation_msg.rs b/components/msg/constellation_msg.rs index bd03f7769b7..a12d67c64fd 100644 --- a/components/msg/constellation_msg.rs +++ b/components/msg/constellation_msg.rs @@ -289,7 +289,7 @@ pub enum MozBrowserEvent { /// Sent when the SSL state changes within a browser `