aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlformelement.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-12-30 16:52:13 -0500
committerJosh Matthews <josh@joshmatthews.net>2015-02-04 13:34:06 +0000
commitae2b74c783da97068f438097453fb8e63beb02d8 (patch)
tree4eba54204f2815f1ba0a491c014655400867807e /components/script/dom/htmlformelement.rs
parent19fbb9e568c6011abcfe883538ce03d9d2f42995 (diff)
downloadservo-ae2b74c783da97068f438097453fb8e63beb02d8.tar.gz
servo-ae2b74c783da97068f438097453fb8e63beb02d8.zip
Make Document::url return the page's URL to avoid stale URLs after redirects.
Diffstat (limited to 'components/script/dom/htmlformelement.rs')
-rw-r--r--components/script/dom/htmlformelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs
index 3543c9a26fc..74f789ab491 100644
--- a/components/script/dom/htmlformelement.rs
+++ b/components/script/dom/htmlformelement.rs
@@ -180,7 +180,7 @@ impl<'a> HTMLFormElementHelpers for JSRef<'a, HTMLFormElement> {
}
// TODO: Resolve the url relative to the submitter element
// Step 10-15
- let action_components = UrlParser::new().base_url(base).parse(action.as_slice()).unwrap_or(base.clone());
+ let action_components = UrlParser::new().base_url(&base).parse(action.as_slice()).unwrap_or(base);
let _action = action_components.serialize();
let scheme = action_components.scheme.clone();
let enctype = submitter.enctype();