GithubHelp home page GithubHelp logo

Support Firefox about react-devtools HOT 38 CLOSED

facebook avatar facebook commented on April 25, 2024
Support Firefox

from react-devtools.

Comments (38)

ashneo76 avatar ashneo76 commented on April 25, 2024 5

+1 Firefox support is necessary. No more of this "webkit monopoly"

from react-devtools.

VinSpee avatar VinSpee commented on April 25, 2024 1

As a daily Firefox Developer Edition, I'd love to see this

LET FIREFOX IN PLZ

from react-devtools.

zpao avatar zpao commented on April 25, 2024

I'm surprised we didn't have an issue open for this already. We would definitely like to have this but haven't found the time.

from react-devtools.

g13n avatar g13n commented on April 25, 2024

I was thinking this issue is related, or it isn't?

from react-devtools.

flying-sheep avatar flying-sheep commented on April 25, 2024

me at first too, but read what @zpao said in that bug:

This bug as filed was fixed a while ago and really had nothing to do with React devtools.

that bug was about sourcemaps. we’re talking about a react-devtools addon being available for firefox here

from react-devtools.

vipulnsward avatar vipulnsward commented on April 25, 2024

I know a πŸ‘ doesn't help, but πŸ‘ for this πŸ˜ƒ !

from react-devtools.

caseyyee avatar caseyyee commented on April 25, 2024

Just adding another vote here for Firefox :)

from react-devtools.

johnmaguire avatar johnmaguire commented on April 25, 2024

πŸ‘ I understand Chrome first, and most devs in my office are using Chrome, but there's quite a few of us who still use Firefox, especially since the Dev Edition came out!

from react-devtools.

tushartyagi avatar tushartyagi commented on April 25, 2024

I, too, would love to see the devtools on firefox. I've been using firefox over chrome for quite some time now.

from react-devtools.

iamdustan avatar iamdustan commented on April 25, 2024

Is there any pointers to where any forking would need to take place in the codebase or resources for what it would take to start working in this direction?

from react-devtools.

jlongster avatar jlongster commented on April 25, 2024

I work on the Firefox devtools team. We don't have great docs for extending the devtools, partially because we hope to improve a few things first. Still, it's not too hard. The hard part is pulling out all Chrome-specific code in the tool.

Ember Inspector did a great job with this. They have an "app" folder here: https://github.com/emberjs/ember-inspector/tree/master/app and it doesn't contain any browser-specific code (it might do browser checks for some things, I don't know). Then they have a folder for the specific browser; here's firefox: https://github.com/emberjs/ember-inspector/tree/master/dist_firefox/lib

That folder contains all the firefox-specific code to install the tool and other things.

Looking through this cool, it looks like it uses Chrome-specific APIs a lot throughout the entire code, which is unfortunate. I don't know how much work it would be to abstract it out.

from react-devtools.

ashneo76 avatar ashneo76 commented on April 25, 2024

Can we start a port of these tools for firefox? Is it feasible and viable
to do so?

On Mon, Mar 30, 2015 at 9:59 AM, James Long [email protected]
wrote:

I work on the Firefox devtools team. We don't have great docs for
extending the devtools, partially because we hope to improve a few things
first. Still, it's not too hard. The hard part is pulling out all
Chrome-specific code in the tool.

Ember Inspector did a great job with this. They have an "app" folder here:
https://github.com/emberjs/ember-inspector/tree/master/app and it doesn't
contain any browser-specific code (it might do browser checks for some
things, I don't know). Then they have a folder for the specific browser;
here's firefox:
https://github.com/emberjs/ember-inspector/tree/master/dist_firefox/lib

That folder contains all the firefox-specific code to install the tool and
other things.

Looking through this cool, it looks like it uses Chrome-specific APIs a
lot throughout the entire code, which is unfortunate. I don't know how much
work it would be to abstract it out.

β€”
Reply to this email directly or view it on GitHub
#56 (comment)
.

from react-devtools.

MikeRatcliffe avatar MikeRatcliffe commented on April 25, 2024

Facebook already has React Developer Tools, an excellent Chrome extension that could easily be ported to Firefox:
React Developer Tools

I was thinking that if we detect react on a page that we show a React tab after the markup tab... as to whether this should be baked in with our current toolkit or not, that is another question... that is my preference but @canuckistani would have the final say.

from react-devtools.

jeffgca avatar jeffgca commented on April 25, 2024

@ashneo76 it should be possible to do, other tools have been ported including ember inspector and batarang.

@MikeRatcliffe generally speaking my preference is to not ship framework-related tools in Firefox but instead support them as extensions. If react gets as popular as jquery is it would be more compelling.

from react-devtools.

zpao avatar zpao commented on April 25, 2024

It should be possible. Nobody has had the time to do it. I started looking into it a long time ago but got a bit busy. I really only got as far as writing a few lines of XUL to get the UI started.

The code we have here should be pretty generalizable. I haven't spent much time with it but it's really just extracting info via React on the page and displaying it. I'm sure it's pretty coupled right now so the big initial task might be to decouple it and ship another Chrome version before working on the Firefox one.

I'm with @canuckistani here - I don't think it's a great idea to bake these into Firefox directly. Let's get them written before we even entertain that idea :) @MikeRatcliffe you're in the repo for that :P

