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 09aed864d0
commit a8a7609e00

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();
},