aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2015-08-12 20:03:18 +0200
committerMs2ger <Ms2ger@gmail.com>2015-08-12 20:03:18 +0200
commitf62e7be1681cdac6b346d245cd44cbc1d699220e (patch)
tree52c4b16c72f78c2e310eb4d4c30bf42487a24315 /components/script/dom/window.rs
parent0bfde427e6a77d09d75b5a6e228c7b25f063395f (diff)
downloadservo-f62e7be1681cdac6b346d245cd44cbc1d699220e.tar.gz
servo-f62e7be1681cdac6b346d245cd44cbc1d699220e.zip
Merge the fragment handling into handle_navigate.
This is handled in the 'navigate' algorithm in the specification.
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 3190e6081dc..f471d068f11 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -887,14 +887,7 @@ impl<'a> WindowHelpers for &'a Window {
/// Commence a new URL load which will either replace this window or scroll to a fragment.
fn load_url(self, url: Url) {
- match url.fragment {
- Some(fragment) => {
- self.script_chan.send(ScriptMsg::TriggerFragment(self.id, fragment)).unwrap();
- },
- None => {
- self.script_chan.send(ScriptMsg::Navigate(self.id, LoadData::new(url))).unwrap();
- }
- }
+ self.script_chan.send(ScriptMsg::Navigate(self.id, LoadData::new(url))).unwrap();
}
fn handle_fire_timer(self, timer_id: TimerId) {