diff options
author | Josh Matthews <josh@joshmatthews.net> | 2020-07-27 19:56:53 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2020-07-27 22:34:07 -0400 |
commit | f030162ec3cdbe08b6a94869e0b25c11a9d433aa (patch) | |
tree | fcb21dfcb959396c571a992f697aedc0e698d72c /components/compositing/lib.rs | |
parent | fe24fc30687a85406d07187dc65b565f1d43812d (diff) | |
download | servo-f030162ec3cdbe08b6a94869e0b25c11a9d433aa.tar.gz servo-f030162ec3cdbe08b6a94869e0b25c11a9d433aa.zip |
Make reload button clear the network cache.
Diffstat (limited to 'components/compositing/lib.rs')
-rw-r--r-- | components/compositing/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/compositing/lib.rs b/components/compositing/lib.rs index 3a7634e3f57..dbb835e8bbe 100644 --- a/components/compositing/lib.rs +++ b/components/compositing/lib.rs @@ -71,6 +71,8 @@ pub enum ConstellationMsg { AllowNavigationResponse(PipelineId, bool), /// Request to load a page. LoadUrl(TopLevelBrowsingContextId, ServoUrl), + /// Clear the network cache. + ClearCache, /// Request to traverse the joint session history of the provided browsing context. TraverseHistory(TopLevelBrowsingContextId, TraversalDirection), /// Inform the constellation of a window being resized. @@ -143,6 +145,7 @@ impl fmt::Debug for ConstellationMsg { MediaSessionAction(..) => "MediaSessionAction", ChangeBrowserVisibility(..) => "ChangeBrowserVisibility", IMEDismissed => "IMEDismissed", + ClearCache => "ClearCache", }; write!(formatter, "ConstellationMsg::{}", variant) } |