Skip to content

Remove legacy page support from inspector proxy - #60292

Open
huntie wants to merge 1 commit into
mainfrom
pr60292
Open

huntie wants to merge 1 commit into
mainfrom
pr60292

Conversation

@huntie

@huntie huntie commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Context

Removing inspector proxy support for targets from React Native versions before 0.87.

This diff

Remove proxy support for legacy pages, which lack nativePageReloads. Every in-tree target registers with nativePageReloads since 0.87, which removed the last legacy pages (the Hermes ConnectionDemux).

  • Remove the synthetic "React Native Experimental (Improved Chrome Reloads)" page, including its redirection to the latest React Native page and the reload emulation.
  • Remove the nonstandard {method: 'reload'} message to debuggers. A disconnect from the device always closes the session with [PAGE_REMOVED].
  • Remove the deprecated vm field from /json.
  • Keep the nativePageReloads capability in /json: /open-debugger and Expo CLI use it to filter targets.

Changelog:
[General][Removed] - Dev server: Remove inspector proxy support for legacy debugger targets, plus the "React Native Experimental (Improved Chrome Reloads)" target

Test Plan

yarn jest packages/dev-middleware

✅ All tests pass, except Debugger.getScriptSource › fetches source from server over HTTPS, which fails identically on main.

End-to-end smoke test: RNTester on an iPhone Duo simulator, with Metro run from this stack. DevTools opened with /open-debugger, a second DevTools window on the Console panel, and a third CDP session from a script that logs to the console and calls Page.reload.

iPhone Duo simulator: RNTester React Native DevTools: Console after reload

✅ /json lists one page, with no synthetic "React Native Experimental (Improved Chrome Reloads)" page and no vm field.

✅ All three debugger sessions stay connected across Page.reload, and the Console shows the log the scripted session sent after the reload.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 25, 2026
@huntie
huntie added this pull request to stack #60293 November 25, 2026 16:26
@robhogan

Copy link
Copy Markdown
Collaborator

[General][Breaking]

Aren't we in a non-breaking window atm?

@huntie

huntie commented Nov 26, 2026 •

Copy link
Copy Markdown
Member Author

@robhogan Good spot. I think since targets without the nativePageReloads capability has long not been a thing, this is actually [Internal]. I'll confirm and update.

@vzaidman Can we import and confirm this one in fb-metro?

@huntie
huntie force-pushed the pr60292 branch 2 times, most recently from 167ad0b to e3f47f4 Compare November 26, 2026 12:39
Base automatically changed from pr60291 to main November 26, 2026 13:51
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Nov 26, 2026

@robhogan robhogan left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much tidier!

this is actually [Internal]

nit: Maybe [General][Removed], which is considered non-breaking in RN iiuc. It's user-observable because it removes an endpoint, just not one we need.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants