Skip to content

✨ Support multiple running instance for inspectors #6772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 30, 2023

Conversation

AlexV525
Copy link
Member

Resolves #6189.

20230531_003339.mp4

Implementation details

  • Browser is a singleton in the previous implementation. The PR updates it to be stored as a mapping between the tab name (the unique device name) and the browser instance.
  • Contents are also cached to ensure they can be added after removing the empty content.

Additional context

FlutterPerformanceView should be able to apply the same update but I didn't investigate it yet.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read the Flutter Style Guide recently, and have followed its advice.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

Copy link
Member

@helin24 helin24 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for this contribution!

Copy link
Member

@helin24 helin24 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for this contribution!

@helin24 helin24 merged commit 61a759b into flutter:master May 30, 2023
@stevemessick
Copy link
Member

This is going into the next release, too. Thanks!

@AlexV525 AlexV525 deleted the feat/multiple-content branch May 30, 2023 23:11
@helin24 helin24 mentioned this pull request Jun 7, 2023
helin24 added a commit that referenced this pull request Jun 8, 2023
We want to add this as an option for users who are experiencing problems
with the embedded DevTools window, e.g.
#6759. I'm not sure if
the JCEF browser will be better for cases that are causing problems in
the JxBrowser implementation, but I figure we want to start gathering
info on how JCEF performs anyway if we want to eventually move away from
JxBrowser and its file downloads.

@AlexV525 I've reorganized the management of multiple browsers and
content, something you introduced in
#6772. I pointed out one
spot where I'm not sure if my change will work as expected; if you have
a chance, please look over/test and let me know.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Embedding DevTools] Support switch between multiple running devices in the Inspector
3 participants