Bug 1431913 - Adapt to nsIURI.spec being made readonly in chat. r=florian
This commit is contained in:
Родитель
09c9e688ad
Коммит
f74961c1be
|
@ -21,10 +21,7 @@ smileProtocolHandler.prototype = {
|
||||||
Ci.nsIProtocolHandler.URI_IS_LOCAL_RESOURCE,
|
Ci.nsIProtocolHandler.URI_IS_LOCAL_RESOURCE,
|
||||||
newURI: function SPH_newURI(aSpec, aOriginCharset, aBaseURI) {
|
newURI: function SPH_newURI(aSpec, aOriginCharset, aBaseURI) {
|
||||||
let uri = Cc["@mozilla.org/network/simple-uri;1"].createInstance(Ci.nsIURI);
|
let uri = Cc["@mozilla.org/network/simple-uri;1"].createInstance(Ci.nsIURI);
|
||||||
uri.spec = aSpec;
|
return uri.mutate().setSpec(aSpec).finalize();
|
||||||
uri.QueryInterface(Ci.nsIMutable);
|
|
||||||
uri.mutable = false;
|
|
||||||
return uri;
|
|
||||||
},
|
},
|
||||||
newChannel: function SPH_newChannel(aURI) {
|
newChannel: function SPH_newChannel(aURI) {
|
||||||
return this.newChannel2(aURI, null);
|
return this.newChannel2(aURI, null);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче