aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-07-21 14:39:25 -0400
committerGitHub <noreply@github.com>2018-07-21 14:39:25 -0400
commita97d8b99efaa16a325b3a7bf2baf80ed2da2590d (patch)
treeb7d0b77d76cf34f7709151385d0014a71e9e32d7 /components/script_traits/script_msg.rs
parent37a73d3bc09a8a3f12e4e2d42850419208000ba8 (diff)
parent61442cce4b93ef6b88b4ce59bad2358e8ce8bf4e (diff)
downloadservo-a97d8b99efaa16a325b3a7bf2baf80ed2da2590d.tar.gz
servo-a97d8b99efaa16a325b3a7bf2baf80ed2da2590d.zip
Auto merge of #21048 - cbrewster:hash_change_history, r=asajeffrey
Track hash changes in session history <!-- Please describe your changes on the following line: --> Adds tracking of hash changes in the session history. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14970 fix #13437 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21048) <!-- Reviewable:end -->
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r--components/script_traits/script_msg.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index 4487cb10d5d..762300827c8 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -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",