react / react/react

[DevTools Bug]: inspecting pseudo-elements in Firefox gives error `Permission denied to access property "__reactFiber$sofadm08s2"`

Open
#30,772 2 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: Developer Tools Status: Unconfirmed Type: Bug
Dominant language
JavaScript
Stars
251k
Forks
51.4k
Avg merge
2d 4h
Merged PRs (30d)
53

Description

Website or app

https://wk82tp.csb.app/

Repro steps
  1. Go to the Sandbox link in Firefox (129.0.2), with React DevTools (5.3.1)
  2. Open the inspector.
  3. Select the ::after pseudo-element next to the <h1>.
More Info

I add a screenshot of the issue.
Screenshot 2024-08-21 at 09 06 24

This is happening from a while. Of course, is not a big issue, because if I close the error on the main screen, I can keep working. And until now I wasn't using much of pseudo-elements.

But now, I'm working on a new feature in our app, where I'm relying hardly on ::after en ::before pseudo elements. And it is quite annoying.

This is happening since DevTools 4.28.4. Until v4.27.8 I didn't had problems. On this version (4.27.8) the error is shown only when opening the tab "(React) Components" in the inspector... which kind of make sense, right?.

What doesn't make sense (to me) is that I got this error when inspecting the pseudo-element in the basic firefox inspector (trying to apply css properties on it).

How often does this bug happen?

Every time

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked sandbox in Firefox 129.0.2 and reproduce the error while inspecting the h1 ::after pseudo-element. Compare the behavior with React DevTools 4.27.8 and 4.28.4; done means inspecting pseudo-elements no longer produces the permission-denied error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.