Skip to content

Commit

Permalink
Revert debugger launch behaviour to default profile (facebook#44638)
Browse files Browse the repository at this point in the history
Summary:

Reverts the debugger launch flow to use the default `ChromeLauncher` profile. This is the approach used in the current `--experimental-debugger` experiment and by Expo.

This is motivated after a review of the tradeoffs of a guest profile — which allow us to programatically quit the browser process, however takes over system URL handling.

Changelog: [Internal]

Differential Revision: D57619542
  • Loading branch information
huntie authored and facebook-github-bot committed May 24, 2024
1 parent b2ced62 commit ae31644
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/dev-middleware/src/utils/DefaultBrowserLauncher.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const DefaultBrowserLauncher: BrowserLauncher = {
`react-native-debugger-frontend-${browserType}`,
);
const launchedChrome = await ChromeLauncher.launch({
ignoreDefaultFlags: true,
chromeFlags: [
...ChromeLauncher.Launcher.defaultFlags().filter(
/**
Expand All @@ -64,10 +65,8 @@ const DefaultBrowserLauncher: BrowserLauncher = {
`--app=${url}`,
`--user-data-dir=${userDataDir}`,
'--window-size=1200,600',
'--guest',
],
chromePath,
ignoreDefaultFlags: true,
});

return {
Expand Down

0 comments on commit ae31644

Please sign in to comment.