Loading dom/push/PushComponents.jsm +18 −2 Original line number Diff line number Diff line Loading @@ -88,12 +88,28 @@ PushServiceBase.prototype = { } if (topic === "sessionstore-windows-restored") { Services.obs.removeObserver(this, "sessionstore-windows-restored"); try { this._handleReady(); } catch (ex) { // NS_ERROR_NOT_AVAILABLE will get thrown for the PushService getter // if the PushService is disabled. if (ex.result != Cr.NS_ERROR_NOT_AVAILABLE) { throw ex; } } return; } if (topic === "android-push-service") { // Load PushService immediately. try { this._handleReady(); } catch (ex) { // NS_ERROR_NOT_AVAILABLE will get thrown for the PushService getter // if the PushService is disabled. if (ex.result != Cr.NS_ERROR_NOT_AVAILABLE) { throw ex; } } } }, Loading Loading
dom/push/PushComponents.jsm +18 −2 Original line number Diff line number Diff line Loading @@ -88,12 +88,28 @@ PushServiceBase.prototype = { } if (topic === "sessionstore-windows-restored") { Services.obs.removeObserver(this, "sessionstore-windows-restored"); try { this._handleReady(); } catch (ex) { // NS_ERROR_NOT_AVAILABLE will get thrown for the PushService getter // if the PushService is disabled. if (ex.result != Cr.NS_ERROR_NOT_AVAILABLE) { throw ex; } } return; } if (topic === "android-push-service") { // Load PushService immediately. try { this._handleReady(); } catch (ex) { // NS_ERROR_NOT_AVAILABLE will get thrown for the PushService getter // if the PushService is disabled. if (ex.result != Cr.NS_ERROR_NOT_AVAILABLE) { throw ex; } } } }, Loading