Bug 143729

Summary: Web Inspector: Expose private APIs to interact with RemoteInspector instead of going through WebKit
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ggaren, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer, yongjun_zhang
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix
none
[PATCH] Proposed Fix timothy: review+

Joseph Pecoraro
Reported 2015-04-14 15:06:32 PDT
* SUMMARY Expose private APIs to interact with RemoteInspector instead of going through WebKit. Back when remote inspection was WebView specific all of the APIs to toggle different behavior were in WebKitLegacy.framework on @class WebView. Since moving the core RemoteInspector singleton to JavaScriptCore, we've gotten away with automatically triggering things in JSContext/WebView/WKWebView but we really should provide some basic set of APIs directly. Things like (1) disable auto starting, (2) explicitly starting, (3) setting parent process information.
Attachments
[PATCH] Proposed Fix (10.19 KB, patch)
2015-04-14 15:09 PDT, Joseph Pecoraro
no flags
[PATCH] Proposed Fix (10.21 KB, patch)
2015-04-14 15:17 PDT, Joseph Pecoraro
timothy: review+
Joseph Pecoraro
Comment 1 2015-04-14 15:06:57 PDT
Joseph Pecoraro
Comment 2 2015-04-14 15:09:46 PDT
Created attachment 250742 [details] [PATCH] Proposed Fix
WebKit Commit Bot
Comment 3 2015-04-14 15:12:24 PDT
Attachment 250742 [details] did not pass style-queue: ERROR: Source/JavaScriptCore/API/JSRemoteInspectorPrivate.h:26: #ifndef header guard has wrong style, please use: JSRemoteInspectorPrivate_h [build/header_guard] [5] ERROR: Source/JavaScriptCore/API/JSRemoteInspectorPrivate.h:37: The parameter name "pid" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/JavaScriptCore/API/JSRemoteInspector.cpp:30: Found header this file implements after other header. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 3 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Joseph Pecoraro
Comment 4 2015-04-14 15:17:55 PDT
Created attachment 250745 [details] [PATCH] Proposed Fix
WebKit Commit Bot
Comment 5 2015-04-14 15:19:30 PDT
Attachment 250745 [details] did not pass style-queue: ERROR: Source/JavaScriptCore/API/JSRemoteInspector.cpp:30: Found header this file implements after other header. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Joseph Pecoraro
Comment 6 2015-04-14 16:27:43 PDT
Note You need to log in before you can comment on or make changes to this bug.