-
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 Developer Tools triggers console error in Firefox for protected URLs #20144
Comments
Related to PR #20023 I'm not aware of a reliable way to detect special/protected URLs like "about:neterror" in Firefox and prevent React DevTools from treating it like any other page. If you know of a way, please shoot us a PR! |
Hi, author of the above PR here.
When we try to access tab.active in firefox, if it is a protected page, firefox will throw an errorIf that is the case, I don't think we can really do anything at all. If we try to access the tab.url or some other property on the tab object to see if its a protected page, before that check only firefox will throw the same error
Maybe wrapping the code in a try catch could work ? But I doubt it In chrome and edge however this issue doesn't happen. Infact it is possible to read the |
Apparently, I only get this error when I go to |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you! |
Steps To Reproduce
The current behavior
Firefox shows this error in the console: "The extension "React Developer Tools" is not allowed to access about:neterror?e=connectionFailure"
The expected behavior
Firefox shows no error in the console
The text was updated successfully, but these errors were encountered: