mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23: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() {
|
if url.is_empty() {
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
let window = window_from_node(self);
|
document_from_node(self).base_url().join(&url).ok()
|
||||||
window.get_url().join(&url).ok()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,9 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>iframe Without Base Tag</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<iframe src="support/blank.htm">
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>iframe With Base Tag</title>
|
||||||
|
<link rel="match" href="iframe-with-base-ref.html">
|
||||||
|
<base href="support/">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<iframe src="blank.htm">
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue