Bug 853782 - 0002. Notify receiving of WAP Push by System Message. r=vicamo

This commit is contained in:
Chuck Lee 2013-06-17 16:37:59 +08:00
parent fd179d3c0a
commit 90337ffef2
2 changed files with 12 additions and 2 deletions

View File

@ -97,7 +97,10 @@ this.SystemMessagePermissionsTable = {
},
"ussd-received": {
"mobileconnection": []
}
},
"wappush-received": {
"sms": []
},
};
this.SystemMessagePermissionsChecker = {

View File

@ -28,6 +28,10 @@ XPCOMUtils.defineLazyGetter(this, "SL", function () {
return SL;
});
XPCOMUtils.defineLazyServiceGetter(this, "gSystemMessenger",
"@mozilla.org/system-message-internal;1",
"nsISystemMessagesInternal");
/**
* Helpers for WAP PDU processing.
*/
@ -98,7 +102,10 @@ this.WapPushManager = {
};
}
// TODO: Bug 853782 - Notify receiving of WAP Push messages
gSystemMessenger.broadcastMessage("wappush-received", {
contentType: msg.contentType,
content: msg.content
});
},
/**