mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +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 popup = null;
|
||||
|
||||
const kOriginalLocation = location.href;
|
||||
|
||||
function iframeLoaded(identifier) {
|
||||
loadCount++;
|
||||
dump("iframeLoaded. loadCount=" + loadCount +
|
||||
@ -70,6 +72,7 @@ function iframeLoaded(identifier) {
|
||||
else if (loadCount == 6) {
|
||||
is(popup.getInnerIframeReferrer(), popup.location, 'popup/inner iframe referrer');
|
||||
popup.close();
|
||||
history.replaceState('', '', kOriginalLocation);
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user