Bug 1149350 - Force reload for apps. r=ochameau
authorJ. Ryan Stinnett <jryans@gmail.com>
Mon, 30 Mar 2015 16:42:00 +0200
changeset 256495 1cf9ca8a9f1e47829e8ac543a0f2448dde5893f9
parent 256494 881ef048e2908eef08d38785ff92a8c7e1d4d368
child 256496 6e8859a9fce9f24a267c9dc3a1dab706f3895e3d
push id1483
push usermichael.l.comella@gmail.com
push dateFri, 10 Apr 2015 15:12:05 +0000
reviewersochameau
bugs1149350
milestone40.0a1
Bug 1149350 - Force reload for apps. r=ochameau
toolkit/devtools/apps/app-actor-front.js
--- a/toolkit/devtools/apps/app-actor-front.js
+++ b/toolkit/devtools/apps/app-actor-front.js
@@ -340,16 +340,19 @@ function reloadApp(client, webappsActor,
   return getTargetForApp(client,
                          webappsActor,
                          manifestURL).
     then((target) => {
       // Request the ContentActor to reload the app
       let request = {
         to: target.form.actor,
         type: "reload",
+        options: {
+          force: true
+        },
         manifestURL: manifestURL
       };
       return client.request(request);
     }, () => {
      throw new Error("Not running");
     });
 }
 exports.reloadApp = reloadApp;
@@ -823,9 +826,8 @@ AppActorFront.prototype = {
           manifestURL: manifestURL
         }));
     };
     return this._install(request);
   }
 }
 
 exports.AppActorFront = AppActorFront;
-