mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Replace current session entry for reloads
This commit is contained in:
parent
0b0495cff4
commit
e9b2f1b916
10 changed files with 89 additions and 57 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue