mapbox / mapbox/mapbox-gl-js

`new mapboxgl.Map(...)` hangs in Firefox headless

Open
#10,003 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

needs investigation :mag:
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.