Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix exception when looking up indexedDB when disabled in Firefox. #798
Firefox will sometimes throw an exception when looking up known but
While this fix could be more specific, putting it in the testDOMProps function will help prevent bugs like this from being introduced in the future.
Sorry, I should have been much clearer in my initial request. I'm working on a cross-browser extension/webapp that I'm currently porting it to Firefox (as an extension). Trying to access window.indexedDB from a Firefox extension throws an exception (same with window.localStorage, etc.).
I understand that Modernizr is not intended to be run inside extensions. When I initially encountered this problem, I mistakenly assumed that it applied to Firefox in general (like bug #92). As it doesn't, I understand if you feel this patch isn't altogether necessary.
Presumably Indexed DB is disabled in FF for bookmarklets (or
So maybe 3 developer/debug/hack use cases for sticking a