Closed Bug 836206 Opened 12 years ago Closed 12 years ago

Split out or rewrite CommonUtils.jsonLoad/jsonSave

Categories

(Cloud Services :: Firefox: Common, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla21

People

(Reporter: rnewman, Assigned: rnewman)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

These are the only two consumers of FileUtils and NetUtils in services/common/utils.jsm. They're only used by AITC and Sync, the former only once each. We should consider moving jsonLoad and jsonSave back into Sync's utils, and rewriting AITC to use readJSON/writeJSON, or removing AITC from the tree altogether if it's dead. It might also be advantageous to lazy-load OS.File in CommonUtils. I don't know if that's already being loaded, and thus we don't save anything, but it might push that back to when we need to read or write.
Depends on: 836395
Try run for 67f6cbc5dca6 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=67f6cbc5dca6 Results (out of 19 total builds): exception: 19 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/rnewman@mozilla.com-67f6cbc5dca6
That was a canceled try run. Yay.
Depends on the death of AITC, of course.
Assignee: nobody → rnewman
Status: NEW → ASSIGNED
Attachment #708314 - Flags: review?(gps)
Shaves 3120B off common utils.js. Every little helps! :D
Comment on attachment 708314 [details] [diff] [review] Move jsonLoad and jsonSave back to Sync utils. v1 Review of attachment 708314 [details] [diff] [review]: ----------------------------------------------------------------- Removed a few imports from utils.js - nice!
Attachment #708314 - Flags: review?(gps) → review+
https://hg.mozilla.org/services/services-central/rev/58b601eae9a7 Note that I landed Bug 836395 with this bug in the commit message. Oops.
Whiteboard: [fixed in services][qa-]
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in services][qa-] → [qa-]
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: