Bug 811089. Remove workaround for bug 803255 now that it's fixed. r=markh

This commit is contained in:
Felipe Gomes 2012-11-16 16:59:46 -08:00
Родитель 6fe3a29f63
Коммит eeffcdc649
1 изменённых файлов: 1 добавлений и 20 удалений

Просмотреть файл

@ -991,27 +991,8 @@ var SocialSidebar = {
if (!sbrowser.hasAttribute("origin"))
return;
// Bug 803255 - If we don't remove the sidebar browser from the DOM,
// the previous document leaks because it's only released when the
// sidebar is made visible again.
let container = sbrowser.parentNode;
container.removeChild(sbrowser);
sbrowser.removeAttribute("origin");
sbrowser.removeAttribute("src");
function resetDocShell(docshellSupports) {
let docshell = docshellSupports.QueryInterface(Ci.nsIDocShell);
if (docshell.chromeEventHandler != sbrowser)
return;
SocialSidebar.configureSidebarDocShell(docshell);
Services.obs.removeObserver(resetDocShell, "webnavigation-create");
}
Services.obs.addObserver(resetDocShell, "webnavigation-create", false);
container.appendChild(sbrowser);
sbrowser.setAttribute("src", "about:blank");
SocialFlyout.unload();
},