Closed Bug 1916727 Opened 1 year ago Closed 1 year ago

Perma /html/semantics/scripting-1/the-script-element/json-module/charset-2.html | SyntaxError: import assertions are not currently supported when Gecko 132 merges to beta on 2024-09-30

Categories

(Core :: DOM: Events, defect)

defect

Tracking

()

VERIFIED FIXED
132 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox130 --- unaffected
firefox131 --- unaffected
firefox132 + verified

People

(Reporter: noemi_erli, Assigned: aryx)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Central-as-beta simulation:
How to run these simulations:
Failure log

[task 2024-09-04T13:00:22.850Z] 13:00:22     INFO - TEST-START | /html/semantics/scripting-1/the-script-element/json-module/charset-2.html
[task 2024-09-04T13:00:22.862Z] 13:00:22     INFO - Setting pref javascript.options.experimental.import_attributes to true
[task 2024-09-04T13:00:23.168Z] 13:00:23     INFO - Closing window 0fb14a64-ad23-4493-8f57-d4b797ddc260
[task 2024-09-04T13:00:23.371Z] 13:00:23     INFO - PID 1076 | JavaScript error: http://web-platform.test:8000/html/semantics/scripting-1/the-script-element/json-module/charset-2.html, line 8: SyntaxError: import assertions are not currently supported
[task 2024-09-04T13:00:23.371Z] 13:00:23     INFO - PID 1076 | JavaScript error: http://web-platform.test:8000/html/semantics/scripting-1/the-script-element/json-module/charset-2.html, line 14: SyntaxError: import assertions are not currently supported
[task 2024-09-04T13:00:23.419Z] 13:00:23     INFO - TEST-UNEXPECTED-ERROR | /html/semantics/scripting-1/the-script-element/json-module/charset-2.html | SyntaxError: import assertions are not currently supported
[task 2024-09-04T13:00:23.419Z] 13:00:23     INFO - http://web-platform.test:8000/html/semantics/scripting-1/the-script-element/json-module/charset-2.html:14:121
[task 2024-09-04T13:00:23.419Z] 13:00:23     INFO - TEST-INFO took 580ms
Flags: needinfo?(aborovova)

Set release status flags based on info from the regressing bug 1916104

After this line in StaticPrefs.yaml, enabling to set the pref after startup similar to this one should be needed.

Jonatan, could you take care of this failure?

Flags: needinfo?(aborovova) → needinfo?(jonatan.r.klemets)
Regressed by: 1877792
No longer regressed by: 1916104

Ops, my bad. I forgot that this pref is nightly only when I updated the WPT metadata. I am traveling for the rest of the week, so I won't be able to submit a patch before early next week. So, in case this needs to be fixed ASAP, someone else needs to pick this up.

I think we need a release_or_beta check here to only set this flag in nightly:
https://searchfox.org/mozilla-central/rev/cc01f11adfacca9cd44a75fd140d2fdd8f9a48d4/testing/web-platform/meta/html/semantics/scripting-1/the-script-element/json-module/__dir__.ini#1

We also need to update the test expectations for all tests here: testing/web-platform/tests/HTML/semantics/scripting-1/the-script-element/json-module/. So that we expect failures in beta and release builds.

It looks like we have until 30 september to fix this, so there's time, but if you'd prefer me to have a look a this, please let me know.

Bug 1877792 sets javascript.options.experimental.import_attributes for a wpt
test which gets applied after startup. Change the preference to support this
need.

Assignee: nobody → aryx.bugmail
Status: NEW → ASSIGNED

A patch with the change suggested in comment 2 is available and will be tested by the code sheriffs tomorrow.

In the past (e.g. :bz), wpt expectations were set based on the default behavior of the branch, e.g. with feature enabled in central/Nightly as passing, failing for release and beta. Nowadays explicitly enabling the feature preference and setting the test expectations based on that is the default behavior. I did not get a definitive answer if this affects wpt overview sites which show features as implemented/shipping or not.

The patch is not working, still failing on today's beta sim with the patch imported.

This patch stack should fix the beta sim failures.

Flags: needinfo?(jonatan.r.klemets)

Patch is working in latest beta simulation

Pushed by mgaudet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3aab30167c79 Only set import attributes pref if not release or beta r=spidermonkey-reviewers,mgaudet https://hg.mozilla.org/integration/autoland/rev/f51b5125467a Update WPT test expectations for JSON modules r=spidermonkey-reviewers,mgaudet
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch

Verified fixed in today's central as beta sim

Status: RESOLVED → VERIFIED
Attachment #9423057 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: