Skip to content
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

Support Firefox as a browser in flutter run #55324

Open
jonahwilliams opened this issue Apr 21, 2020 · 20 comments
Open

Support Firefox as a browser in flutter run #55324

jonahwilliams opened this issue Apr 21, 2020 · 20 comments
Labels
c: new feature Nothing broken; request for a new capability P3 Issues that are less important to the Flutter project platform-web Web applications specifically team-web Owned by Web platform team tool Affects the "flutter" command-line tool. See also t: labels. triaged-web Triaged by Web platform team

Comments

@jonahwilliams
Copy link
Member

The Firefox remote protocol claims to support a subset of the chrome devtools protocol: https://firefox-source-docs.mozilla.org/remote/index.html . If this subset is sufficient, we might be able to connect with out existing chrome devtools logic and have it mostly work. This would allow 1st class support for flutter run -d firefox

@jonahwilliams jonahwilliams added c: new feature Nothing broken; request for a new capability tool Affects the "flutter" command-line tool. See also t: labels. platform-web Web applications specifically labels Apr 21, 2020
@jonahwilliams jonahwilliams added this to the Future milestone Apr 21, 2020
@jonahwilliams jonahwilliams added this to Awaiting triage in Tools - web review via automation Apr 21, 2020
@jonahwilliams jonahwilliams moved this from Awaiting triage to Engineer reviewed in Tools - web review Apr 21, 2020
@jonahwilliams
Copy link
Member Author

More info: this is only available on the nightly download and doesn't seem to be supported on windows.

@kf6gpe kf6gpe added the P6 label May 29, 2020
@kf6gpe kf6gpe removed this from the Future milestone Jun 1, 2020
@jonahwilliams
Copy link
Member Author

@Zenb0t
Copy link

Zenb0t commented Oct 18, 2021

Any updates on this? Would be nice to test in a different browser...

@NicTanghe
Copy link

Flutter is ran by google highly doubt it will happen.

@jonahwilliams
Copy link
Member Author

All the updates are provided above. in summary, it does not seem like it is possible to connect to the devtools of a Firefox browser unless you are using a nightly build, and even then only on certain platforms. Connecting to the browser devtools is a requirement for making Flutter devtools fully work.

We could build the Flutter tool to open firefox with the newly compiled app and support basic hot restart without any additional debugging functionality. This would mean that if you launched firefox from your IDE, you would be unable to do things like set breakpoints. Functionally, it would not be much different than flutter run -d web-server and opening up that page in Firefox, so we haven't spent any time on it. I'd also be worried it would be confusing to folks that are used to how Chrome is supported today.

@NicTanghe I resent the accusation that we are intentionally withholding functionality due to some vague implied conspiracy. Many aspects of Flutter are a labor of love and that includes Flutter Web. We have chosen to focus on performance and compatibility for the Web instead of investing significantly more time in expanding the debugging experience. I realize that not everyone will be satisfied with that - but the cost of working on a popular project is that there are many more requested features than we have time to work on.

If anyone wants to spend their time working on this, you would certainly get no objections from me - and I'd be happy to help review patches and provide guidance. I just can't help when it comes to actually connecting to firefox, since that is the whole reason this isn't done.

@caniko
Copy link

caniko commented Aug 15, 2022

This seems more like a firefox issue than a flutter issue.

@NicTanghe
Copy link

NicTanghe commented Sep 10, 2022

I’m not saying you are withholding functionality.
I’m saying most of the work is being done by people that work at Google, and it would be contra productive to spend time on creating said functionality for said people.

"C:\Program Files\Mozilla Firefox\firefox.exe" -start-debugger-server

/Applications/Firefox.app/Contents/MacOS/firefox -start-debugger-server

firefox -start-debugger-server

Might fix a hurdle.
firefox_nfMA3LzEnI

@pixiekat
Copy link

pixiekat commented Jan 9, 2023

Yes, please. Firefox is my main browser and I hate having to have an instance of Chrome open just for one thing without all of my settings.

@olfek
Copy link

olfek commented Jan 23, 2023

Just ran flutter doctor on the latest version of Flutter

...

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.22621.1105], locale en-GB)
...
[✗] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
...
[✓] VS Code (version 1.74.3)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

! Doctor found issues in 4 categories.

😢😢😢💔💔💔

Chrome - develop for the web

We need Firefox support

@Himura2la
Copy link

Himura2la commented Feb 18, 2023

The Firefox discrimination is outrageous! I don't have Chrome because I purposefully avoid using Chromium-based browsers. And everyone should! Please, support Firefox in flutter doctor, this is essential!

@MeyerOppelt
Copy link

@Himura2la They also removed web server support. If you research a bit back, you used to be able to run flutter run -d web-server but you can't anymore for some reason.

@vladislav1nikov
Copy link

I think it will be good to add not only Firefox but also Safari. Chrome, Firefox and Safari are the most popular browsers and all use different engines. I think they are all important

@Ridhubharan
Copy link

Any updates?

@flutter-triage-bot flutter-triage-bot bot added P3 Issues that are less important to the Flutter project and removed P6 labels Jun 28, 2023
@flutter-triage-bot flutter-triage-bot bot added multiteam-retriage-candidate team-web Owned by Web platform team triaged-web Triaged by Web platform team labels Jul 8, 2023
@SakshamKarnawat
Copy link

Nearing 2024 but no support for Firefox is concerning. I love Flutter but please don't make me install Chrome 😟

@i0x404
Copy link

i0x404 commented Oct 14, 2023

We still need this

@KatPurpy

This comment was marked as spam.

@pixiekat
Copy link

pixiekat commented Nov 4, 2023

Either support Firefox or change Chrome - develop for the web to Chrome - develop for Chrome.

@juxuanu
Copy link

juxuanu commented Dec 12, 2023

https://hacks.mozilla.org/2023/12/puppeteer-webdriver-bidi/

Could Flutter use webdriverbidi instead of the proprietary Chrome protocol, so that it could be used with any browser implementing this protocol?

@Thribs

This comment was marked as spam.

@Ken-Andre
Copy link

4 years around now, and didn't do that. So not her priority. When we all think that only Apple being so restricted environment for devs; Now think that Google and all his open-sourced products web oriented, joined him(Apple).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: new feature Nothing broken; request for a new capability P3 Issues that are less important to the Flutter project platform-web Web applications specifically team-web Owned by Web platform team tool Affects the "flutter" command-line tool. See also t: labels. triaged-web Triaged by Web platform team
Projects
Tools - web review
  
Engineer reviewed
Development

No branches or pull requests