mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
bug 944219 fix leaked about:blank in mochitests, r=markh
This commit is contained in:
parent
09aed864d0
commit
a8a7609e00
@ -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();
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user