Bug 1777486 - Part 7: Update testcase that loads XPCOMUtils as resource:// URI example. r=kmag

Differential Revision: https://phabricator.services.mozilla.com/D151219
This commit is contained in:
Tooru Fujisawa 2022-07-11 15:09:15 +00:00
Родитель d8f641c9c5
Коммит 49f6e51e30
4 изменённых файлов: 4 добавлений и 4 удалений

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

@ -415,7 +415,7 @@ add_task(async function test_file() {
async function resourceUriTest(secureCheck) {
let oldTab = await loadNewTab("about:robots");
await SpecialPowers.pushPrefEnv({ set: [[INSECURE_ICON_PREF, secureCheck]] });
let dataURI = "resource://gre/modules/XPCOMUtils.jsm";
let dataURI = "resource://gre/modules/XPCOMUtils.sys.mjs";
let newTab = await loadNewTab(dataURI);

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

@ -61,7 +61,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=803225
// onload listener is called after we successfully fetch the script,
// independently of whether it throws an exception.
var resource_script=document.createElement("script");
resource_script.src = "resource://gre/modules/XPCOMUtils.jsm";
resource_script.src = "resource://gre/modules/XPCOMUtils.sys.mjs";
resource_script.name = "resource_protocol";
resource_script.onload = function() {
parent.postMessage({"test": "resource", "msg": "resource with resource protocol loaded"}, "http://mochi.test:8888");

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

@ -7,7 +7,7 @@
// (web-extension:, resource:, etc) should return the original URL,
// not the jar/file it was actually substituted for.
const TEST_URL = "resource://gre/modules/XPCOMUtils.jsm";
const TEST_URL = "resource://gre/modules/XPCOMUtils.sys.mjs";
add_task(async function test() {
await new Promise(resolve => {

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

@ -57,7 +57,7 @@ add_task(async function webnav_unresolved_uri_on_expected_URI_scheme() {
await extension.startup();
let checkURLs = [
"resource://gre/modules/XPCOMUtils.jsm",
"resource://gre/modules/XPCOMUtils.sys.mjs",
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js",
"about:mozilla",
];