Bug 685788 - Test for bug 593174 conceals its location after it's done; r=ted,jlebar

This commit is contained in:
Ehsan Akhgari 2011-09-23 15:59:22 -04:00
parent 6a703368e0
commit a10dfe1731

View File

@ -18,6 +18,8 @@ SimpleTest.waitForExplicitFinish();
var loadCount = 0; var loadCount = 0;
var popup = null; var popup = null;
const kOriginalLocation = location.href;
function iframeLoaded(identifier) { function iframeLoaded(identifier) {
loadCount++; loadCount++;
dump("iframeLoaded. loadCount=" + loadCount + dump("iframeLoaded. loadCount=" + loadCount +
@ -70,6 +72,7 @@ function iframeLoaded(identifier) {
else if (loadCount == 6) { else if (loadCount == 6) {
is(popup.getInnerIframeReferrer(), popup.location, 'popup/inner iframe referrer'); is(popup.getInnerIframeReferrer(), popup.location, 'popup/inner iframe referrer');
popup.close(); popup.close();
history.replaceState('', '', kOriginalLocation);
SimpleTest.finish(); SimpleTest.finish();
} }
} }