Closed Bug 1779539 Opened 2 years ago Closed 2 years ago

Use static import for XPCOMUtils.jsm in system ESMs in browser/components/pagedata

Categories

(Firefox :: General, task)

task

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: arai, Assigned: arai)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

https://searchfox.org/mozilla-central/rev/a9e776193401900a8ceffa478ae6e9930e895ca1/browser/components/pagedata/PageDataChild.sys.mjs#7-9

const { XPCOMUtils } = ChromeUtils.importESModule(
  "resource://gre/modules/XPCOMUtils.sys.mjs"
);

This part should use static import given it's at the top-level inside system ESM.

import { XPCOMUtils } from "resource://gre/modules/XPCOMUtils.sys.mjs";

The ./mach esmify command is fixed in bug 1779538, and I'll post a patch with the result of the command.

Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/828d4000e578
Use static import for XPCOMUtils.jsm in system ESMs in browser/components/pagedata. r=mossop
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: