diff options
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 19075c63a7d..c28942688e5 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -179,7 +179,7 @@ pub enum ConstellationControlMsg { NotifyVisibilityChange(PipelineId, PipelineId, bool), /// Notifies script thread that a url should be loaded in this iframe. /// First PipelineId is for the parent, second PipelineId is for the actual pipeline. - Navigate(PipelineId, PipelineId, LoadData), + Navigate(PipelineId, PipelineId, LoadData, bool), /// Requests the script thread forward a mozbrowser event to an iframe it owns, /// or to the window if no child pipeline id is provided. /// First PipelineId is for the parent, second PipelineId is for the actual pipeline. @@ -459,6 +459,9 @@ pub struct IFrameLoadInfo { pub is_private: bool, /// Whether this iframe is a mozbrowser iframe pub frame_type: FrameType, + /// Wether this load should replace the current entry (reload). If true, the current + /// entry will be replaced instead of a new entry being added. + pub replace: bool, } // https://developer.mozilla.org/en-US/docs/Web/API/Using_the_Browser_API#Events |