rust-windowing / rust-windowing/winit

Custom Element incompatibility

Open
#4,385 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

B - bug DS - web
Dominant language
Rust
Stars
6.2k
Forks
1.3k
Avg merge
2d 19h
Merged PRs (30d)
9

Description

Description

I have a Web Custom Element which embeds an Event Loop.

If I use more than once my Custom Element in a web page, I get an error (RecreationAttempt) due to the fact that only one Event Loop can be created per browser tab.
Can this limitation be retired ?

Tested browsers

Firefox, Chrome

Tested devices

DELL XPS 13

Winit version

0.30

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 by reproducing the issue with multiple Web Custom Elements embedding an Event Loop in Firefox and Chrome, using Winit 0.30. Investigate the browser Event Loop limitation behind RecreationAttempt; done means multiple instances can coexist in one browser tab without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.