mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Track hash changes in session history
Notify history changed on pushState and scroll to frag
This commit is contained in:
parent
c1cc2aaf9c
commit
61442cce4b
22 changed files with 110 additions and 87 deletions
|
@ -116,6 +116,8 @@ pub enum ScriptMsg {
|
|||
AbortLoadUrl,
|
||||
/// Post a message to the currently active window of a given browsing context.
|
||||
PostMessage(BrowsingContextId, Option<ImmutableOrigin>, Vec<u8>),
|
||||
/// Inform the constellation that a fragment was navigated to and whether or not it was a replacement navigation.
|
||||
NavigatedToFragment(ServoUrl, bool),
|
||||
/// HTMLIFrameElement Forward or Back traversal.
|
||||
TraverseHistory(TraversalDirection),
|
||||
/// Inform the constellation of a pushed history state.
|
||||
|
@ -184,6 +186,7 @@ impl fmt::Debug for ScriptMsg {
|
|||
LoadUrl(..) => "LoadUrl",
|
||||
AbortLoadUrl => "AbortLoadUrl",
|
||||
PostMessage(..) => "PostMessage",
|
||||
NavigatedToFragment(..) => "NavigatedToFragment",
|
||||
TraverseHistory(..) => "TraverseHistory",
|
||||
PushHistoryState(..) => "PushHistoryState",
|
||||
ReplaceHistoryState(..) => "ReplaceHistoryState",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue