Auto merge of #9164 - paulrouget:updatePipelineURL, r=jdm

update pipeline url after redirections

`pipeline.url` is not updated after a redirection.

Fixes #8902

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9164)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-01-06 21:53:41 +05:30
commit f4a2fe9501
7 changed files with 37 additions and 0 deletions

View file

@ -5785,6 +5785,12 @@
"url": "/_mozilla/mozilla/mozbrowser/mozbrowsershowmodalprompt_event.html"
}
],
"mozilla/mozbrowser/redirect.html": [
{
"path": "mozilla/mozbrowser/redirect.html",
"url": "/_mozilla/mozilla/mozbrowser/redirect.html"
}
],
"mozilla/mozbrowser/reload.html": [
{
"path": "mozilla/mozbrowser/reload.html",

View file

@ -0,0 +1,18 @@
<!doctype html>
<meta charset="utf-8">
<title>mozbrowserlocationchange with final url after redirect</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body></body>
<script>
async_test(function(t) {
var iframe = document.createElement("iframe");
iframe.mozbrowser = "true";
iframe.src = "redirect_init.html?pipe=status(302)|header(Location,redirect_final.html)";
iframe.addEventListener("mozbrowserlocationchange", t.step_func(e => {
assert_equals(e.detail, new URL("redirect_final.html", location).href);
t.done();
}));
document.body.appendChild(iframe);
});
</script>

View file

@ -0,0 +1 @@
<h1>redirect_final</h1>

View file

@ -0,0 +1 @@
<h1>redirect_init</h1>