зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1072980 - Don't pass CPOW as notificationCallbacks in nsIAboutProtocol shim (r=ally)
This commit is contained in:
Родитель
aacd3e1553
Коммит
727e608675
|
@ -202,9 +202,6 @@ AboutProtocolChannel.prototype = {
|
|||
let rval = cpmm.sendRpcMessage("Addons:AboutProtocol:OpenChannel", {
|
||||
uri: this.URI.spec,
|
||||
contractID: this._contractID
|
||||
}, {
|
||||
notificationCallbacks: this.notificationCallbacks,
|
||||
loadGroupNotificationCallbacks: this.loadGroup ? this.loadGroup.notificationCallbacks : null,
|
||||
});
|
||||
|
||||
if (rval.length != 1) {
|
||||
|
|
|
@ -240,12 +240,8 @@ let AboutProtocolParent = {
|
|||
let module = Cc[contractID].getService(Ci.nsIAboutModule);
|
||||
try {
|
||||
let channel = module.newChannel(uri, null);
|
||||
channel.notificationCallbacks = msg.objects.notificationCallbacks;
|
||||
if (msg.objects.loadGroupNotificationCallbacks) {
|
||||
channel.loadGroup = {notificationCallbacks: msg.objects.loadGroupNotificationCallbacks};
|
||||
} else {
|
||||
channel.loadGroup = null;
|
||||
}
|
||||
channel.notificationCallbacks = null;
|
||||
channel.loadGroup = null;
|
||||
let stream = channel.open();
|
||||
let data = NetUtil.readInputStreamToString(stream, stream.available(), {});
|
||||
return {
|
||||
|
|
Загрузка…
Ссылка в новой задаче