Open Bug 1213833 Opened 9 years ago Updated 9 months ago

Pseudoelement's parent node doesn't get focus in markup-view when focused pseudoelement is deleted

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(firefox44 affected)

Tracking Status
firefox44 --- affected

People

(Reporter: arni2033, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [polish-backlog][difficulty=easy])

Attachments

(1 file)

STR:   (Win7_64, Nightly 44, 32bit, ID 20151011030229, new profile)
1. Open this "data:" url or click URL in the form above
>   data:text/html,<style>html:hover body::after{ content: "pseudoelement"; }
2. Open devtools -> Inspector, focus <body> element (click on it).
3. Move mouse over the center of content to make <html> hovered.   [::after pseudoelement will appear]
4. Press "Right" key to expand the list of <body>'s child nodes in markup-view.
5. Move mouse to the center of devtools pane to make <html> lose ":hover" state

Result:       ::after pseudoelement is deleted from markup-view [OK]
              and no elements become focused in markup-view     [not OK]

Expectations: Parent element of deleted node should become focused in markup-view, because it happens
           when normal element (which is focused in markup-view) is being deleted (by JS, for example)
Depends on: 1034110
See Also: 1034110
Good catch, thanks for the report
Depends on: 1208544
Whiteboard: [polish-backlog]
Oh, I completely missed one step between 4 and 5... Step 4 should be:
> 4. Press "Right" key to expand the list of <body>'s child nodes in markup-view,
>    then "Down" key to focus ::after pseudoelement in markup-view

I'm also uploading a better testcase & STR:
1. Open "testcase 1.1"
2. Click the content   [::after pseudoelement will appear]
3. Open devtools > Inspector, expand the list of <body>'s child nodes, click "::after" node to focus it
4. Click the content   [that'll remove ::after element]

Result:   ::after pseudoelement is deleted from markup-view [OK]
          and no elements become focused in markup-view     [not OK]

I also noticed that pseudoelement isn't deleted from breadcrumbs - _maybe_ it requires another report
(In reply to arni2033 from comment #2)
> I also noticed that pseudoelement isn't deleted from breadcrumbs - _maybe_
> it requires another report
Yes, this will be easier to work on as a separate bug. Thanks!

Brian: I'm going to flag this as "easy", feel free to adjust if needed.
Whiteboard: [polish-backlog] → [polish-backlog][difficulty=easy]
Has STR: --- → yes
Bug triage (filter on CLIMBING SHOES).
Priority: -- → P3
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: