Remove OS.Constants.{libc,win,sys}.*
Categories
(Toolkit :: IOUtils and PathUtils, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox117 | --- | fixed |
People
(Reporter: beth, Assigned: beth)
References
Details
Attachments
(2 files, 1 obsolete file)
We are eventually removing osfile.jsm, which means you won't be able to get OS.Constants
imported by importing a JSM.
The current way to define OS.Constants
in a namespace is by doing:
Cc["@mozilla.org/net/osfileconstantsservice;1"]
.getService(Ci.nsIOSFileConstantsService)
.init();
This grabs the current JS global and defines an OS
object onto it. This seems magical and may lead to confusion. It might be better if we have something like:
const {OS} = Cc["@mozilla.org/net/osfileconstantsservice;1"]
.getService(Ci.nsIOSFileConstantsService)
.init();
// or
const {OS} = Services.osConstants.init();
or maybe better still, have it available on Services directly
Services.osConstants.libc.O_CREAT
Assignee | ||
Comment 1•2 years ago
|
||
This is also likely busted on ESMs since it is grabbing the this
member which doesn't exist in ESMs.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•1 years ago
|
Assignee | ||
Updated•1 years ago
|
Assignee | ||
Comment 3•1 years ago
|
||
Depends on D179383
Updated•1 years ago
|
Assignee | ||
Comment 4•1 year ago
|
||
ChromeUtils::GetPlatformConstants() is a replacement for
nsIOSFileConstantsService providing OS.Consts.LIBC and OS.Consts.Win.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 5•1 year ago
|
||
I believe all the OS.* modules have been removed now, so I don't think this blocks esm-ification.
Comment 7•1 year ago
|
||
Backed out for causing bustages in ChromeUtils.webidl.
- Backout link
- Push with failures
- Failure Log
- Failure line: WebIDL.WebIDLError: error: invalid syntax, /builds/worker/workspace/obj-build/dom/bindings/ChromeUtils.webidl line 1050:17
Assignee | ||
Updated•1 year ago
|
Comment 9•1 year ago
•
|
||
Backed out for causing multiple failures.
This affected only bc and xpcshell jobs on windows.
-
Failure log for failures on marSuccessPartialWhileBackgroundTaskRunning.js
-
Failure log for failures on test_backgroundtask_deletes_profile.js
-
Failure log for failures on test_ext_native_messaging_perf.js
-
Failure log for failures on browser_backgroundtask_specific_pref.js
LATER EDIT: this is also affecting dt jobs:
- failed on browser_dbg-backgroundtask-debugging.js
- failed on browser_toolbox_styleeditor.js
- failed on browser_browser_toolbox.js
- failed on browser_storage_indexeddb_hide_internal_dbs.js
and this talos job damp-other that failed on browser-toolbox.js.
Assignee | ||
Updated•1 year ago
|
Comment 10•1 year ago
|
||
Assignee | ||
Updated•1 year ago
|
Comment 11•1 year ago
|
||
Comment 12•1 year ago
|
||
bugherder |
Comment 13•1 year ago
|
||
bugherder |
Description
•