Open Bug 1247553 Opened 9 years ago Updated 1 year 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

FWIW, I was bitten/frustrated/enraged by this today...

(Nine years in Internet Time feels like forever! «sigh»)

Even adding a keyboard shortcut would be more efficient than having to reach for the mouse and target the ruler icon every time I [Cmd+Shift+R]-eload a page I'm working on... (I propose Ctrl+Shift+R on Windows and Cmd+Opt+R on the Mac; they parallel Cmd+Opt+I for opening the DevTools panel itself.)

Thanks! :-D

You need to log in before you can comment on or make changes to this bug.