Closed Bug 1005120 Opened 11 years ago Closed 11 years ago

Removing the osfile.jsm import from AppsUtils breaks B2G emulator builds

Categories

(Toolkit Graveyard :: OS.File, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1039861

People

(Reporter: marco, Unassigned)

References

Details

In bug 981085 we migrated away from OS.File in dom/apps code. AppsUtils.jsm is no longer using OS.File, but removing the osfile.jsm import makes the b2g emulator build fail with the following error: 18:05:26 INFO - Diagnostic: TypeError: "toString" is read-only at resource://gre/modules/osfile/osfile_unix_allthreads.jsm:89 I'm experiencing the same problem in bug 916874. The test "test_webappsActor.js" that I'm trying to enable is failing probably because of the same error.
That's also preventing me from landing bug 993282
Blocks: 993282
Bobby, it seems that modules loaded with require() behave differently using than Cu.import() only on b2g, so it's probably due to the reuseGlobal thing. Does that ring a bell to you?
Flags: needinfo?(bobbyholley)
I've never seen this require() setup in our module code before. Is this some devtools thing?
Flags: needinfo?(bobbyholley)
Yes, devtools code uses that *a lot*. And it seems like that makes the devtool "modules" to not be in the same compartement even on b2g. See for instance the memory reports from bug 998145.
(In reply to Fabrice Desré [:fabrice] from comment #4) > Yes, devtools code uses that *a lot*. And it seems like that makes the > devtool "modules" to not be in the same compartement even on b2g. See for > instance the memory reports from bug 998145. Oh yeah, yuck. That's totally not going to work with the b2g setup. :-(
(In reply to Bobby Holley (:bholley) from comment #5) > (In reply to Fabrice Desré [:fabrice] from comment #4) > > Yes, devtools code uses that *a lot*. And it seems like that makes the > > devtool "modules" to not be in the same compartement even on b2g. See for > > instance the memory reports from bug 998145. > > Oh yeah, yuck. That's totally not going to work with the b2g setup. :-( Any hope of doing something, or are we totally fucked up?
(In reply to Fabrice Desré [:fabrice] from comment #6) > (In reply to Bobby Holley (:bholley) from comment #5) > > (In reply to Fabrice Desré [:fabrice] from comment #4) > > > Yes, devtools code uses that *a lot*. And it seems like that makes the > > > devtool "modules" to not be in the same compartement even on b2g. See for > > > instance the memory reports from bug 998145. > > > > Oh yeah, yuck. That's totally not going to work with the b2g setup. :-( > > Any hope of doing something, or are we totally fucked up? I think the answer here is to hit near-memory-parity with compartments, and kill the funky b2g setup in bug 989373.
Blocks: 1006106
No longer blocks: 916874
Can we remove it for tarako only?
(In reply to James Zhang from comment #8) > Can we remove it for tarako only? No, that's actually breaking builds we run tests on.
Blocks: 1024157
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.