Expose nsIEnvironment through Services.env
Categories
(Core :: XPCOM, task, P5)
Tracking
()
Tracking | Status | |
---|---|---|
firefox109 | --- | fixed |
People
(Reporter: bgrins, Assigned: beth)
References
Details
Attachments
(22 files)
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 | |
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 |
This is used in a bunch of places that could be simplified if we moved this into Services: https://searchfox.org/mozilla-central/search?q=nsIEnvironment&path=.
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 1•2 years ago
|
||
Moving to "Core :: XPCOM" from to consider if this may be worth doing.
Comment 2•2 years ago
|
||
IIRC all you'd need to do for this is to add js_name
and interfaces
fields to the static component registration: https://searchfox.org/mozilla-central/rev/685203e4bc211073284f3c36f7f3d34f0953bb9c/xpcom/threads/components.conf#8-13, if someone is interested in doing this cleanup.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Assignee | ||
Comment 4•2 years ago
|
||
Depends on D160135
Assignee | ||
Comment 5•2 years ago
|
||
Depends on D160136
Assignee | ||
Comment 6•2 years ago
|
||
Depends on D160137
Assignee | ||
Comment 7•2 years ago
|
||
Depends on D160138
Assignee | ||
Comment 8•2 years ago
|
||
Depends on D160139
Assignee | ||
Comment 9•2 years ago
|
||
Depends on D160140
Assignee | ||
Comment 10•2 years ago
|
||
Depends on D160141
Assignee | ||
Comment 11•2 years ago
|
||
Depends on D160142
Assignee | ||
Comment 12•2 years ago
|
||
Depends on D160143
Assignee | ||
Comment 13•2 years ago
|
||
Depends on D160144
Assignee | ||
Comment 14•2 years ago
|
||
Depends on D160145
Assignee | ||
Comment 15•2 years ago
|
||
Depends on D160146
Assignee | ||
Comment 16•2 years ago
|
||
Depends on D160147
Assignee | ||
Comment 17•2 years ago
|
||
Depends on D160149
Assignee | ||
Comment 18•2 years ago
|
||
Depends on D160150
Assignee | ||
Comment 19•2 years ago
|
||
Depends on D160151
Assignee | ||
Comment 20•2 years ago
|
||
Depends on D160152
Assignee | ||
Comment 21•2 years ago
|
||
Depends on D160153
Comment 22•2 years ago
|
||
Thanks a lot for doing this nice cleanup!
Should this new Services.env be added to the list in https://searchfox.org/mozilla-central/source/tools/lint/eslint/eslint-plugin-mozilla/lib/services.json to have eslint catch it when it should be used but is not? (apologies if you are already doing it and I missed it)
Comment 23•2 years ago
|
||
Comment 24•2 years ago
|
||
Backed out for causing xpcshell failures on test_notHeadlessByDefault.js
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | test_notHeadlessByDefault.js | xpcshell return code: 0
Lint failure log: https://treeherder.mozilla.org/logviewer?job_id=395186846&repo=autoland
Comment 25•2 years ago
|
||
Assignee | ||
Comment 26•2 years ago
|
||
Comment 27•2 years ago
|
||
Assignee | ||
Comment 28•2 years ago
|
||
Comment 29•2 years ago
|
||
Comment 30•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f7c5da72773e
https://hg.mozilla.org/mozilla-central/rev/79044f07da6f
https://hg.mozilla.org/mozilla-central/rev/13ab592d9fc7
https://hg.mozilla.org/mozilla-central/rev/422102d31f7d
https://hg.mozilla.org/mozilla-central/rev/f57eac075fbe
https://hg.mozilla.org/mozilla-central/rev/c52ce5a1b79d
https://hg.mozilla.org/mozilla-central/rev/7a1f0febe1bc
https://hg.mozilla.org/mozilla-central/rev/a502617685ab
https://hg.mozilla.org/mozilla-central/rev/784c91d51e52
https://hg.mozilla.org/mozilla-central/rev/8c8d647347e8
https://hg.mozilla.org/mozilla-central/rev/4a9ca69a0d29
https://hg.mozilla.org/mozilla-central/rev/92fea1a71ea3
https://hg.mozilla.org/mozilla-central/rev/2fba28997d4b
https://hg.mozilla.org/mozilla-central/rev/cd17720763b6
https://hg.mozilla.org/mozilla-central/rev/6c1df04495c1
https://hg.mozilla.org/mozilla-central/rev/193790f0eeab
https://hg.mozilla.org/mozilla-central/rev/d6a979c61480
https://hg.mozilla.org/mozilla-central/rev/576387596194
https://hg.mozilla.org/mozilla-central/rev/641e9a674452
https://hg.mozilla.org/mozilla-central/rev/af58a74ada19
https://hg.mozilla.org/mozilla-central/rev/b3bebb9a12f9
Comment 31•2 years ago
|
||
Comment 32•2 years ago
|
||
Comment 33•2 years ago
|
||
A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)
Assignee | ||
Updated•2 years ago
|
Comment 34•2 years ago
|
||
Description
•