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:
Rob Wu
2025-05-07 20:46:53 +00:00
committed by rob@robwu.nl
parent c0637a04c3
commit a7ef53e4ba
2 changed files with 2 additions and 2 deletions

View File

@@ -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 => {

View File

@@ -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 => {