Closed Bug 1947719 Opened 1 year ago Closed 1 year ago

Move setImportAttributes call out of NIGHTLY_BUILD guard

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

VERIFIED FIXED
137 Branch
Tracking Status
firefox137 --- verified

People

(Reporter: allstars.chh, Assigned: allstars.chh, NeedInfo)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-needed)

Attachments

(3 files)

Currently, the API to set the import attributes pref is only available in nightly build, see
https://searchfox.org/mozilla-central/rev/5e7382bf8bbb88d8260c72990cfea9b626d9b307/js/xpconnect/src/XPCJSContext.cpp#796,
that causes a problem when running wpt or mochitest in BETA build, even the tests are run with the pref to turn on.

I'll remove the ifdef NIGHTLY_BUILD guard, while still keeping the pref off by default.

Replace the legacy name (import assertions) with the correct one (import
attributes).

Pushed by allstars.chh@gmail.com: https://hg.mozilla.org/integration/autoland/rev/64a496c34397 Part 1: Move import attributes pref and setImportAttributes out of nightly build guard. r=dminor https://hg.mozilla.org/integration/autoland/rev/4715f18f59fa Part 2. Update the error message for import attributes. r=dminor https://hg.mozilla.org/integration/autoland/rev/48a8dd8caf6e Part 3: Update WPT ini files and xpcshell config file. r=dminor,extension-reviewers,willdurand https://hg.mozilla.org/integration/autoland/rev/c9e47dbea687 apply code formatting via Lando

Verified fixed in today's beta simulation

Status: RESOLVED → VERIFIED
Blocks: 1947432
No longer duplicate of this bug: 1947432
Blocks: 1947455
No longer duplicate of this bug: 1947455
Keywords: dev-doc-needed

I thought this might have something to do with https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import/with, but this particular issue is not linked to https://bugzilla.mozilla.org/show_bug.cgi?id=1736059 (import attributes meta).

Can you tell me what exactly is now supported/changed by this that was not previously? I.e. what needs to be documented/what is the change to data compatibility?

Flags: needinfo?(schuster)
No longer blocks: 1777526
Blocks: 1736059
Blocks: 1950836
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: