DevTools: Widgets can be marked as removable
Addresses a bug where CodeMirror's update view process, which deletes non-visible nodes, causes Widget.js to throw many errors and crash the source code frame because Widgets have been inserted into CodeMirror lines, but cannot be removed by regular DOM operations. This occurs when scrolling with an edit breakpoint dialog open. This solution introduces a function to mark a widget as externally managed, which excludes it from its ancestor's __widgetCounter. Before and after gifs: https://imgur.com/a/CIFNO8Y Bug: 984762 Change-Id: Id569d201569461c863e53fe07b22f81683b4862e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1705174Reviewed-by:Yang Guo <yangguo@chromium.org> Commit-Queue: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#698838}
Showing
Please register or sign in to comment