LoginSignup
0
0

More than 5 years have passed since last update.

FirefoxでIndexedDBが利用できないときの対処法

Last updated at Posted at 2018-03-23

IndexedDBを利用しているアドオンのユーザから報告が寄せられたので調査した。
関連バグ: https://bugzilla.mozilla.org/show_bug.cgi?id=944918
解決までのやり取り: https://github.com/sienori/Tab-Session-Manager/issues/210

現象

window.indexedDB.openすると以下のエラーを吐く。
アドオンやwebサイトに関わらず,IndexedDBを利用している全てのサービスで再現性がある。

window.indexedDB.open('test', 1).onerror=(e=>{
    console.log(e.target.error.name);
    console.log(e.target.error.message);
});

//UnknownError
//The operation failed for reasons unrelated to the database itself and not covered by any other error code

解決方法

プロファイルのストレージが何らかの理由で破損していることが原因らしい。
以下の手順で初期化すれば解決する。

  1. about:profilesより使用中のプロファイルのルートディレクトリを開く profiles2.png
  2. Firefoxを終了し,storageフォルダを削除する
    exprole.PNG
    注意: 一部のアドオンやサービスのデータが失われる可能性があります。 必ずファイルのバックアップを取り,リスクを理解した上で行ってください。
  3. Firefoxを起動するとIndexedDBを利用できるようになる
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0