Bug 157356 - REGRESSION (r200401): Web Inspector: TypeError: undefined is not an object (evaluating 'messageElement.classList')
Summary: REGRESSION (r200401): Web Inspector: TypeError: undefined is not an object (e...
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: Nikita Vasilyev
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-05-04 13:54 PDT by Nikita Vasilyev
Modified: 2016-05-04 16:35 PDT (History)
8 users (show)

See Also:


Attachments
Patch (1.80 KB, patch)
2016-05-04 15:41 PDT, Nikita Vasilyev
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2016-05-04 13:54:16 PDT
[Error] Uncaught exception in inspector page while handling event Page.frameNavigated
TypeError: undefined is not an object (evaluating 'messageElement.classList')
(anonymous function) — LogContentView.js:688
forEach
_filterMessageElements — LogContentView.js:679
_reappendProvisionalMessages — LogContentView.js:976
_sessionStarted — LogContentView.js:287
dispatch — Object.js:161
dispatchEventToListeners — Object.js:168
_mainResourceDidChange — LogManager.js:118
dispatch — Object.js:161
dispatchEventToListeners — Object.js:176
_dispatchMainResourceDidChangeEvent — Frame.js:497
commitProvisionalLoad — Frame.js:140
frameDidNavigate — FrameResourceManager.js:105
frameNavigated — PageObserver.js:42
dispatchEvent — InspectorBackend.js:448
_dispatchEvent — InspectorBackend.js:342
dispatch — InspectorBackend.js:151
dispatchNextQueuedMessageFromBackend — MessageDispatcher.js:42
	_dispatchEvent (InspectorBackend.js:344)
	dispatch (InspectorBackend.js:151)
	dispatchNextQueuedMessageFromBackend (MessageDispatcher.js:42)
Comment 1 Radar WebKit Bug Importer 2016-05-04 13:55:14 PDT
<rdar://problem/26097424>
Comment 2 Nikita Vasilyev 2016-05-04 13:59:13 PDT
https://github.com/WebKit/webkit/blob/2f5ab3dcd0f5d3b6bc36bf46582cee8f76226db4/Source/WebInspectorUI/UserInterface/Views/LogContentView.js#L976

messageView.element doesn't exist when the console
hasn't been shown yet.

Now that I moved _filterMessageElements to
didAppendConsoleMessageView, we should be able
to just remove it here.
Comment 3 Nikita Vasilyev 2016-05-04 15:41:11 PDT
Created attachment 278135 [details]
Patch
Comment 4 WebKit Commit Bot 2016-05-04 16:35:48 PDT
Comment on attachment 278135 [details]
Patch

Clearing flags on attachment: 278135

Committed r200439: <http://trac.webkit.org/changeset/200439>
Comment 5 WebKit Commit Bot 2016-05-04 16:35:53 PDT
All reviewed patches have been landed.  Closing bug.