Deprecate Cu.import
Categories
(Core :: XPConnect, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox102 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(13 files, 1 obsolete file)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Similar to bug 1765156
We have 2 ways to import JSM. ChromeUtils.import
and Cu.import
.
ChromeUtils.import
returns exports object, but Cu.import
returns global object.
The former supports lexical variables, but the latter doesn't have them, so
the latter requires variables defined on the JSM's global this property.
To achieve bug 1610653, we should replace Cu.import
with ChromeUtils.import
,
and then deprecate Cu.import
, to avoid future confusion.
Assignee | ||
Comment 1•3 years ago
|
||
Depends on D144093
Assignee | ||
Comment 2•3 years ago
|
||
Depends on D144094
Assignee | ||
Comment 3•3 years ago
|
||
Depends on D144095
Assignee | ||
Comment 4•3 years ago
|
||
Depends on D144096
Assignee | ||
Comment 5•3 years ago
|
||
Depends on D144097
Assignee | ||
Comment 6•3 years ago
|
||
Depends on D144098
Assignee | ||
Comment 7•3 years ago
|
||
Depends on D144099
Assignee | ||
Comment 8•3 years ago
|
||
Depends on D144100
Assignee | ||
Comment 9•3 years ago
|
||
Depends on D144101
Assignee | ||
Comment 10•3 years ago
|
||
Depends on D144102
Assignee | ||
Comment 11•3 years ago
|
||
Depends on D144103
Assignee | ||
Comment 12•3 years ago
|
||
Depends on D144104
Assignee | ||
Comment 13•3 years ago
|
||
Depends on D144105
Assignee | ||
Comment 14•3 years ago
|
||
Depends on D144106
Assignee | ||
Comment 15•3 years ago
|
||
Some patch modifies sjs file, and ChromeUtils
isn't available with the current hostutils that's from version 93.0.
will address it in bug 1765482
Comment 16•3 years ago
|
||
I'm assuming Cu.import will be removed completely in the future, so we'd like to port our autoconfig scripts. But ChromeUtils isn't available there. How should I proceed here?
Assignee | ||
Comment 17•3 years ago
|
||
(In reply to tobias from comment #16)
I'm assuming Cu.import will be removed completely in the future, so we'd like to port our autoconfig scripts. But ChromeUtils isn't available there. How should I proceed here?
I think CentralizedAdminPrefManagerInit
and nsXPConnect::CreateSandbox
needs to be modified to pass/receive extra option to define ChromeUtils
, in the same way as Cu.Sandbox
provides it
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 18•3 years ago
|
||
Abandoned Part 14 for adding deprecation warning.
The runtime deprecation warning should be deferred at least until after the next ESR (102), and possibly until the transition finishes for all modules.
For in-tree consumers, ESLint rule should cover well.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 19•3 years ago
|
||
Comment 20•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ebebbd0619bc
https://hg.mozilla.org/mozilla-central/rev/3b192bbb9b92
https://hg.mozilla.org/mozilla-central/rev/9c24e578ed2d
https://hg.mozilla.org/mozilla-central/rev/57a5aee8b00c
https://hg.mozilla.org/mozilla-central/rev/0c742b244e3a
https://hg.mozilla.org/mozilla-central/rev/ce0a760da775
https://hg.mozilla.org/mozilla-central/rev/c981e6933171
https://hg.mozilla.org/mozilla-central/rev/280fa8df0a72
https://hg.mozilla.org/mozilla-central/rev/6e8185f1cb48
https://hg.mozilla.org/mozilla-central/rev/fcdfb914da44
https://hg.mozilla.org/mozilla-central/rev/d0eb5c083472
https://hg.mozilla.org/mozilla-central/rev/9529d10d5b77
https://hg.mozilla.org/mozilla-central/rev/ebcde663bae8
Description
•