mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 685788 - Test for bug 593174 conceals its location after it's done; r=ted,jlebar
This commit is contained in:
parent
6a703368e0
commit
a10dfe1731
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user