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)
Firefox
General
Tracking
()
RESOLVED
FIXED
104 Branch
Tracking | Status | |
---|---|---|
firefox104 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
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.
Assignee | ||
Comment 1•2 years ago
|
||
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
Comment 3•2 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox104:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•