I am using local storage to save user options in an extension that I am developing, so I want to access the contents of the storage to make sure that things are stored.
When I attempt to access the stored data using
localStorage at the console prompt from the extension options page, I get an error:
[Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: debugger eval code :: <TOP_LEVEL> :: line 1" data: no]
I get the same error when I attempt to write to localStorage with something like
I do not get an error from an ordinary web page, even when I access my
options.html page directly, which makes it hard to see what is going on.
Is this a bug, or a feature, and is there a way to access local storage so that I can debug the options page?