WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
234570
Web Inspector: Assertion Failed adding event listener in CSSPropertyNameCompletions.prototype._updateValuesWithLatestCSSVariablesIfNeeded
https://bugs.webkit.org/show_bug.cgi?id=234570
Summary
Web Inspector: Assertion Failed adding event listener in CSSPropertyNameCompl...
Patrick Angle
Reported
2021-12-21 11:01:41 PST
From Devin: [Error] Assertion Failed (4) DOMNodeStyles "dom-node-styles-needs-refresh" function _handleNodesStylesNeedsRefresh(event) { this._needsVariablesFromInspectedNode = true; } CSSPropertyNameCompletions addEventListener (Object.js:53) _updateValuesWithLatestCSSVariablesIfNeeded (CSSPropertyNameCompletions.js:90) executeQuery (CSSPropertyNameCompletions.js:59) (anonymous function) (CSSKeywordCompletions.js:48) _nameCompletionDataProvider _updateCompletions (SpreadsheetTextField.js:436) _handleInput (SpreadsheetTextField.js:423) _handleInput Currently we continually add event listeners every time we update the completions. We should only add/remove this listener on a node changing.
Attachments
Patch v1.0
(3.22 KB, patch)
2021-12-21 11:07 PST
,
Patrick Angle
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-12-21 11:01:52 PST
<
rdar://problem/86776737
>
Patrick Angle
Comment 2
2021-12-21 11:07:08 PST
Created
attachment 447736
[details]
Patch v1.0
Devin Rousso
Comment 3
2021-12-21 11:12:18 PST
Comment on
attachment 447736
[details]
Patch v1.0 r=me, this is perhaps maybe slightly more inefficient cause we're now listening for `WI.DOMNodeStyles.Event.NeedsRefresh` even if we haven't called `allCSSVariables` yet, but I think it's fine
EWS
Comment 4
2021-12-21 17:40:40 PST
Committed
r287338
(
245480@main
): <
https://commits.webkit.org/245480@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 447736
[details]
.
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