NEW237397
Web Inspector: (Regression: r270134) [Timelines] CPU timeline details view is empty (and remains empty) if it was visible during an automatic recording on page load
https://bugs.webkit.org/show_bug.cgi?id=237397
Summary Web Inspector: (Regression: r270134) [Timelines] CPU timeline details view is...
Patrick Angle
Reported 2022-03-02 16:18:24 PST
Attachments
Patch v1.0 (5.07 KB, patch)
2022-03-02 16:32 PST, Patrick Angle
pangle: review?
ews-feeder: commit-queue-
Patrick Angle
Comment 1 2022-03-02 16:32:02 PST
Created attachment 453675 [details] Patch v1.0
Devin Rousso
Comment 2 2022-03-02 17:01:17 PST
Comment on attachment 453675 [details] Patch v1.0 View in context: https://bugs.webkit.org/attachment.cgi?id=453675&action=review > Source/WebInspectorUI/ChangeLog:19 > + This wasn't the case for the first recording's `CPUTimelineView because it is already attached when it performs If this is not a problem for `initialLayout`, then how does the `TimelineRuler` have bad values after that if the user hasn't navigated away from the `CPUTimelineView`? This makes it sound like reloading the page somehow `detach` and then re-`attach` the `CPUTimelineView`. I would hope that we're not doing that for a simple page reload. > Source/WebInspectorUI/UserInterface/Views/View.js:37 > + this._dirtyFromResize = false; Rather than adding another property, maybe we make `_layoutReason` into a `Set` (or bitmap if we're concerned about memory) so that if more `WI.View.LayoutReason` are added (or custom ones like `WI.CPUTimelineView.LayoutReason.Internal` are used more frequently) then we don't have to add even more properties. I think there's only a dozen or so uses of `this.layoutReason === ...` anyways, so changing those to `this.layoutReasons.has(...)` (or `this.layoutReasons & ...`) would probably be pretty simple. Though we'd also probably wanna allow anything that previously only accepted a `layoutReason` to now accept a `layoutReasons` (i.e. `Set`) too.
Note You need to log in before you can comment on or make changes to this bug.