If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Let the ruler remain appeared after reloading

NEW
Unassigned

Status

()

Firefox
Developer Tools: Inspector
P3
enhancement
2 years ago
2 years ago

People

(Reporter: r_kato, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 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

2 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
You need to log in before you can comment on or make changes to this bug.