title: Indexeddb AbortError
body: <p>Below is my Javascript code for opening an indexedDB. I have tested the code several times successfully in Firefox 21 before, but now I am seeing an AbortError being returned by the indexedDB.open() function in e.target.error.name.</p>
  
  <pre><code>var openDB = function(dbCallBack) {
    var openDB = function(dbCallBack) {
      window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; 
      window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction;
      window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange || window.msIDBKeyRange;
  
      request = window.indexedDB.open('mgDB');
      request.onerror = function(e) {
        alert('Error: ' + e.target.error.name + ': Failed to open the database');
        dbCallBack(false, false);
      };
  
      request.onupgradeneeded = function(e) {
        dbCallBack(true, false);
      };
  
      request.onsuccess = function(e) {
        db = e.target.result;
        if (db.objectStoreNames.length == 0) { 
          dbCallBack(true, true);
        } else {
          dbCallBack(true, false);
        }
      };
    };
  };
  </code></pre>
  
  <p>Here's how the openDB() function is being called. The code for dbCallBack function is inline below:</p>
  
  <pre><code>if (!db) {
      var dbOpenSuccess;
      openDB(function(dbOpenSuccess, emptyTableMsg) {
        if (emptyTableMsg) {
          displayEmptyTableMsg();
        } else if (dbOpenSuccess) {
          displayTableContents();         
        }
      }); 
  }
  </code></pre>
  
  <p>Note: I have tried clearing the browser cache and deleting the indexedDB manually from the folder C:\users{userID}\AppData\Roaming\Mozilla\Firefox\Profiles before re-running the tests. I ran the same code successfully at <a href="http://nparashuram.com/IndexedDB" rel="nofollow">http://nparashuram.com/IndexedDB</a>. What could be wrong? </p>