Bug 148088

Summary: Web Inspector: when remote inspecting iOS device, cannot inspect the Web Inspector itself
Product: WebKit Reporter: Brian Burg <bburg>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: bburg, graouts, joepeck, mattbaker, nvasilyev, sbarati, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Macintosh   
OS: iOS 9.0   
Bug Depends on:    
Bug Blocks: 147066    

Description Brian Burg 2015-08-17 13:15:57 PDT
STEPS TO REPRODUCE:

1. make sure you can inspect the inspector normally:

defaults write com.apple.Safari WebKitDeveloperExtrasEnabled 1
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled 1

2. Remote inspect Safari page on an iOS device
3. Right click inside the inspector

EXPECTED:

 * Second-level inspector pops up when right clicking the inspector

ACTUAL:

 * No menu item for "Inspect Element" when right clicking the inspector


NOTES:

This is probably a matter of not having a different defaults key set somewhere. Joe, any ideas?
Comment 1 Radar WebKit Bug Importer 2015-08-17 13:16:38 PDT
<rdar://problem/22312519>
Comment 2 Timothy Hatcher 2015-08-18 17:19:35 PDT
The WK1 default should work. Maybe the WK delegate is removing the context menu item?
Comment 3 Joseph Pecoraro 2015-08-18 17:32:48 PDT
Actually, it uses its own default.

    shell> defaults write com.apple.WebInspector DeveloperExtrasEnabled -bool YES

Ideally we would move it to a WKWebView variant.
Comment 4 Brian Burg 2015-08-18 21:03:28 PDT
(In reply to comment #3)
> Actually, it uses its own default.
> 
>     shell> defaults write com.apple.WebInspector DeveloperExtrasEnabled
> -bool YES
> 
> Ideally we would move it to a WKWebView variant.

OK, added the default to the wiki for now. Closing this bug.

https://trac.webkit.org/wiki/WebInspectorDebugging