Bug 951616 - Use docshell to get manifest url. r=ochameau
authorPaul Rouget <paul@mozilla.com>
Thu, 19 Dec 2013 11:32:13 -0500
changeset 161351 16d15e43802f19412061158c7d4451e0733072ad
parent 161350 34d6f424ae57b60d86ff2cea186e7758d249d085
child 161352 b92c42667e59b7aaacdd54bc93a56002ebc37734
push id25878
push userkwierso@gmail.com
push dateFri, 20 Dec 2013 03:09:21 +0000
treeherdermozilla-central@599100c4ebfe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs951616
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 951616 - Use docshell to get manifest url. r=ochameau
toolkit/devtools/server/actors/webapps.js
--- a/toolkit/devtools/server/actors/webapps.js
+++ b/toolkit/devtools/server/actors/webapps.js
@@ -942,18 +942,17 @@ WebappsActor.prototype = {
 
     return {};
   },
 
   handleEvent: function (event) {
     let manifestURL;
     switch(event.type) {
       case "appwillopen":
-        let frame = event.target;
-        manifestURL = frame.getAttribute("mozapp")
+        manifestURL = event.detail.manifestURL;
 
         // Ignore the event if we already received an appwillopen for this app
         // (appwillopen is also fired when the app has been moved to background
         // and get back to foreground)
         if (this._openedApps.has(manifestURL)) {
           return;
         }
         this._openedApps.add(manifestURL);