inspector focus does not stay on ::after pseudo-element after reload

NEW
Unassigned

Status

P3
normal
4 years ago
3 months ago

People

(Reporter: tromey, Unassigned)

Tracking

Trunk

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [btpp-backlog])

(Reporter)

Description

4 years ago
Normally if I click on an element in the inspector and reload the page,
the inspector seems to try to keep that element focused.

However, if I click on a ::after pseudo-element, then reloading causes
the inspector to refocus on the pseudo-element's parent element.

One simple way to see this is to open the test case in bug 1142194.
Then select the ::after pseudo-element and reload.
The selection is kept by keeping a reference to the unique css selector of the selection. The css selector does not include the "::before" or "::after" information. The way we retrieve the node after the navigation is by using querySelector (which can't find pseudo elements). 

Both of these need to be modified in order to keep the pseudo element selection.

Inspector bugs triage. Filter on CLIMBING SHOES.
OS: Linux → All
Priority: -- → P3
Hardware: x86_64 → All
Whiteboard: [btpp-backlog]

Updated

3 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.