developit / developit/greenlet

indexedDB is null in Firefox

Open
#40 1 comment 0 reactions 0 assignees View on GitHub
discussion question
Dominant language
JavaScript
Stars
4.7k
Forks
97
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the supplied greenlet reproduction in Firefox 66.0.3 and Chrome 73.0.3683.103, then inspect the greenlet execution context and the indexedDB.open success callback. Done means the browser-specific null value and missing callback are explained and a project-supported resolution is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.