Now that we're enabling Canvas profiling, we need a canvas observer to receive the events sent from the backend.
<rdar://problem/14730691>
Created attachment 208693 [details] Patch
Comment on attachment 208693 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=208693&action=review r=me, with 1 comment > Source/WebInspectorUI/UserInterface/Main.js:41 > + InspectorBackend.registerCanvasDispatcher(new WebInspector.CanvasObserver); InspectorBackend.registerCanvasDispatcher did not exist in iOS 6. iOS 6 devices load the UserInterface/Legacy/6.0/InspectorBackendCommands.js file instead of the UserInterface/InspectorBackendCommands.js in LoadInspectorBackendCommands.js. So the lack of that function existing will mean that this would be an uncaught exception. You should do this at the bottom like the LayerTreeDispatcher. if (InspectorBackend.registerCanvasDispatcher) InspectorBackend.registerCanvasDispatcher(new WebInspector.CanvasObserver);
Committed r154034: <http://trac.webkit.org/changeset/154034>