Bug 1577723: Follow-up: Fix another crash test relied on GC timing. r=bustage

MANUAL PUSH: Bustage fix.
This commit is contained in:
Kris Maglione 2019-09-17 13:27:48 -07:00
parent 5c43907520
commit d70488e985

View File

@ -10,8 +10,12 @@
frameWindow = testFrame.contentWindow;
testframe.remove();
// Shouldn't crash at this line.
content.textContent = "location=" + frameWindow.location;
try {
// Shouldn't crash at this line.
content.textContent = "location=" + frameWindow.location;
} catch (e) {
// location.toString() should throw after the BrowsingContext is discarded.
}
document.documentElement.className = "";
}