diff --git a/b2g/chrome/content/shell.js b/b2g/chrome/content/shell.js index 567d1240f506..a0479a2b267c 100644 --- a/b2g/chrome/content/shell.js +++ b/b2g/chrome/content/shell.js @@ -757,6 +757,9 @@ var AlertsHelper = { return helper.resolveFromOrigin(message["notification"]); } } + + // No message found... + return null; } listener.target = getNotificationURLFor(manifest.messages); @@ -833,7 +836,7 @@ var AlertsHelper = { if (!aMessage.target.assertAppHasPermission("desktop-notification")) { Cu.reportError("Desktop-notification message " + aMessage.name + " from a content process with no desktop-notification privileges."); - return null; + return; } let data = aMessage.data;