mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1147562 - Update remaining callsites of newChannel before landing the shim in b2g/ (r=sicking)
This commit is contained in:
parent
2debe423e6
commit
015f495e42
@ -31,7 +31,7 @@ MailtoProtocolHandler.prototype = {
|
||||
return uri;
|
||||
},
|
||||
|
||||
newChannel: function Proto_newChannel(aURI) {
|
||||
newChannel2: function Proto_newChannel2(aURI, aLoadInfo) {
|
||||
cpmm.sendAsyncMessage("mail-handler", {
|
||||
URI: aURI.spec,
|
||||
type: "mail" });
|
||||
@ -39,6 +39,10 @@ MailtoProtocolHandler.prototype = {
|
||||
throw Components.results.NS_ERROR_ILLEGAL_VALUE;
|
||||
},
|
||||
|
||||
newChannel: function Proto_newChannel(aURI) {
|
||||
return newChannel2(aURI, null);
|
||||
},
|
||||
|
||||
classID: Components.ID("{50777e53-0331-4366-a191-900999be386c}"),
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIProtocolHandler])
|
||||
};
|
||||
|
@ -40,7 +40,7 @@ SmsProtocolHandler.prototype = {
|
||||
return uri;
|
||||
},
|
||||
|
||||
newChannel: function Proto_newChannel(aURI) {
|
||||
newChannel2: function Proto_newChannel2(aURI, aLoadInfo) {
|
||||
let number = TelURIParser.parseURI('sms', aURI.spec);
|
||||
let body = "";
|
||||
let query = aURI.spec.split("?")[1];
|
||||
@ -65,6 +65,10 @@ SmsProtocolHandler.prototype = {
|
||||
throw Components.results.NS_ERROR_ILLEGAL_VALUE;
|
||||
},
|
||||
|
||||
newChannel: function Proto_newChannel(aURI) {
|
||||
return newChannel2(aURI, null);
|
||||
},
|
||||
|
||||
classID: Components.ID("{81ca20cb-0dad-4e32-8566-979c8998bd73}"),
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIProtocolHandler])
|
||||
};
|
||||
|
@ -39,7 +39,7 @@ TelProtocolHandler.prototype = {
|
||||
return uri;
|
||||
},
|
||||
|
||||
newChannel: function Proto_newChannel(aURI) {
|
||||
newChannel2: function Proto_newChannel(aURI, aLoadInfo) {
|
||||
let number = TelURIParser.parseURI('tel', aURI.spec);
|
||||
|
||||
if (number) {
|
||||
@ -51,6 +51,10 @@ TelProtocolHandler.prototype = {
|
||||
throw Components.results.NS_ERROR_ILLEGAL_VALUE;
|
||||
},
|
||||
|
||||
newChannel: function Proto_newChannel(aURI) {
|
||||
return newChannel2(aURI, null);
|
||||
},
|
||||
|
||||
classID: Components.ID("{782775dd-7351-45ea-aff1-0ffa872cfdd2}"),
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIProtocolHandler])
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user