Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

Firefox is crashing when trying to create ObjectStores via IndexedDB.

  • 1 baphendule
  • 2 zinale nkinga
  • 3 views
  • Igcine ukuphendulwa ngu the-edmeister

more options

Using the code below, Firefox consitently crashes during the db.setVersion("1.0") call, often without any errors or warnings. It doesn't go to the error function or success function.

After clearing the cache, site preferences and offline storage and refreshing the browser, it will come back and create or delete the objectStores, but it is very inconsistent and not reliable.

I'm trying to figure out why it keeps crashing and avoid it, I need a consistent and reliable way to create and delete objectStores in the IndexedDB. Any help is appreciated, thanks.


try {
			$wnd.alert("CreateFormRefDB.createFormRefDB() #2");
			var request = mozIndexedDB.open("TEST");
			request.onerror = function(event) {
				$wnd.alert("There was an Error opening IndexedDB!");
			};
			request.onsuccess = function(event) {
				$wnd.alert("CreateFormRefDB.createFormRefDB() #3");
				var db = event.target.result;
				var request = db.setVersion("1.0");
				request.onerror = function(event) {
					$wnd.alert("Error db.setVersion(1.0)");
				};
				request.onsuccess = function(event) {
					$wnd.alert("CreateFormRefDB.createFormRefDB() #4");
					objectStore = db.createObjectStore("formref", { keyPath: "localFormRefId"});
					objectStore.createIndex("formId", "formId", { unique : true });
					objectStore.createIndex("formName", "formName", { unique : false });
					$wnd.alert("new ObjectStore.name = " + objectStore.name);
				};
			}
		} catch(err) {
			$wnd.alert(err.message);
		}
Using the code below, Firefox consitently crashes during the db.setVersion("1.0") call, often without any errors or warnings. It doesn't go to the error function or success function. After clearing the cache, site preferences and offline storage and refreshing the browser, it will come back and create or delete the objectStores, but it is very inconsistent and not reliable. I'm trying to figure out why it keeps crashing and avoid it, I need a consistent and reliable way to create and delete objectStores in the IndexedDB. Any help is appreciated, thanks. <pre><nowiki> try { $wnd.alert("CreateFormRefDB.createFormRefDB() #2"); var request = mozIndexedDB.open("TEST"); request.onerror = function(event) { $wnd.alert("There was an Error opening IndexedDB!"); }; request.onsuccess = function(event) { $wnd.alert("CreateFormRefDB.createFormRefDB() #3"); var db = event.target.result; var request = db.setVersion("1.0"); request.onerror = function(event) { $wnd.alert("Error db.setVersion(1.0)"); }; request.onsuccess = function(event) { $wnd.alert("CreateFormRefDB.createFormRefDB() #4"); objectStore = db.createObjectStore("formref", { keyPath: "localFormRefId"}); objectStore.createIndex("formId", "formId", { unique : true }); objectStore.createIndex("formName", "formName", { unique : false }); $wnd.alert("new ObjectStore.name = " + objectStore.name); }; } } catch(err) { $wnd.alert(err.message); }</nowiki></pre>

Okulungisiwe ngu cor-el

All Replies (1)

more options

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.