Closed Bug 1586888 Opened 5 years ago Closed 5 years ago

Test security/sandbox/test/browser_content_sandbox_fs.js has failures on macOS Catalina

Categories

(Core :: Security: Process Sandboxing, defect, P2)

71 Branch
Unspecified
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox-esr68 --- fixed
firefox70 --- wontfix
firefox71 --- fixed
firefox72 --- fixed

People

(Reporter: haik, Assigned: haik)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

On macOS Catalina Betas, some tests in browser_content_sandbox_fs.js are failing because two directories used for tests/checks don't exist. Those are /Network and /Library/Widgets. We need to update the tests to take this into account.

$ ./mach test --headless security/sandbox/test/browser_content_sandbox_fs.js

Unexpected Results
------------------
security/sandbox/test/browser_content_sandbox_fs.js
  FAIL Uncaught exception - [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.isDirectory]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: chrome://mochitests/content/browser/security/sandbox/test/browser_content_sandbox_utils.js :: GetDir :: line 96"  data: no]
Stack trace:
GetDir@chrome://mochitests/content/browser/security/sandbox/test/browser_content_sandbox_utils.js:96:17
testFileAccess@chrome://mochitests/content/browser/security/sandbox/test/browser_content_sandbox_fs.js:468:25
Tester_execTest/<@chrome://mochikit/content/browser-test.js:1350:34
async*Tester_execTest@chrome://mochikit/content/browser-test.js:1385:11
nextTest/<@chrome://mochikit/content/browser-test.js:1213:14
SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:805:67
  FAIL Found an unexpected tab at the end of test run: about:blank -
Assignee: nobody → haftandilian
Priority: -- → P2

Don't test with directories not present on macOS 10.15.

Blocks: catalina
Attachment #9101704 - Attachment description: Bug 1586888 - Test security/sandbox/test/browser_content_sandbox_fs.js has failures on macOS Catalina r?spohl → Bug 1586888 - Test security/sandbox/test/browser_content_sandbox_fs.js has failures on macOS Catalina r?gcp
Pushed by haftandilian@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e2135df66bd7
Test security/sandbox/test/browser_content_sandbox_fs.js has failures on macOS Catalina r=gcp
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: