Backed out changeset 9b533d393792 (bug 802366)
authorJustin Lebar <justin.lebar@gmail.com>
Tue, 30 Oct 2012 21:35:48 -0400
changeset 111981 9c357f7836b4115fce80bb9e55c75a54dfff2af4
parent 111980 1e04d8f5e601baded077ef0ae967c691b1836d65
child 111982 ea03279161147d8204df22990e25a477fdf58fa4
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
bugs802366
milestone19.0a1
backs out9b533d393792bd49228908c614619b8a6f115968
Backed out changeset 9b533d393792 (bug 802366)
dom/apps/src/Webapps.jsm
--- a/dom/apps/src/Webapps.jsm
+++ b/dom/apps/src/Webapps.jsm
@@ -1777,16 +1777,20 @@ this.DOMApplicationRegistry = {
       mm.addMessageListener(msgName, listener);
     });
   },
 
   receiveAppMessage: function(appId, message) {
     switch (message.name) {
       case "Webapps:ClearBrowserData":
         this._clearPrivateData(appId, true);
+        // XXXbent This is a hack until bug 802366 is fixed. Currently all data
+        //         loaded in mozbrowser frames within an app believe that their
+        //         appId is 0.
+        this._clearPrivateData(0, true);
         break;
     }
   },
 
   _clearPrivateData: function(appId, browserOnly) {
     let subject = {
       appId: appId,
       browserOnly: browserOnly,