Bug 784198 - browserIter.docShell is undefined errors. r=felipe

This commit is contained in:
Jared Wein 2012-08-22 13:56:10 -07:00
parent f7d1450ef6
commit b73ccf6f0c

View File

@ -394,12 +394,6 @@ var SocialToolbar = {
} }
notifBox.appendChild(notifBrowsers); notifBox.appendChild(notifBrowsers);
iconBox.appendChild(iconContainers); iconBox.appendChild(iconContainers);
let browserIter = notifBox.firstElementChild;
while (browserIter) {
browserIter.docShell.isAppTab = true;
browserIter = browserIter.nextElementSibling;
}
}, },
showAmbientPopup: function SocialToolbar_showAmbientPopup(iconContainer) { showAmbientPopup: function SocialToolbar_showAmbientPopup(iconContainer) {
@ -454,6 +448,7 @@ var SocialToolbar = {
panel.addEventListener("popupshown", function onpopupshown() { panel.addEventListener("popupshown", function onpopupshown() {
panel.removeEventListener("popupshown", onpopupshown); panel.removeEventListener("popupshown", onpopupshown);
SocialToolbar.button.setAttribute("open", "true"); SocialToolbar.button.setAttribute("open", "true");
notifBrowser.docShell.isAppTab = true;
if (notifBrowser.contentDocument.readyState == "complete") { if (notifBrowser.contentDocument.readyState == "complete") {
dispatchPanelEvent("socialFrameShow"); dispatchPanelEvent("socialFrameShow");
} else { } else {