Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

xulrunner 10 setting to activate indexeddb per default

  • No replies
  • 3 have this problem

I'm using a SWT browser control to embedded web applications into java applications. The SWT browser uses a xulrunner 10.0.2 as runtime.

Now there exists a problem with indexeddb. The web application tries to open an object store, but the callbackmethods onerror AND onsuccess will not be called at all.

I've tried to open the web application in an firefox 10 browser. There a permission prompt pops up to allow indexeddb interaction. So my question is, how to activate indexeddb in the xulrunner environment, or how to disabled the permission check for indexeddb?

thx johann

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.5 r502
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.01
  • 5.1.10411.0
  • VLC media player Web Plugin 2.0.0
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Adobe Shockwave for Director Netscape plug-in, version 11.5
  • Office Authorization plug-in for NPAPI browsers


  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0

More Information

tried to debug the problem with trialtool from http://nparashuram.com/trialtool/index.html
/*Pre Requisites*/
// Initialising the window.IndexedDB Object
window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange;
window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction;
var DAO = DAO || {};
/*Open Database*/
document.write("Trying to open database ...");
var db = null;
try {
var dbOpenRequest = window.indexedDB.open("BookShop1");
// callbacks are never called !!
dbOpenRequest.onsuccess = function(event){
db = dbOpenRequest.result;
DAO.version = db.version;
var thisDB = db; // Need to create this variable since the variable db is assigned to other things later
db.onversionchange = function(e){
write("Version change triggered, so closing database connection", e.oldVersion, e.newVersion, thisDB);
write("Database Opened", db, event);
/* Code for ${db.open} */
dbOpenRequest.onupgradeneeded = function(e){
write("Database upgrade needed");
var db = dbOpenRequest.result;
var transaction = dbOpenRequest.transaction;
/* Code for ${db.upgrade} */
dbOpenRequest.onerror = function(e){
write("DB Open Request Error");
dbOpenRequest.onblocked = function(e){
write("DB Open Request Blocked");
} catch (e) {