Bug 1353536 - Remove the makeURI method from toolkit/modules/sessionstore/Utils.jsm. r=johannh

--HG--
extra : amend_source : 1ee4461cef721ddf5c46506a3e232768880e84a2
This commit is contained in:
ui.manish 2018-06-14 02:14:01 +02:00
Родитель 7fd1427a9d
Коммит f0b18036b5
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -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;