-
Notifications
You must be signed in to change notification settings - Fork 47k
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
[react-devtools-extensions] "Reload and start profiling" button is missing on non-Chrome browsers #21384
Comments
This is not a bug. The browser APIs required to support this functionality are not available in Firefox. I understand your frustration, but there is not, to my knowledge, any way to work around this issue. |
Hey @bvaughn, I apologize if I came off as frustrated earlier. I have done some more thorough investigation into the app in order to determine the answers to the following:
I did some more digging, and deduced the Reload and Start Profiling functionality is implemented in three parts:
The following line is the one performing the actual reload functionality:
After additional research, I found the following articles in the Firefox documentation, which indicates that the necessary APIs have already been implemented:
It appears that Firefox does contain the appropriate API to execute arbitrary JavaScript on the inspected window to reload the page (the limitation of Firefox is that the Thus, I am under the impression that the required functionality should be supported in Firefox 55+ as well as Edge 79+. If I am missing something, please let me know. |
No. The API/functionality that's not supported by Firefox is synchronous react/packages/react-devtools-extensions/src/injectGlobalHook.js Lines 70 to 87 in 269dd6e
This functionality isn't even always available on Chrome (see And it's something Chrome has considered dropping support for entirely. (I've seen vague references to this online.) I've spoken with @dotproto (Chrome Extensions dev advocate at Google) about this use case though and he agreed that it was an acceptable solution, given the constraints. (Sorry for the ping here, Simeon. Didn't want to represent your stance without giving you a chance to disagree though.) |
React version: v17.0.1
Steps To Reproduce
The current behavior
The button is currently not present on Firefox.
The expected behavior
The button should be present and function as expected on Firefox.
Notes
It is frustrating and un-intuitive that certain browsers lack useful functionality. As it stands, I cannot diagnose lag that appears when starting up a React app on Firefox.
I see that there is code to explicitly disable the button on certain platforms. In order for this issue to be resolved, the required functionality must be reproduced on other platforms.
The text was updated successfully, but these errors were encountered: