mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Use the document base url when resolving iframe URLs
This commit is contained in:
parent
d9ffefe562
commit
52c6fd5b03
4 changed files with 5473 additions and 3 deletions
|
@ -82,8 +82,7 @@ impl HTMLIFrameElement {
|
|||
if url.is_empty() {
|
||||
None
|
||||
} else {
|
||||
let window = window_from_node(self);
|
||||
window.get_url().join(&url).ok()
|
||||
document_from_node(self).base_url().join(&url).ok()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue