Use the document base url when resolving iframe URLs

This commit is contained in:
Stephen (Ziyun) Li 2016-04-14 22:48:31 -04:00
parent d9ffefe562
commit 52c6fd5b03
No known key found for this signature in database
GPG key ID: 87FCA03CDF6996FD
4 changed files with 5473 additions and 3 deletions

View file

@ -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()
}
})
}