bug 944219 fix leaked about:blank in mochitests, r=markh

This commit is contained in:
Shane Caraveo 2013-11-27 19:23:10 -08:00
parent 5ac6684843
commit 8a5c9c6d8d

View File

@ -1267,6 +1267,10 @@ SocialSidebar = {
sbrowser.stop();
sbrowser.removeAttribute("origin");
sbrowser.setAttribute("src", "about:blank");
// We need to explicitly create a new content viewer because the old one
// doesn't get destroyed until about:blank has loaded (which does not happen
// as long as the element is hidden).
sbrowser.docShell.createAboutBlankContentViewer(null);
SocialFlyout.unload();
},