Skip to content

Dart DevTools with MS Edge instead of Chrome #2226

Closed

Description

@brouwer

Currently Dart DevTools opens in Google Chrome by default (and by design). My default browser is the new Microsoft Edge that is based on Chromium. Dart DevTools work just fine.

Is it an idea to change this into a setting so we can choose what browser should launch?

See also:
#1681
#1760

Activity

  1. DanTup commented on Jan 21, 2020

    @DanTup
    Member

    This is handled by the DevTools package itself (we just ask it to launch in a browser), so this would need requesting/implementing in the DevTools repo.

    That said, there are other Chromium-based browsers that DevTools doesn't not work in (for example Brave, because its ad-blocking/anti-fingerprinting interferes with the canvas rendering - see flutter/devtools#367 (comment)) so I don't know whether it's as simple as just launching in Edge.

  2. AlexDotel commented on Sep 2, 2020

    @AlexDotel

    Some solution?

  3. DanTup commented on Sep 2, 2020

    @DanTup
    Member

    @AlexDotel the comment above is still accurate. Though if you don't have Chrome installed, it should automatically fall back to your default browser.

    FWIW, in the next version DevTool will be embedded (see https://dartcode.org/releases/v3-13/#embedded-devtools-improvements) by default.

    @jacob314 does DevTools officially support Edge? If so, we could add Edge support to https://github.com/dart-lang/browser_launcher and pass a browser preference to launchDevTools?

  4. jacob314 commented on Sep 2, 2020

    @jacob314

    Now that we are supporting Flutter web our browser compatibility story is a lot better than when we were using raw HTML. FireFox and Safari should also work fine although there may be a noticeable performance hit.

  5. DanTup commented on Sep 7, 2020

    @DanTup
    Member

    @jacob314 IIRC - the reason we pushed launching the browser to DevTools was so that it could locate Chrome more easily (there was already Dart code to do it). If we're going to support launching in the users default browser, it might make sense for the editor to just launch it directly rather than extending DevTools to handle this - it's what we already do if DevTools reports an error launching Chrome (or you're running in a cloud IDE), so we could just skip that attempt.

    WDYT - shall I add a setting in Dart-Code to select between Chrome (which goes through the DevTools service) and Default Browser (which we just launch) in Dart-Code?

  6. added this to the v3.15.0 milestone on Sep 7, 2020
  7. added
    in commandsRelates to commands (usually invoked from the command Palette)
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    and removed on Sep 7, 2020
  8. DanTup commented on Sep 22, 2020

    @DanTup
    Member

    I did the latter - there's now an option dart.devToolsBrowser that accepts chrome or default (defaults to chrome). If you set it to default, it will just open in your system default browser. The default will remain as launching in Chrome (via DevTools service extension) for the reasons mentioned above.

  9. jacob314 commented on Sep 22, 2020

    @jacob314

    Sorry I missed this. Having an option to use the default browser now that we support more browsers sounds good.

  10. Nalin-Angrish commented on Feb 4, 2022

    @Nalin-Angrish

    I did the latter - there's now an option dart.devToolsBrowser that accepts chrome or default (defaults to chrome). If you set it to default, it will just open in your system default browser. The default will remain as launching in Chrome (via DevTools service extension) for the reasons mentioned above.

    A Dart noob here, how/where do I set that option?


    Edit: I didn't look which repo this comment is in lol, but now I think its in my vscode's settings right?

  11. DanTup commented on Feb 4, 2022

    @DanTup
    Member

    Yep, it's in your VS Code settings. Press F1, find Preferences: Open Settings (UI) then search for devtoolsbrowser.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    in commandsRelates to commands (usually invoked from the command Palette)is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions