{"id":16453406,"url":"https://github.com/blimmer/xstate-webext-settimeout-issue","last_synced_at":"2026-06-06T21:32:15.853Z","repository":{"id":145469777,"uuid":"319409240","full_name":"blimmer/xstate-webext-setTimeout-issue","owner":"blimmer","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-07T18:52:10.000Z","size":13523,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-09T13:57:44.938Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blimmer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-07T18:30:21.000Z","updated_at":"2020-12-07T18:52:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"abad0eba-64a3-4283-82c6-dee94dcd082c","html_url":"https://github.com/blimmer/xstate-webext-setTimeout-issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fxstate-webext-setTimeout-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fxstate-webext-setTimeout-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fxstate-webext-setTimeout-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fxstate-webext-setTimeout-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blimmer","download_url":"https://codeload.github.com/blimmer/xstate-webext-setTimeout-issue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240934407,"owners_count":19880991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T10:15:31.809Z","updated_at":"2025-02-26T20:42:20.234Z","avatar_url":"https://github.com/blimmer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XState WebExt `setTimeout` issue\n\nThis is a simple example reproducing issue https://github.com/davidkpiano/xstate/issues/1703. You can see more detailed information about this\nproblem on the issue page.\n\n## Quick Start\n\nPrerequisite: ensure you have the Firefox browser installed on your machine.\n\n1. Clone this repository.\n1. Install dependencies with `npm ci`.\n1. Run `npm run launch` to start Firefox with the example extension loaded.\n1. Visit [https://xstate.js.org](https://xstate.js.org) in the Firefox window that launched with the previous command.\n\nYou'll see an error message in the console (where you ran `npm run launch`) that looks like:\n\n```console\n[firefox/index.js][debug] Firefox stderr:\nJavaScript error: moz-extension://a8edca36-2b42-ae48-9222-c7045410696c/cs.js, line 5250:\nTypeError: 'setTimeout' called on an object that does not implement interface Window.\n```\n\n![video screenshot](screenshot.gif)\n\n## Workaround\n\nYou can work-around the problem by uncommenting the alternate definition of `lightService` in [src/cs.ts](src/cs.ts).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblimmer%2Fxstate-webext-settimeout-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblimmer%2Fxstate-webext-settimeout-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblimmer%2Fxstate-webext-settimeout-issue/lists"}