diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2018-06-02 20:56:00 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2018-08-11 01:13:11 +0200 |
commit | 21bf5a3a4b6398cd7c20449ba9110499feca7d6b (patch) | |
tree | 151b1df3f5dccc17b79a5feeb5a1f9bf35759123 /components/script_traits/lib.rs | |
parent | f408b798c4666eddeb8b52d8965d7d4a6942e066 (diff) | |
download | servo-21bf5a3a4b6398cd7c20449ba9110499feca7d6b.tar.gz servo-21bf5a3a4b6398cd7c20449ba9110499feca7d6b.zip |
implement opener, disowning
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 476f41ef0f1..be39ab71cb2 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -193,6 +193,8 @@ pub struct NewLayoutInfo { pub browsing_context_id: BrowsingContextId, /// Id of the top-level browsing context associated with this pipeline. pub top_level_browsing_context_id: TopLevelBrowsingContextId, + /// Id of the opener, if any + pub opener: Option<BrowsingContextId>, /// Network request data which will be initiated by the script thread. pub load_data: LoadData, /// Information about the initial window size. @@ -521,6 +523,8 @@ pub struct InitialScriptState { pub browsing_context_id: BrowsingContextId, /// The ID of the top-level browsing context this script is part of. pub top_level_browsing_context_id: TopLevelBrowsingContextId, + /// The ID of the opener, if any. + pub opener: Option<BrowsingContextId>, /// A channel with which messages can be sent to us (the script thread). pub control_chan: IpcSender<ConstellationControlMsg>, /// A port on which messages sent by the constellation to script can be received. |