mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make Document::url return the page's URL to avoid stale URLs after redirects.
This commit is contained in:
parent
19fbb9e568
commit
ae2b74c783
4 changed files with 8 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue