Backed out changeset 0efce0a97efe (bug 1159310) for xpc bustage on a CLOSED TREE

This commit is contained in:
Carsten "Tomcat" Book 2015-04-29 09:53:02 +02:00
parent 2cdffa56bc
commit 28f9dfc649
2 changed files with 2 additions and 21 deletions

View File

@ -9,7 +9,7 @@
* A push message received by an `nsIPushNotificationService`, used as the
* subject of a `push-notification` observer notification.
*/
[scriptable, uuid(a28aba06-8582-4030-8f43-ba15f14061e5)]
[scriptable, uuid(66a87970-6dc9-46e0-ac61-adb4a13791de)]
interface nsIPushObserverNotification : nsISupports
{
/* The URL that receives push messages from an application server. */
@ -27,14 +27,4 @@ interface nsIPushObserverNotification : nsISupports
* may be discarded.
*/
attribute string data;
/**
* How many times has a push event occured against this pushEndpoint
*/
attribute long long pushCount;
/**
* The last time a push occured against this this pushEndpoint
*/
attribute long long lastPush;
};

View File

@ -1334,8 +1334,6 @@ this.PushService = {
aPushRecord.version < aLatestVersion) {
debug("Version changed, notifying app and updating DB");
aPushRecord.version = aLatestVersion;
aPushRecord.pushCount = aPushRecord.pushCount + 1;
aPushRecord.lastPush = new Date().getTime();
this._notifyApp(aPushRecord);
this._updatePushRecord(aPushRecord)
.then(
@ -1400,9 +1398,6 @@ this.PushService = {
notification.pushEndpoint = aPushRecord.pushEndpoint;
notification.version = aPushRecord.version;
notification.data = "";
notification.lastPush = aPushRecord.lastPush;
notification.pushCount = aPushRecord.pushCount;
Services.obs.notifyObservers(
notification,
"push-notification",
@ -1543,8 +1538,6 @@ this.PushService = {
pushEndpoint: data.pushEndpoint,
pageURL: aPageRecord.pageURL,
scope: aPageRecord.scope,
pushCount: 0,
lastPush: 0,
version: null
};
@ -1673,9 +1666,7 @@ this.PushService = {
if (pushRecord) {
registration = {
pushEndpoint: pushRecord.pushEndpoint,
version: pushRecord.version,
lastPush: pushRecord.lastPush,
pushCount: pushRecord.pushCount
version: pushRecord.version
};
}
resolve(registration);