Prevent previews from flashing effect when stepping
Categories
(DevTools :: Debugger, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: davidwalsh, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [debugger-reserve])
Attachments
(1 file, 1 obsolete file)
4.59 MB,
image/gif
|
Details |
When paused and then stepping, the inline preview blocks "flash" quickly (hide and show), despite the values not having changed.
We should persist these elements during stepping and not show/hide them as we're paused.
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Beyond the flashing, it is also visible that lines slightly shift. Not sure if this should be tackled here or an extra bug.
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Related to bug 1555840, so fixes this might consider both bugs.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Keep track of the previous inline previews and use them as fallback. This prevents the previews from being removed and re-added when stepping, but it introduced another problem: we can't really tell when the previous previews should be used or not. This is because we don't know when resuming if the debugger is going to pause again. In light of this, I don't think we can avoid some timeout logic (e.g. display the previous previews for 600ms after the current previews are missing).
To sum it up:
- This reduces the flickering which is also a performance improvement
- Has a bug where the previews are displayed after the debugger is resumed
- The
browser_dbg-inline-preview
mochitest is failing
I'm looking forward to feedback for how to address point number two. Will fix the failing test after an agreement is reached and implemented.
This also partially addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1578219.
Updated•4 years ago
|
Comment 4•4 years ago
|
||
Also a dupe here https://github.com/firefox-devtools/debugger/issues/8291
Updated•2 years ago
|
Description
•