blob: ffdd9375cfd47c621038eeb9c5d2bbd1318c1589 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
function fileURL(filename) {
let ifile = getChromeDir(getResolvedURI(gTestPath));
ifile.append(filename);
return Services.io.newFileURI(ifile).spec;
}
function httpURL(filename, host = "https://example.com/") {
let root = getRootDirectory(gTestPath).replace(
"chrome://mochitests/content/",
host
);
return root + filename;
}
function add307(url, host = "https://example.com/") {
return httpURL("307redirect.sjs?" + url, host);
}
|