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)

Tracking

(firefox110 fixed)

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: beth, Assigned: beth)

References

Details

Attachments

(1 file)

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.

Since this is only exercising sandboxing, this can be ported to sync nsIFile methods.

This also requires creating symlinks.

Depends on: 1801496
Assignee: nobody → brennie
Status: NEW → ASSIGNED

Backed out for causing failures on browser_content_sandbox_fs_xdg.js

[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
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Flags: needinfo?(brennie)
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: