Skip to content

Distinguish between modern/legacy targets, conditionally disable hacks#42303

Closed
motiz88 wants to merge 1 commit into
facebook:mainfrom
motiz88:export-D50967795
Closed

Distinguish between modern/legacy targets, conditionally disable hacks#42303
motiz88 wants to merge 1 commit into
facebook:mainfrom
motiz88:export-D50967795

Conversation

@motiz88
Copy link
Copy Markdown
Contributor

@motiz88 motiz88 commented Jan 16, 2024

Summary:
Changelog: [Internal]

Adds a coarse-grained mechanism to inspector-proxy for distinguishing between legacy and modern debug targets. The guiding principles are:

  1. inspector-proxy does not interfere in the CDP message stream between the debugger frontend and a modern target, or in the lifecycle of a target.
  2. Legacy runtimes (current React Native, React Native Desktop, etc) that rely on inspector-proxy's existing invasive semantics must continue to work seamlessly for now. We'll decide on the right time to deprecate/remove this legacy code in the future.

NOTE: This is an experimental addition to the proxy protocol that may be replaced at any time.

Differential Revision: D50967795

@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 Jan 16, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Jan 17, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 16,798,978 +18
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 20,190,285 -13
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 8474e23
Branch: main

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

facebook#42303)

Summary:

Changelog: [Internal]

Adds a coarse-grained mechanism to `inspector-proxy` for distinguishing between legacy and modern debug targets. The guiding principles are:

1. `inspector-proxy` does not interfere in the CDP message stream between the debugger frontend and a modern target, or in the lifecycle of a target.
2. Legacy runtimes (current React Native, React Native Desktop, etc) that rely on `inspector-proxy`'s existing invasive semantics must continue to work seamlessly for now. We'll decide on the right time to deprecate/remove this legacy code in the future.

NOTE: This is an experimental addition to the proxy protocol that may be replaced at any time.

Reviewed By: hoxyq

Differential Revision: D50967795
motiz88 added a commit to motiz88/react-native that referenced this pull request Jan 18, 2024
…sable hacks (facebook#42303)

Summary:

Changelog: [Internal]

Adds a coarse-grained mechanism to `inspector-proxy` for distinguishing between legacy and modern debug targets. The guiding principles are:

1. `inspector-proxy` does not interfere in the CDP message stream between the debugger frontend and a modern target, or in the lifecycle of a target.
2. Legacy runtimes (current React Native, React Native Desktop, etc) that rely on `inspector-proxy`'s existing invasive semantics must continue to work seamlessly for now. We'll decide on the right time to deprecate/remove this legacy code in the future.

NOTE: This is an experimental addition to the proxy protocol that may be replaced at any time.

Reviewed By: hoxyq

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

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

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

This pull request has been merged in 716c728.

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