react/packages/react-devtools-extensions/chrome
Mengdi Chen f718199313
[DevTools] browser extension: improve script injection logic (#26492)
## Summary

- Drop extension support for Chrome / Edge <v102 since they have less
than 0.1% usage ([see data](https://caniuse.com/usage-table))
- Improve script injection logic when possible so that the scripts
injected by the extension are no longer shown in Network (which caused a
lot of confusion in the past)

## How did you test this change?

Built and tested locally, works as usual on Firefox.

For Chrome/Edge

**Before:**
Scripts shown in Network tab
<img width="1279" alt="Untitled 2"
src="https://user-images.githubusercontent.com/1001890/228074363-1d00d503-d4b5-4339-8dd6-fd0467e36e3e.png">

**After:**
No scripts shown
<img width="1329" alt="image"
src="https://user-images.githubusercontent.com/1001890/228074596-2084722b-bf3c-495e-a852-15f122233155.png">

---------

Co-authored-by: Ruslan Lesiutin <rdlesyutin@gmail.com>
2023-03-28 12:45:53 -04:00
..
README.md Reorganized folders into packages/* 2019-08-13 15:59:43 -07:00
build.js Updated DevTools extension build script to work when run remotely (#16603) 2019-08-28 17:01:26 -07:00
deploy.js Cleaned up some extnesions build script stuff 2019-08-13 22:15:38 -07:00
manifest.json [DevTools] browser extension: improve script injection logic (#26492) 2023-03-28 12:45:53 -04:00
now.json Reorganized folders into packages/* 2019-08-13 15:59:43 -07:00
test.js Updates the DevTools test script to make it easier to test other URLs. (#19179) 2020-06-23 11:48:35 -04:00

README.md

The Chrome 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:chrome from the root directory.

Testing in Chrome

You can test a local build of the web extension like so:

  1. Build the extension: node build
  2. Follow the on-screen instructions.