19

I'm developing an app that needs offline storage SQL.

I try:

    if (window.openDatabase) {
        window.db = window.openDatabase("app", "", "my app db name", 1024*1024);
    }   

this works great on Chrome but doesn't work on my Firefox 3.6

What version of firefox will support openDatabase?

Rotem Tamir
  • 1,397
  • 2
  • 11
  • 26

4 Answers4

24

Mozilla have said they will never implement it according to this thread:

HTML5 IndexedDB, Web SQL Database and browser wars

Community
  • 1
  • 1
JamesHalsall
  • 13,224
  • 4
  • 41
  • 66
7

I believe FF is working towards implementing IndexedDB instead.

Joe Stefanelli
  • 132,803
  • 19
  • 237
  • 235
3

Default location for WebSQL DB in case of Firefox:

C:\Users\username\AppData\Roaming\Mozilla\Firefox\Profiles\mlolddya.default\databases\

For Chrome:

C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\databases\

for safari:

C:\Users\username\AppData\Local\Apple Computer\Safari\Databases\

new version of FF are not using WebSQL they are moved to IndexedDB.which is good no need to give support for two different db if you dont want to give support for Safari

amit kate
  • 120
  • 3
3

If you're interested to know what browsers support what you can check out Caniuse. In particular about local storage see this

Edit: Oops! I didn't realize this was a year old.

Eonasdan
  • 7,563
  • 8
  • 55
  • 82