diff options
author | Connor Brewster <connor.brewster@eagles.oc.edu> | 2016-09-02 23:28:20 -0500 |
---|---|---|
committer | Connor Brewster <connor.brewster@eagles.oc.edu> | 2016-09-19 14:23:03 -0500 |
commit | e9b2f1b916754ac57ab06326f49b0f1de5e1e9c0 (patch) | |
tree | 6c7818483e8b876984e62305d3b04b34ca4b8345 /components/script_traits/script_msg.rs | |
parent | 0b0495cff4c0062f1def279c8079ca76c58aef23 (diff) | |
download | servo-e9b2f1b916754ac57ab06326f49b0f1de5e1e9c0.tar.gz servo-e9b2f1b916754ac57ab06326f49b0f1de5e1e9c0.zip |
Replace current session entry for reloads
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r-- | components/script_traits/script_msg.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs index aaa22732937..c3c777bb9f7 100644 --- a/components/script_traits/script_msg.rs +++ b/components/script_traits/script_msg.rs @@ -83,8 +83,9 @@ pub enum ScriptMsg { /// All pending loads are complete, and the `load` event for this pipeline /// has been dispatched. LoadComplete(PipelineId), - /// A new load has been requested. - LoadUrl(PipelineId, LoadData), + /// A new load has been requested, with an option to replace the current entry once loaded + /// instead of adding a new entry. + LoadUrl(PipelineId, LoadData, bool), /// Dispatch a mozbrowser event to a given iframe, /// or to the window if no subpage id is provided. /// First PipelineId is for the parent, second PipelineId is for the actual pipeline. |