Open Bug 1247553 Opened 8 years ago Updated 2 years ago

Let the ruler remain appeared after reloading

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: r_kato, Unassigned)

Details

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 ;) )
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
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.