diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2018-04-22 12:58:30 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2018-08-11 01:12:55 +0200 |
commit | f408b798c4666eddeb8b52d8965d7d4a6942e066 (patch) | |
tree | 70f4bd491b024ba11a9d6526ff6d49d815e58e88 /components/embedder_traits/lib.rs | |
parent | 3e96a322ae6797631fd784dfde4b92ffccefd85d (diff) | |
download | servo-f408b798c4666eddeb8b52d8965d7d4a6942e066.tar.gz servo-f408b798c4666eddeb8b52d8965d7d4a6942e066.zip |
implement window.open, create auxiliary browsing context
Diffstat (limited to 'components/embedder_traits/lib.rs')
-rw-r--r-- | components/embedder_traits/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/embedder_traits/lib.rs b/components/embedder_traits/lib.rs index b1698c95728..3d932281e0c 100644 --- a/components/embedder_traits/lib.rs +++ b/components/embedder_traits/lib.rs @@ -84,6 +84,10 @@ pub enum EmbedderMsg { Alert(String, IpcSender<()>), /// Wether or not to follow a link AllowNavigation(ServoUrl, IpcSender<bool>), + /// Whether or not to allow script to open a new tab/browser + AllowOpeningBrowser(IpcSender<bool>), + /// A new browser was created by script + BrowserCreated(TopLevelBrowsingContextId), /// Wether or not to unload a document AllowUnload(IpcSender<bool>), /// Sends an unconsumed key event back to the embedder. @@ -143,6 +147,8 @@ impl Debug for EmbedderMsg { EmbedderMsg::ShowIME(..) => write!(f, "ShowIME"), EmbedderMsg::HideIME => write!(f, "HideIME"), EmbedderMsg::Shutdown => write!(f, "Shutdown"), + EmbedderMsg::AllowOpeningBrowser(..) => write!(f, "AllowOpeningBrowser"), + EmbedderMsg::BrowserCreated(..) => write!(f, "BrowserCreated") } } } |