mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
script: Stop copying the document URL.
This commit is contained in:
parent
4d1be2f56c
commit
5dce5f0c97
8 changed files with 19 additions and 16 deletions
|
@ -133,7 +133,8 @@ impl VirtualMethods for HTMLBodyElement {
|
|||
},
|
||||
(&atom!(background), _) => {
|
||||
*self.background.borrow_mut() = mutation.new_value(attr).and_then(|value| {
|
||||
let base = document_from_node(self).url();
|
||||
let document = document_from_node(self);
|
||||
let base = document.url();
|
||||
UrlParser::new().base_url(&base).parse(&value).ok()
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue