Closed
Bug 1982021
Opened 1 year ago
Closed 1 year ago
ChromeUtils.importESModule returns any and prevents type usage
Categories
(Developer Infrastructure :: Lint and Formatting, defect)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox143 fixed)
RESOLVED
FIXED
143 Branch
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: mkennedy, Assigned: standard8)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
The return type of ChromeUtils.importESModule is incorrectly set to any in lib.gecko.dom.d.ts which is preventing us from checking or using the type of a class returned from it or anything that extends it.
For example the EventEmitter type used at the top of toolkit/content/preferencesBindings.js results in any, so type checking of the class is lost throughout the rest of the file. See attachment.
| Reporter | ||
Updated•1 year ago
|
Attachment #9506016 -
Attachment description: /home/mark/Downloads/EventEmitter_any_type.png → EventEmitter_any_type.png
| Reporter | ||
Updated•1 year ago
|
Keywords: regression
Regressed by: 1976049
| Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → standard8
Status: NEW → ASSIGNED
Pushed by mbanner@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/f492e48d9358
https://hg.mozilla.org/integration/autoland/rev/228df64f42b1
Add TypeScript definitions for ChromeUtils.importESModule. r=zombie
Comment 3•1 year ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox143:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
Comment 4•11 months ago
•
|
||
Moving regression to blocks since we really needed this to be updated to support bug 1976049
You need to log in
before you can comment on or make changes to this bug.
Description
•