mirror of
https://github.com/facebook/react.git
synced 2026-02-24 04:33:04 +00:00
Fixes https://github.com/facebook/react/issues/26911, https://github.com/facebook/react/issues/26860. Currently, we are parsing user agent string to determine which browser is running the extension. This doesn't work well with custom user agents, and sometimes when user turns on mobile dev mode in Firefox, we stop resolving that this is a Firefox browser, extension starts to use Chrome API's and fails to inject. Changes: Since we are building different extensions for all supported browsers (Chrome, Firefox, Edge), we predefine env variables for browser resolution, which are populated in a build step.
The Microsoft Edge extension
The source code for this extension has moved to shells/webextension.
Modify the source code there and then rebuild this extension by running node build from this directory or yarn run build:extension:edge from the root directory.
Testing in Microsoft Edge
You can test a local build of the web extension like so:
- Build the extension:
node build - Follow the on-screen instructions.