-
commit-queue@webkit.org authored
Web Inspector: Add InspectorFrontendHost.debuggableType to let the frontend know it's backend is JavaScript or Web https://bugs.webkit.org/show_bug.cgi?id=126016 Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-12-19 Reviewed by Timothy Hatcher. Source/JavaScriptCore: * inspector/remote/RemoteInspector.mm: (Inspector::RemoteInspector::listingForDebuggable): * inspector/remote/RemoteInspectorConstants.h: Include a debuggable type identifier in the debuggable listing, so the remote frontend can know if it is debugging a Web Page or JS Context. Source/WebCore: * inspector/InspectorFrontendHost.cpp: (WebCore::InspectorFrontendHost::debuggableType): * inspector/InspectorFrontendHost.h: * inspector/InspectorFrontendHost.idl: Expose the debuggableType to the frontend. In WebCore it is always a "web" type. Source/WebInspectorUI: * UserInterface/LoadInspectorBackendCommands.js: If the debuggable target is "web" load both JS and Web backend commands. Otherwise, we only load the default, js backend commands. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160887 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ba1f050d