Skip to content

Drop appId from /open-debugger calls, disable matching for modern targets#47120

Closed
huntie wants to merge 1 commit into
facebook:mainfrom
huntie:export-D64597581
Closed

Drop appId from /open-debugger calls, disable matching for modern targets#47120
huntie wants to merge 1 commit into
facebook:mainfrom
huntie:export-D64597581

Conversation

@huntie
Copy link
Copy Markdown
Member

@huntie huntie commented Oct 18, 2024

Summary:
Fixes no-op behaviour of the "Open DevTools" Dev Menu item (bug on main introduced with D63329456).

This was caused by a change to the description field contents in our CDP /json/list response, when under Fusebox. In the /open-debugger call from the Dev Menu, we were still using the older appId param.

This did not affect j to debug, which uses the target param.

{F1937186832}

Changes:

In short: Matching against the description string is now fully eliminated for modern debugger targets.

  • Update native Dev Menu implementation to omit appId parameter (device param alone is sufficient and fully precise on these platforms).
  • Update /open-debugger implementation to ignore the appId parameter for modern targets, and document this in the dev-middleware README.

Changelog: [Internal]

Differential Revision: D64597581

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Oct 18, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D64597581

…gets (facebook#47120)

Summary:

Fixes no-op behaviour of the "Open DevTools" Dev Menu item (bug on `main` introduced with D63329456).

This was caused by a change to the `description` field contents in our CDP `/json/list` response, when under Fusebox. In the `/open-debugger` call from the Dev Menu, we were still using the older `appId` param.

This did not affect `j` to debug, which uses the `target` param.

{F1937186832}

Changes:

In short: Matching against the `description` string is now fully eliminated for modern debugger targets.

- Update native Dev Menu implementation to omit `appId` parameter (`device` param alone is sufficient and fully precise on these platforms).
- Update `/open-debugger` implementation to ignore the `appId` parameter for modern targets, and document this in the `dev-middleware` README.

Changelog: [Internal]

Reviewed By: robhogan

Differential Revision: D64597581
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D64597581

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Oct 18, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 6f42123.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @huntie in 6f42123

When will my fix make it into a release? | How to file a pick request?

@huntie huntie deleted the export-D64597581 branch January 30, 2025 09:43
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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants