bug 850425 release the flyout iframe when social provider is changed, r=markh
authorShane Caraveo <scaraveo@mozilla.com>
Mon, 18 Mar 2013 12:44:04 -0700
changeset 131911 51069da75d3d54a98c6f6aed8da496b3bc3d048a
parent 131910 aacd967643915654ae4cb293177dc65d19db6fec
child 131912 a929b767761abbab79a7c9d0a3658e6a9a137a5f
push idunknown
push userunknown
push dateunknown
reviewersmarkh
bugs850425
milestone22.0a1
bug 850425 release the flyout iframe when social provider is changed, r=markh
browser/base/content/browser-social.js
--- a/browser/base/content/browser-social.js
+++ b/browser/base/content/browser-social.js
@@ -69,16 +69,17 @@ let SocialUI = {
     try {
       switch (topic) {
         case "social:provider-set":
           // Social.provider has changed (possibly to null), update any state
           // which depends on it.
           this._updateActiveUI();
           this._updateMenuItems();
 
+          SocialFlyout.unload();
           SocialChatBar.update();
           SocialSidebar.update();
           SocialShareButton.update();
           SocialToolbar.update();
           SocialMenu.populate();
           break;
         case "social:providers-changed":
           // the list of providers changed - this may impact the "active" UI.