mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
a024040efc
commit
569ceb1a46
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user