Closed Bug 887907 Opened 11 years ago Closed 11 years ago

Switch OS.File to Promise.jsm

Categories

(Toolkit Graveyard :: OS.File, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla25

People

(Reporter: gps, Assigned: smirea)

References

Details

Attachments

(1 file)

OS.File currently can't run on B2G because promise.js isn't available because it's part of the add-on sdk. I'm hoping switching OS.File to Promise.jsm (which will be done in the long run anyway) will fix it.
Summary: Switch OS.File to Promise.jsm → [OS.File] Switch OS.File to Promise.jsm
I might have been wrong about promise.js availability on b2g. Although, we are seeing an xpcshell test failure in /services/healthreport that appears to be cu.import complaining about missing addons.js. Strangely the os.file xpcshell tests are passing!
Summary: [OS.File] Switch OS.File to Promise.jsm → Switch OS.File to Promise.jsm
Assignee: nobody → steven.mirea
QA Contact: steven.mirea
I obviously meant missing "promise.js," not "addons.js."
FWIW, OS.File has worked on B2G and promise.js (or promise/core.js, at least) used to be available for B2G. But yes, by all means, let's move to Promise.jsm.
Changed 2 files and one test to use Promise.jsm instead of promise.js. On my configuration tests worked without any other modification on boot 2 gecko. needs push to try
Attachment #768454 - Flags: review?(gps)
Turns out the B2G bit was completely wrong.
OS: Mac OS X → All
Hardware: x86 → All
Version: 22 Branch → Trunk
https://tbpl.mozilla.org/?tree=Try&rev=c3ef244405ca

I'm guessing more failures than Task.jsm (bug 887923) because OS.File is more widely used.
Comment on attachment 768454 [details] [diff] [review]
move OS.File to use Promise.jsm

Review of attachment 768454 [details] [diff] [review]:
-----------------------------------------------------------------

Surprisingly, this didn't appear to introduce any new failures!
Attachment #768454 - Flags: review?(gps) → review+
Status: NEW → ASSIGNED
Keywords: checkin-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/36075e85ce59
Flags: in-testsuite-
Keywords: checkin-needed
Target Milestone: --- → mozilla25
https://hg.mozilla.org/mozilla-central/rev/36075e85ce59
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Blocks: 996671
No longer blocks: 856878
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: