Bug 823004 - B2G STK: STK Set-Up idle mode doesn't work properly. r=etienne
authorVivien Nicolas <vnicolas@mozilla.com>
Fri, 28 Dec 2012 19:43:49 +0100
changeset 126277 8dd9b338324c532067a1c17c572083e92f40e5cc
parent 126276 b99d9b422a3d581b1687066964fac3d4654f9a42
child 126278 7066060a33848e7544e8c3a283f26a7497a32462
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersetienne
bugs823004
milestone20.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 823004 - B2G STK: STK Set-Up idle mode doesn't work properly. r=etienne
b2g/chrome/content/shell.js
--- a/b2g/chrome/content/shell.js
+++ b/b2g/chrome/content/shell.js
@@ -683,17 +683,17 @@ var AlertsHelper = {
       let getNotificationURLFor = function(messages) {
         if (!messages)
           return null;
 
         for (let i = 0; i < messages.length; i++) {
           let message = messages[i];
           if (message === "notification") {
             return helper.fullLaunchPath();
-          } else if ("notification" in message) {
+          } else if (typeof message == "object" && "notification" in message) {
             return helper.resolveFromOrigin(message["notification"]);
           }
         }
       }
 
       listener.target = getNotificationURLFor(manifest.messages);
 
       // Bug 816944 - Support notification messages for entry_points.