Closed
Bug 1772924
Opened 2 years ago
Closed 2 years ago
Remove osfile.jsm usage from security/sandbox/
Categories
(Toolkit Graveyard :: OS.File, task, P3)
Toolkit Graveyard
OS.File
Tracking
(firefox110 fixed)
RESOLVED
FIXED
110 Branch
Tracking | Status | |
---|---|---|
firefox110 | --- | fixed |
People
(Reporter: beth, Assigned: beth)
References
Details
Attachments
(1 file)
Assignee | ||
Comment 1•2 years ago
|
||
Several functions in browser_content_sandbox_utils.js (e.g.) run OS.File in the child process. However, IOUtils is explicitly parent process only, so these will need to be migrated to use nsIFile & NetUtil or similar.
Assignee | ||
Comment 2•2 years ago
|
||
Since this is only exercising sandboxing, this can be ported to sync nsIFile methods.
Assignee | ||
Comment 3•2 years ago
|
||
This also requires creating symlinks.
Assignee | ||
Comment 4•2 years ago
|
||
Updated•2 years ago
|
Assignee: nobody → brennie
Status: NEW → ASSIGNED
Comment 5•2 years ago
|
||
Backed out for causing failures on browser_content_sandbox_fs_xdg.js
- backout: https://hg.mozilla.org/integration/autoland/rev/f9108ee609e82380f8a6ca8365c2a5bcbca2f733
- push: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&revision=9a6e4fbe0be0095b2652ee08020cd0c822647d4d
- failure log: https://treeherder.mozilla.org/logviewer?job_id=399700126&repo=autoland&lineNumber=2455
[task 2022-12-15T03:15:45.333Z] 03:15:45 INFO - TEST-PASS | security/sandbox/test/browser_content_sandbox_fs_xdg.js | Temp file /tmp/.xdg_config_home_test/mozilla/.test_run_browser_sandbox.tmp was created -
[task 2022-12-15T03:15:45.333Z] 03:15:45 INFO - Buffered messages finished
[task 2022-12-15T03:15:45.333Z] 03:15:45 INFO - TEST-UNEXPECTED-FAIL | security/sandbox/test/browser_content_sandbox_fs_xdg.js | Uncaught exception in test - Error: ChromeUtils.import is called against an ES module script (resource://gre/modules/FileUtils.sys.mjs). Please use ChromeUtils.importESModule instead (SyntaxError: export declarations may only appear at top level of a module)
[task 2022-12-15T03:15:45.333Z] 03:15:45 INFO - Leaving test bound testFileAccessLinuxOnly
[task 2022-12-15T03:15:45.334Z] 03:15:45 INFO - Entering test bound cleanupBrowserTabs
[task 2022-12-15T03:15:45.335Z] 03:15:45 INFO - TEST-PASS | security/sandbox/test/browser_content_sandbox_fs_xdg.js | separate file content process is enabled -
Flags: needinfo?(brennie)
Pushed by brennie@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/aa7b179af582
Remove osfile.jsm usage in /security/sandbox/ r=haik
Comment 7•2 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox110:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Assignee | ||
Updated•2 years ago
|
Flags: needinfo?(brennie)
Updated•2 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•