зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1353536 - Remove the makeURI method from toolkit/modules/sessionstore/Utils.jsm. r=johannh
--HG-- extra : amend_source : 1ee4461cef721ddf5c46506a3e232768880e84a2
This commit is contained in:
Родитель
7fd1427a9d
Коммит
f0b18036b5
|
@ -32,10 +32,6 @@ function debug(msg) {
|
|||
var Utils = Object.freeze({
|
||||
get SERIALIZED_SYSTEMPRINCIPAL() { return SERIALIZED_SYSTEMPRINCIPAL; },
|
||||
|
||||
makeURI(url) {
|
||||
return Services.io.newURI(url);
|
||||
},
|
||||
|
||||
makeInputStream(data) {
|
||||
if (typeof data == "string") {
|
||||
let stream = Cc["@mozilla.org/io/string-input-stream;1"].
|
||||
|
@ -87,7 +83,7 @@ var Utils = Object.freeze({
|
|||
let host;
|
||||
|
||||
try {
|
||||
host = this.makeURI(url).host;
|
||||
host = Services.io.newURI(url).host;
|
||||
} catch (e) {
|
||||
// The given URL probably doesn't have a host.
|
||||
return false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче