Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

indexedDB is prefixed in fx 14. #558

Merged
merged 1 commit into from

2 participants

Gregg Lind Irakli Gozalishvili
Gregg Lind

Bryan Clark noticed this, I am just the messenger.

Irakli Gozalishvili
Owner

Thanks @gregglind

Irakli Gozalishvili Gozala merged commit 2be112a into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 7, 2012
  1. Gregg Lind

    fx 14 prefix issue.

    gregglind authored
    for clarkbw
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 packages/addon-kit/lib/indexed-db.js
4 packages/addon-kit/lib/indexed-db.js
View
@@ -16,6 +16,10 @@ Cc["@mozilla.org/dom/indexeddb/manager;1"].
getService(Ci.nsIIndexedDatabaseManager).
initWindowless(this);
+if (indexedDB === undefined) {
+ var indexedDB = mozIndexedDB;
+} // fx 14 gets this under a prefix
+
// Wrap `indexedDB` methods in order to prefix names
// with add-on IDs. This is temporary workaround for
// Bug 786688. Note: once bug is fixed and prefixing is
Something went wrong with that request. Please try again.