- Lazily initialize file IO-specific stuff in ExtensionStorage.jsm,
and limit this work to the main process.
- Add local versions of the `storage.local.get` and `storage.local.set`
implementations that perform sanitization (without the change, values
are improperly serialized over IPC).
- Copied the `backgroundScript` test from xpcshell/test_ext_storage.js
to mochitest/test_ext_storage_content.html because they should behave
identical. Before this patch the test failed due to IPC serialization
issues, now the test passes.
Note that the old test also passes with the changes.
MozReview-Commit-ID: 8J8CCdwMACN