10

A few questions regarding IndexedDB, unlimitedStorage permission and accessing database created in content script from background/options script:

  1. Does "unlimitedStorage" permission covers databases created in background.js? (it's unclear in the docs)
  2. Does "unlimitedStorage" permission covers databases created in content.js on matched domains?
  3. Does database created in content.js on matched domain is schemeless? (i.e. will content scripts running on http:// and https:// access the same database?)
  4. Will database created in content script for matched domain be accessible from other extension's content script and will it survive extension removal?
  5. What is the way to access database for given domain from background/options.js? (assuming there is no content script that can be used to sent a message to)

I hope the answers for 1-4 are positive, but it would be good to have a definitive answer from the developers.

przemoc
  • 3,759
  • 1
  • 25
  • 29
  • See http://crbug.com/107271 and http://crbug.com/110699 for answers to some of your questions. – Rob W Oct 14 '13 at 14:57

1 Answers1

2

Yes for all your questions (except question 4)... ^_^

By the way, I recommend you only interact directly with localStorage (or some else) in background.js, then other script can work with localStorage data via background.js (using Message passing)

KimKha
  • 4,370
  • 1
  • 37
  • 45