from react-devtools.

ashneo76 avatar ashneo76 commented on April 25, 2024

so the initial task would be to decouple this and then have different browser specific changes in the same source?

And then the next step would be to actually implement for firefox, right?

from react-devtools.

iamdustan avatar iamdustan commented on April 25, 2024

@ashneo76 I suspect so.

  • Move Chrome specific implementation out of files into a dist_chrome folder
  • Implement dist_firefox bindings
  • Get MS on board for Project Spartan dev extensions.

from react-devtools.

CADBOT avatar CADBOT commented on April 25, 2024

Is there still progress being made on this, or is it on the backburner for now?

from react-devtools.

johnmaguire avatar johnmaguire commented on April 25, 2024

@CADBOT I don't think much progress was made on this at all. However, we know what needs to be achieved to get this done. You're free to begin work on it and/or submit a pull request. If I find some time, I might try to do this.

from react-devtools.

sophiebits avatar sophiebits commented on April 25, 2024

cc @jaredly who is considering looking into this.

from react-devtools.

nt1m avatar nt1m commented on April 25, 2024

These should help :
https://github.com/victorporof/Restartless-Template
https://github.com/firebug/devtools-extension-examples

from react-devtools.

jaredly avatar jaredly commented on April 25, 2024

@nt1m awesome thanks!

from react-devtools.

toastal avatar toastal commented on April 25, 2024

+1. I like my Firefox Dev Tools.

from react-devtools.

fjaguero avatar fjaguero commented on April 25, 2024

Another +1 here, looking forward to use it on Firefox.

from react-devtools.

iamdustan avatar iamdustan commented on April 25, 2024

This will be supported in devtools-next. https://github.com/facebook/react-devtools/tree/devtools-next

Keep in mind it is a WIP, but you can play with it today. https://github.com/facebook/react-devtools/tree/devtools-next/shells/firefox

from react-devtools.

sophiebits avatar sophiebits commented on April 25, 2024

Fixed in the new devtools: http://facebook.github.io/react/blog/2015/08/03/new-react-devtools-beta.html.

from react-devtools.

jeffgca avatar jeffgca commented on April 25, 2024

from react-devtools.

nt1m avatar nt1m commented on April 25, 2024

Tried it out, my experience is great so far. Thanks !
There are a few quirks though :

Details :

from react-devtools.

jaredly avatar jaredly commented on April 25, 2024

@nt1m do either the actor or the frame script give you direct/unfettered access to the javascript runtime, objects, etc?

from react-devtools.

nt1m avatar nt1m commented on April 25, 2024

@jaredly Both of them provide a unlimited access to the JS runtime, with privileged permissions too. The frame script is pretty straightforward to work with, just put your code in it, and you can use content.document.defaultView to get DOM Window. The actor stuff requires more work (setting up the connection and stuff), and is less convenient, but it also provides you straightforward access to the DOM window : https://github.com/firebug/devtools-extension-examples/blob/master/TitleManager/lib/titleActor.js#L93
Once you have access to the DOM Window, you should get easy access to the globals and other objects stored there.
Frame scripts shouldn't get in your way with sharing cross-browser code, but it's more complicated with actors, although, you get the trade-off to support the Remote Debugging Protocol (which means you can support Firefox OS or Firefox for android)

from react-devtools.

jesper-bylund avatar jesper-bylund commented on April 25, 2024

This is great, but no longer works with Firefox due to version difference.

from react-devtools.

sophiebits avatar sophiebits commented on April 25, 2024

@raelmiu Can you elaborate?

from react-devtools.

MinThaMie avatar MinThaMie commented on April 25, 2024

I'm using the new beta devtools in Firefox 40.0.3 and I'm running a project that worked perfectly in Chrome but it says No react found on page... . Do I have to do more then just install the plugin?

from react-devtools.

fjaguero avatar fjaguero commented on April 25, 2024

Are you using Firefox Developer Edition? Works for me in Firefox 42.0a2.

from react-devtools.

MinThaMie avatar MinThaMie commented on April 25, 2024

@fjaguero I did not know I had to use the Firefox Developer Edition and thought I could just use it in my normal browser.

from react-devtools.

jaredly avatar jaredly commented on April 25, 2024

@MinThaMie I've been testing it with the normal firefox.
Can you verify that it works on https://facebook.github.io/react?

from react-devtools.

MinThaMie avatar MinThaMie commented on April 25, 2024

Yes that works. So what could be the problem?

from react-devtools.

sophiebits avatar sophiebits commented on April 25, 2024

@MinThaMie Can you file an issue with a link to the page that doesn't work in Firefox?

from react-devtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.