Bug 1385824 - Convert docshell/test/test_bug675587.html to comply with new data: URI inheritance model. r=smaug

This commit is contained in:
Christoph Kerschbaumer 2017-08-01 10:59:42 +02:00
parent 653d6f7ced
commit 913d05755a
3 changed files with 4 additions and 3 deletions

View File

@ -0,0 +1 @@
<script>location.hash='';</script>

View File

@ -89,6 +89,7 @@ skip-if = toolkit == 'android'
support-files = file_bug668513.html
[test_bug669671.html]
[test_bug675587.html]
support-files = file_bug675587.html
[test_bug680257.html]
[test_bug691547.html]
[test_bug694612.html]

View File

@ -11,7 +11,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=675587
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=675587">Mozilla Bug 675587</a>
<p id="display">
<iframe src="data:text/html,<script>location.hash='';</script>#hash"></iframe>
<iframe src="file_bug675587.html#hash"></iframe>
</p>
<div id="content" style="display: none">
@ -22,8 +22,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=675587
/** Test for Bug 675587 **/
SimpleTest.waitForExplicitFinish();
addLoadEvent(function() {
is(window.frames[0].location.href,
"data:text/html,<script>location.hash='';</" + "script>#",
ok(window.frames[0].location.href.endsWith("file_bug675587.html#"),
"Should have the right href");
SimpleTest.finish();
});