In Firefox 4.0.1 it fails with "J is undefined" Here is the offending code: "";C=1;var a=window.applicationCache;if(z[n.APP_CACHING])z[n.APP_CACHING](C);a.swapCache();J.addEvent("KindleApp:AppCacheUpdate")}function d(){K="";C=1;E&&!E.getItem("cached")&&E.setItem("cached",1);if(z[n.APP_CACHING])z[n.APP_CACHING](C);N&&(N=!1,J.addEvent("KindleApp:AppCacheSuccess"))}function B(a,c,q){var s=J.startMetrics("Store::TOSOpen"),b=a?z[n.STORE_OPEN_STATUS]:z[u.STORE_OPEN_STATUS];F||(F=!0,KindleTOS.open(c,q).then(function(c){b&&b(!0);c?E.removeItem(w):(a||(h(),g()),t(),$("#"+k.KINDLE_READER_CONTAINER_ID).hide(),
In Firefox 5.0.1 it fails with "openDatabase is not defined" Here is the offending code: a.executeSql("DROP TABLE IF EXISTS annotationsCache;");a.executeSql("DROP TABLE IF EXISTS covers;");a.executeSql("DROP TABLE IF EXISTS metrics;")}var e=new jQuery.Deferred;a.dbHandle?a.dbHandle.transaction(d,c,b):e.resolve();return e.promise()}function m(a){var b=a.defaultSize;q!==void 0&&b>q*1E6&&(b=q*1E6);return openDatabase(a.shortName,a.version,a.displayName,b)}function x(a){function b(d){var e,q=[];for(e=0;e=0&&q.push(d[e]);c.resolve(q)}var c=new jQuery.Deferred;