`new mapboxgl.Map(...)` hangs in Firefox headless
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
Hello all -- I've got a pretty simple & major bug, but it's not clear to me if it's Mapbox's fault or Firefox's (or mine or Selenium's?). If it's not Mapbox's fault, hopefully you all can help me make another MWE that doesn't rely on Mapbox.
**mapbox-gl-js version**: v1.12.0
**browser**: Mozilla Firefox 68.12.0esr (headless)
### Steps to Trigger Behavior
1. Call the Map constructor `new mapboxgl.Map(...)` from a headless Firefox instance
### Link to Demonstration
[My repo](https://github.com/pgarrison/mapboxgl-bug-mwe) runs the same basic test twice, once headless and once not headless
### Expected Behavior
The constructor should return
### Actual Behavior
The constructor hangs, holding up javascript execution completely and never returning
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked mapboxgl-bug-mwe repository and run its test in headless and non-headless Firefox using mapbox-gl-js v1.12.0. Trace the `new mapboxgl.Map(...)` call and establish whether the constructor hang is reproducible in the project; done means the cause is identified and the constructor no longer blocks JavaScript execution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100