WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
196667
REGRESSION(
r237196
): Web Inspector: Computed panel shouldn't update when it isn't visible
https://bugs.webkit.org/show_bug.cgi?id=196667
Summary
REGRESSION(r237196): Web Inspector: Computed panel shouldn't update when it i...
Nikita Vasilyev
Reported
2019-04-05 19:52:50 PDT
Currently, Computed panel gets updated even when another panel, such as Styles, is selected. There's a lot of unnecessary work happening. This doesn't appear to be a regression.
Attachments
Patch
(2.15 KB, patch)
2019-04-06 18:23 PDT
,
Nikita Vasilyev
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-04-05 19:54:17 PDT
<
rdar://problem/49664912
>
Nikita Vasilyev
Comment 2
2019-04-05 20:08:20 PDT
It seems like there's logic in-place. However, it has been broken for years and maybe never even worked. GeneralStyleDetailsSidebarPanel.js: visibilityDidChange() { super.visibilityDidChange(); if (!this._panel) return; if (!this.visible) { // <-- NEVER PASSES! this._panel.hidden(); return; } this._updateNoForcedPseudoClassesScrollOffset(); this._panel.shown(); this._panel.markAsNeedsRefresh(this.domNode); } So, what is this `visible` property and why is it always false there. SidebarPanel.js: get visible() { return this.selected && this.parentSidebar && !this.parentSidebar.collapsed; } Okay, the sidebar panel has to be selected to be visible. Sidebar.js: set selectedSidebarPanel(sidebarPanelOrIdentifierOrIndex) { var sidebarPanel = this.findSidebarPanel(sidebarPanelOrIdentifierOrIndex); if (this._selectedSidebarPanel === sidebarPanel) return; if (this._selectedSidebarPanel) { if (this._selectedSidebarPanel.visible) { this._selectedSidebarPanel.hidden(); this._selectedSidebarPanel.visibilityDidChange(); // <-- `visible` is true because `selected` hasn't been set to false yet! } this._selectedSidebarPanel.selected = false; }
Nikita Vasilyev
Comment 3
2019-04-06 18:12:51 PDT
Actually, this regressed 6 months ago in
https://trac.webkit.org/changeset/237196/webkit
.
Nikita Vasilyev
Comment 4
2019-04-06 18:23:45 PDT
Created
attachment 366895
[details]
Patch
WebKit Commit Bot
Comment 5
2019-04-06 19:55:03 PDT
Comment on
attachment 366895
[details]
Patch Clearing flags on attachment: 366895 Committed
r243964
: <
https://trac.webkit.org/changeset/243964
>
WebKit Commit Bot
Comment 6
2019-04-06 19:55:05 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug