Bug 1424993 - Fix PresentationTransport to correctly throw NS_ERROR_NOT_AVAILABLE. r=smaug

MozReview-Commit-ID: KjfjyNvKz5j

--HG--
extra : rebase_source : 3a1ea0a82de2f6133d07c81fb2c9021af6d6c3ac
This commit is contained in:
Mark Banner 2017-12-11 19:45:41 +00:00
parent a024040efc
commit 569ceb1a46

View File

@ -290,7 +290,7 @@ PresentationTransport.prototype = {
// nsIPresentationTransport
get selfAddress() {
throw NS_ERROR_NOT_AVAILABLE;
throw Cr.NS_ERROR_NOT_AVAILABLE;
},
get callback() {
@ -330,7 +330,7 @@ PresentationTransport.prototype = {
}
if (!this._callback) {
throw NS_ERROR_NOT_AVAILABLE;
throw Cr.NS_ERROR_NOT_AVAILABLE;
}
this._enableDataNotification = true;
@ -359,7 +359,7 @@ PresentationTransport.prototype = {
_doNotifyData: function(aData) {
if (!this._callback) {
throw NS_ERROR_NOT_AVAILABLE;
throw Cr.NS_ERROR_NOT_AVAILABLE;
}
if (aData instanceof this._window.Blob) {