mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Redirect document loads manually
This commit is contained in:
parent
779edd7c4a
commit
541baafe1c
17 changed files with 376 additions and 52 deletions
|
@ -13352,6 +13352,12 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"mozilla/multiple_redirects.html": [
|
||||
[
|
||||
"/_mozilla/mozilla/multiple_redirects.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"mozilla/navigator.html": [
|
||||
[
|
||||
"/_mozilla/mozilla/navigator.html",
|
||||
|
@ -26021,6 +26027,10 @@
|
|||
"f8f9adebe09f9473a52e5ec4f075540b10b32d7e",
|
||||
"testharness"
|
||||
],
|
||||
"mozilla/multiple_redirects.html": [
|
||||
"db0ffd3db5b23204b91f332915d938cfc85ec46c",
|
||||
"testharness"
|
||||
],
|
||||
"mozilla/navigator.html": [
|
||||
"939f453fecfb28a36cb93057382b56439b00b136",
|
||||
"testharness"
|
||||
|
|
26
tests/wpt/mozilla/tests/mozilla/multiple_redirects.html
Normal file
26
tests/wpt/mozilla/tests/mozilla/multiple_redirects.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Multiple redirects</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe src=""></iframe>
|
||||
<script>
|
||||
async_test(function(t) {
|
||||
var iframe = document.getElementsByTagName("iframe")[0];
|
||||
var base_url = "/common/redirect.py?location=/common/dummy.xhtml";
|
||||
var second = "/common/redirect.py?location=" + base_url;
|
||||
var third = "/common/redirect.py?location=" + second;
|
||||
iframe.src = third;
|
||||
iframe.onload = t.step_func(function() {
|
||||
if(iframe.contentWindow.location.href === new URL('/common/dummy.xhtml', location.href).href) {
|
||||
this.done();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue