Bug 129617

Summary: Web Inspector: TypeError: null is not an object (evaluating 'document.body.classList')
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Timothy Hatcher <timothy>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, graouts, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description Joseph Pecoraro 2014-03-03 12:13:59 PST
Inspecting the inspector I see:

[Error] TypeError: null is not an object (evaluating 'document.body.classList')
	_windowFocused (Main.js, line 783)
	(anonymous function) ([native code], line 0)

Weird.
Comment 1 Radar WebKit Bug Importer 2014-03-03 12:14:45 PST
<rdar://problem/16213488>
Comment 2 Timothy Hatcher 2014-03-03 12:40:36 PST
Well we do add the _windowFocused listener before the DOMContentLoaded event. So if it fires early it will cause this. I guess we should delay adding the listener until DOMContentLoaded.
Comment 3 Timothy Hatcher 2014-03-03 12:45:39 PST
Created attachment 225683 [details]
Patch
Comment 4 WebKit Commit Bot 2014-03-03 13:46:53 PST
Comment on attachment 225683 [details]
Patch

Clearing flags on attachment: 225683

Committed r165007: <http://trac.webkit.org/changeset/165007>
Comment 5 WebKit Commit Bot 2014-03-03 13:46:55 PST
All reviewed patches have been landed.  Closing bug.