Bug 1964961 - Adjust expected error message in test_SpecialPowersForProcess_spawn r=nika
Verified by running the tests with `./mach test` and `--setpref=javascript.options.property_error_message_fix=false` (Beta) `--setpref=javascript.options.property_error_message_fix=true` (Nightly) Differential Revision: https://phabricator.services.mozilla.com/D248310
This commit is contained in:
@@ -74,7 +74,7 @@ add_task(async function test_SpecialPowersForProcess_spawn() {
|
||||
const frame1 = this.content.document.getElementById("frame1");
|
||||
Assert.throws(
|
||||
() => frame1.contentDocument.location.search,
|
||||
/TypeError: can't access property "location", frame1.contentDocument is null/,
|
||||
/TypeError: (can't access property "location", )?frame1.contentDocument is null/,
|
||||
"ContentPage.spawn: Assert, cannot read cross-origin content"
|
||||
);
|
||||
await new Promise(resolve => {
|
||||
|
||||
@@ -59,7 +59,7 @@ add_task(async function test_SpecialPowersForProcess_spawn() {
|
||||
const frame1 = this.content.document.getElementById("frame1");
|
||||
Assert.throws(
|
||||
() => frame1.contentDocument.location.search,
|
||||
/TypeError: can't access property "location", frame1.contentDocument is null/,
|
||||
/TypeError: (can't access property "location", )?frame1.contentDocument is null/,
|
||||
"ContentPage.spawn: Assert, cannot read cross-origin content"
|
||||
);
|
||||
await new Promise(resolve => {
|
||||
|
||||
Reference in New Issue
Block a user