Bug 130167 - Web Inspector: [iOS 6] uncaught exception attempting to use CSSAgent.getNamedFlowCollection
Summary: Web Inspector: [iOS 6] uncaught exception attempting to use CSSAgent.getNamed...
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
Keywords: InRadar
Depends on:
Reported: 2014-03-12 17:11 PDT by Joseph Pecoraro
Modified: 2014-03-12 17:36 PDT (History)
4 users (show)

See Also:

[PATCH] Proposed Fix (1.74 KB, patch)
2014-03-12 17:13 PDT, Joseph Pecoraro
timothy: review+
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-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