Bug 240606

Summary: Web Inspector: Assertion when removing event listener in CSSPropertyNameCompletions.js
Product: WebKit Reporter: Patrick Angle <pangle>
Component: Web InspectorAssignee: Razvan Caliman <rcaliman>
Status: RESOLVED FIXED    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer, y_soliman
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Description Patrick Angle 2022-05-18 15:32:57 PDT
Encountered while refreshing a page soon after having added an inline style `color: pink;` to an element via the Styles sidebar panel.

[Error] Assertion Failed (4)
DOMNodeStyles
"dom-node-styles-needs-refresh"
function _handleNodesStylesNeedsRefresh(event) { this._needsVariablesFromInspectedNode = true; }
CSSPropertyNameCompletions
	removeEventListener (Object.js:101)
	_handleInspectedNodeChanged (CSSPropertyNameCompletions.js:101:91)
	dispatch (Object.js:134)
	dispatchEventToListeners (Object.js:142)
	callback (DOMManager.js:694)
	_dispatchResponseToCallback (Connection.js:152)
	_dispatchResponse (Connection.js:122)
	dispatch (Connection.js:77)
	dispatchMessageFromTarget (TargetManager.js:176)
	dispatchMessageFromTarget (TargetObserver.js:47)
	_dispatchEvent (Connection.js:210)
	dispatch (Connection.js:79)
	dispatch (InspectorBackend.js:233)
	(anonymous function) (MessageDispatcher.js:42)
Comment 1 Radar WebKit Bug Importer 2022-05-18 15:33:04 PDT
<rdar://problem/93531451>
Comment 2 Razvan Caliman 2022-09-01 11:16:54 PDT
Pull request: https://github.com/WebKit/WebKit/pull/3920
Comment 3 EWS 2022-09-01 15:07:41 PDT
Committed 254072@main (7d37933f4760): <https://commits.webkit.org/254072@main>

Reviewed commits have been landed. Closing PR #3920 and removing active labels.
Comment 4 Razvan Caliman 2022-09-05 05:49:20 PDT
*** Bug 244261 has been marked as a duplicate of this bug. ***