Open Bug 1573562 Opened 5 years ago Updated 2 years ago

Prevent previews from flashing effect when stepping

Categories

(DevTools :: Debugger, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: davidwalsh, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [debugger-reserve])

Attachments

(1 file, 1 obsolete file)

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.

Beyond the flashing, it is also visible that lines slightly shift. Not sure if this should be tackled here or an extra bug.

Related to bug 1555840, so fixes this might consider both bugs.

Summary: Inline Preview: Prevent flashing effect when stepping → Prevent previews from flashing effect when stepping
Whiteboard: [debugger-mvp]
Whiteboard: [debugger-mvp] → [debugger-reserve]

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.

Attachment #9106038 - Attachment is obsolete: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: