Bug 130167

Summary: Web Inspector: [iOS 6] uncaught exception attempting to use CSSAgent.getNamedFlowCollection
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: graouts, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix timothy: review+

Description Joseph Pecoraro 2014-03-12 17:11:56 PDT
I see an uncaught exception attempting to use an undefined protocol method inspecting an iOS 6 device:

[Error] TypeError: undefined is not a function (evaluating 'CSSAgent.getNamedFlowCollection(documentNodeIdentifier, onNamedFlowCollectionAvailable.bind(this))')
	getNamedFlowCollection (DOMTreeManager.js, line 586)
	(anonymous function) (DOMTree.js, line 256)
	requestRootDOMNode (DOMTree.js, line 109)
	requestContentFlowList (DOMTree.js, line 254)
	_rootDOMNodeInvalidated (FrameTreeElement.js, line 288)
	dispatch (Object.js, line 180)
	dispatchEventToListeners (Object.js, line 187)
	performInvalidate (DOMTree.js, line 95)
	performInvalidate ([native code], line 0)

We should feature detect this function before using it.
Comment 1 Joseph Pecoraro 2014-03-12 17:13:27 PDT
Created attachment 226562 [details]
[PATCH] Proposed Fix
Comment 2 Joseph Pecoraro 2014-03-12 17:36:17 PDT
<http://trac.webkit.org/changeset/165518>