Bug 129617 - Web Inspector: TypeError: null is not an object (evaluating 'document.body.classList')
Summary: Web Inspector: TypeError: null is not an object (evaluating 'document.body.cl...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Timothy Hatcher
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-03-03 12:13 PST by Joseph Pecoraro
Modified: 2014-03-03 13:46 PST (History)
5 users (show)

See Also:


Attachments
Patch (3.56 KB, patch)
2014-03-03 12:45 PST, Timothy Hatcher
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.