Let the ruler remain appeared after reloading

NEW
Unassigned

Status

P3
enhancement
3 years ago
7 months ago

People

(Reporter: r_kato, Unassigned)

Tracking

Trunk

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
Developer Tool's ruler disappears after we reload a page. If the ruler remained appeared, it would be more useful! ( at least I would be happy ;) )

Updated

3 years ago
Status: UNCONFIRMED → NEW
Component: Developer Tools → Developer Tools: Inspector
Ever confirmed: true
Matteo, can you explain what one would have to do to change this behavior?
Flags: needinfo?(zer0)
We made the tool disappeared due the bfcache, that caused issues. Not only the rulers actually, but a others highlighters too. If I recall correctly, it was a problem with the anonymous content, and the fact that we couldn't map the anonymous content to the correct instance of the highlighter object.

So, when we navigate, we destroy the highlighter to avoid such thing. The reload is still navigate to the same document, so that's why disappears.

We could bound the highlighter to the window instead of the document; so basically if we have such highlighter enabled before on that window, when we load a new document, we recreate such highlighter again; basically using a similar approach we have to "toggle" the command's icon of the rulers, when we change page.
Flags: needinfo?(zer0)
Filter on CLIMBING SHOES
Priority: -- → P3

Updated

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