Closed Bug 1745352 Opened 3 years ago Closed 3 years ago

Remove osfile.jsm from browser/components/extensions

Categories

(WebExtensions :: General, task)

task

Tracking

(firefox98 fixed)

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: beth, Assigned: beth)

References

Details

Attachments

(3 files, 1 obsolete file)

No description provided.
Severity: -- → S3
Priority: -- → P3
Depends on: 1745361

We need a way to get the current working directory here to build up the paths for the test.

Assignee: nobody → brennie

Comment on attachment 9255397 [details]
Bug 1745352 - Remove osfile.jsm from browser/components/tests r?mixedpuppy

Revision D133825 was moved to bug 1745358. Setting attachment 9255397 [details] to obsolete.

Attachment #9255397 - Attachment is obsolete: true

Depends on D133841

Depends on D133842

Component: OS.File → General
Product: Toolkit → WebExtensions

The product::component has been changed since the backlog priority was decided, so we're resetting it.
For more information, please visit auto_nag documentation.

Priority: P3 → --

There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:barret, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(gijskruitbosch+bugs)
Flags: needinfo?(brennie)

The change in bug 1745361 only just landed, so I think we're good.

Flags: needinfo?(gijskruitbosch+bugs)
Pushed by brennie@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bc2c0094773c
Add depth param to PathUtils.getParent to get aribtrary ancestors r=Gijs

Backed out for causing failures on test_pathutils.html

[task 2022-01-18T18:41:36.919Z] 18:41:36     INFO - TEST-PASS | dom/system/tests/test_pathutils.html | PathUtils.parent() with depth=2 
[task 2022-01-18T18:41:36.919Z] 18:41:36     INFO - Buffered messages finished
[task 2022-01-18T18:41:36.920Z] 18:41:36     INFO - TEST-UNEXPECTED-FAIL | dom/system/tests/test_pathutils.html | PathUtils.parent() with depth=3 - got "/home/user", expected "/home/user/"
[task 2022-01-18T18:41:36.920Z] 18:41:36     INFO - SimpleTest.is@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:500:14
[task 2022-01-18T18:41:36.921Z] 18:41:36     INFO - test_parent@chrome://mochitests/content/chrome/dom/system/tests/test_pathutils.html:193:13
[task 2022-01-18T18:41:36.921Z] 18:41:36     INFO - add_task/nextTick/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:2095:34
[task 2022-01-18T18:41:36.923Z] 18:41:36     INFO - TEST-PASS | dom/system/tests/test_pathutils.html | PathUtils.parent() with depth=4 
Flags: needinfo?(brennie)
Pushed by brennie@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ba57b662bb72
Add depth param to PathUtils.getParent to get aribtrary ancestors r=Gijs
https://hg.mozilla.org/integration/autoland/rev/0975c59084aa
Remove osfile.jsm from browser/components/extensions r=mixedpuppy

Backed out for failures on test_ext_pkcs11_management.js

[task 2022-01-19T04:14:14.827Z] 04:14:14     INFO -  TEST-START | xpcshell.ini:browser/components/extensions/test/xpcshell/test_ext_pkcs11_management.js
[task 2022-01-19T04:14:15.158Z] 04:14:15  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:browser/components/extensions/test/xpcshell/test_ext_pkcs11_management.js | xpcshell return code: 0
[task 2022-01-19T04:14:15.159Z] 04:14:15     INFO -  TEST-INFO took 329ms
[task 2022-01-19T04:14:15.159Z] 04:14:15     INFO -  >>>>>>>
[task 2022-01-19T04:14:15.159Z] 04:14:15     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2022-01-19T04:14:15.160Z] 04:14:15     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2022-01-19T04:14:15.160Z] 04:14:15     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2022-01-19T04:14:15.160Z] 04:14:15     INFO -  running event loop
[task 2022-01-19T04:14:15.162Z] 04:14:15     INFO -  xpcshell.ini:browser/components/extensions/test/xpcshell/test_ext_pkcs11_management.js | Starting setup
[task 2022-01-19T04:14:15.162Z] 04:14:15     INFO -  (xpcshell/head.js) | test setup pending (2)
[task 2022-01-19T04:14:15.162Z] 04:14:15     INFO -  (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2022-01-19T04:14:15.163Z] 04:14:15     INFO -  Unexpected exception TypeError: IOUtils.createDirectory is not a function at /builds/worker/workspace/build/tests/xpcshell/tests/browser/components/extensions/test/xpcshell/test_ext_pkcs11_management.js:22
[task 2022-01-19T04:14:15.163Z] 04:14:15     INFO -  setup@/builds/worker/workspace/build/tests/xpcshell/tests/browser/components/extensions/test/xpcshell/test_ext_pkcs11_management.js:22:17
[task 2022-01-19T04:14:15.163Z] 04:14:15     INFO -  _do_main@/builds/worker/workspace/build/tests/xpcshell/head.js:240:6
[task 2022-01-19T04:14:15.163Z] 04:14:15     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:604:5
[task 2022-01-19T04:14:15.163Z] 04:14:15     INFO -  @-e:1:1
[task 2022-01-19T04:14:15.163Z] 04:14:15     INFO -  exiting test
[task 2022-01-19T04:14:15.163Z] 04:14:15     INFO -  OperationError: Could not parse path (undefined): NS_ERROR_FILE_UNRECOGNIZED_PATH
[task 2022-01-19T04:14:15.163Z] 04:14:15     INFO -  @/builds/worker/workspace/build/tests/xpcshell/tests/browser/components/extensions/test/xpcshell/test_ext_pkcs11_management.js:26:17
[task 2022-01-19T04:14:15.163Z] 04:14:15     INFO -  _execute_test/<@/builds/worker/workspace/build/tests/xpcshell/head.js:668:28
[task 2022-01-19T04:14:15.163Z] 04:14:15     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:677:5
[task 2022-01-19T04:14:15.163Z] 04:14:15     INFO -  @-e:1:1
[task 2022-01-19T04:14:15.163Z] 04:14:15     INFO -  <<<<<<<
Flags: needinfo?(brennie)
Depends on: 1751085
Flags: needinfo?(brennie)

PathUtils is the only binding requires for this patch, but eventually we'll
have to migrate NativeManifests.jsm to IOUtils and then we will have to provide
it anyway.

Depends on D133842

Attachment #9255416 - Attachment description: Bug 1745352 - Add depth param to PathUtils.getParent to get aribtrary ancestors r?gijs → Bug 1745352 - Add depth param to PathUtils.getParent to get arbitrary ancestors r?gijs
Pushed by brennie@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d5e6bd275b5d
Add depth param to PathUtils.getParent to get arbitrary ancestors r=Gijs
https://hg.mozilla.org/integration/autoland/rev/17adef35f390
Expose IOUtils and PathUtils via Cu.importGlobalProperties r=nika
https://hg.mozilla.org/integration/autoland/rev/cd7d8b76f9d0
Remove osfile.jsm from browser/components/extensions r=mixedpuppy
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: