Bug 194280 - Web Inspector: Uncaught Exception: undefined is not an object (evaluating 'classes.includes')
Summary: Web Inspector: Uncaught Exception: undefined is not an object (evaluating 'cl...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL: file:///Volumes/DATA/Build/Release/We...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-02-04 23:11 PST by Devin Rousso
Modified: 2019-02-04 23:48 PST (History)
5 users (show)

See Also:


Attachments
Patch (1.91 KB, patch)
2019-02-04 23:13 PST, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2019-02-04 23:11:19 PST
-------
Inspected URL:        file:///Volumes/DATA/Build/Release/WebInspectorUI.framework/Resources/Main.html
Loading completed:    true
Frontend User Agent:  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/605.1.15 (KHTML, like Gecko)
Dispatch Source:      Protocol Event

Protocol Event:
{"method":"DOM.attributeRemoved","params":{"nodeId":342,"name":"class"}}

Uncaught Exceptions:
 - undefined is not an object (evaluating 'classes.includes') (at GeneralStyleDetailsSidebarPanel.js:373:37)
    _populateClassToggles @ GeneralStyleDetailsSidebarPanel.js:373:37
    _handleNodeAttributeRemoved @ GeneralStyleDetailsSidebarPanel.js:309:39
    dispatch @ Object.js:165:30
    dispatchEventToListeners @ Object.js:172:17
    _attributeRemoved @ DOMManager.js:225:38
    attributeRemoved @ DOMObserver.js:52:40
    dispatchEvent @ InspectorBackend.js:340:42
    _dispatchEvent @ Connection.js:195:32
    dispatch @ Connection.js:72:32
    dispatchMessageFromTarget @ TargetManager.js:101:35
    dispatchMessageFromTarget @ TargetObserver.js:42:51
    dispatchEvent @ InspectorBackend.js:340:42
    _dispatchEvent @ Connection.js:195:32
    dispatch @ Connection.js:72:32
    dispatch @ InspectorBackend.js:178:52
    dispatchNextQueuedMessageFromBackend @ MessageDispatcher.js:42:34

Additional Details:
    cause --> An uncaught exception was thrown while handling event: DOM.attributeRemoved
-------

* STEPS TO REPRODUCE
1. open inspector2
2. right click on the "class" attribute of <body> in the DOM tree
3. select Delete > Attribute
Comment 1 Radar WebKit Bug Importer 2019-02-04 23:11:57 PST
<rdar://problem/47811159>
Comment 2 Devin Rousso 2019-02-04 23:13:57 PST
Created attachment 361162 [details]
Patch
Comment 3 Matt Baker 2019-02-04 23:23:25 PST
Comment on attachment 361162 [details]
Patch

rs=me
Comment 4 WebKit Commit Bot 2019-02-04 23:48:16 PST
Comment on attachment 361162 [details]
Patch

Clearing flags on attachment: 361162

Committed r240967: <https://trac.webkit.org/changeset/240967>
Comment 5 WebKit Commit Bot 2019-02-04 23:48:17 PST
All reviewed patches have been landed.  Closing bug.