try{ // see: https://bugzilla.mozilla.org/show_bug.cgi?id=357323 var myStorage = globalStorage[((location.hostname == "localhost") ? "localhost.localdomain" : location.hostname)]; }catch(e){ this._available = false; return this._available; } this._available = true; return this._available;