developit / developit/greenlet

indexedDB is null in Firefox

オープン
#40 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
discussion question
主要言語
JavaScript
スター
4.7k
フォーク
97
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello! Just noticed this problem with greenlet on Firefox (66.0.3); indexedDB is `null` in the greenlet execution context.

Reproduction case:

```javascript
const callIndexedDB = greenlet(async (limit) => {
console.log(indexedDB);
// null
});
```

Also on Chrome (73.0.3683.103) it appears the success callback is never called:

```javascript
const callIndexedDB = greenlet(async (limit) => {
var db;
var request = indexedDB.open("MyTestDatabase");
request.onerror = function(event) {
alert("Why didn't you allow my web app to use IndexedDB?!");
};
request.onsuccess = function(event) {
console.log("Success!");
// Never called
};
});
```

Let me know if there's any other information I can provide that might be useful here.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、提供されている greenlet の再現手順を Firefox 66.0.3 と Chrome 73.0.3683.103 で実行し、次に greenlet の実行コンテキストと indexedDB.open の成功コールバックを調査します。ブラウザー固有の null 値とコールバックがない理由が説明され、プロジェクトでサポートされる解決策が特定できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
web-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。