<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>151714</bug_id>
          
          <creation_ts>2015-12-01 12:28:39 -0800</creation_ts>
          <short_desc>When Debug UI is enabled, Inspecting the Inspector should always be available</short_desc>
          <delta_ts>2026-01-12 09:05:43 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>147066</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Blaze Burg">bburg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>graouts</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1145327</commentid>
    <comment_count>0</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2015-12-01 12:28:39 -0800</bug_when>
    <thetext>NOTES:

We currently require some extra steps to enable 2nd-level inspector. It&apos;s currently guarded by two different NSUserDefaults (http://trac.webkit.org/wiki/WebInspectorDebugging#InspectingtheInspector).

It has been proposed elsewhere that we add a separate DebugUI button for inspecting the inspector. I would like a shortcut too, Cmd-Shift-Opt-I (Cmd-Shift-Opt matches other DebugUI shortcuts).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1145328</commentid>
    <comment_count>1</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2015-12-01 12:28:56 -0800</bug_when>
    <thetext>Internally filed at &lt;rdar://problem/12628083&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1148833</commentid>
    <comment_count>2</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2015-12-13 12:38:48 -0800</bug_when>
    <thetext>the &quot;Inspect Element&quot; context menu item is added inside WebCore code. It checks InspectorController::enabled(), which calls to developerExtrasEnabled(), which in the Web case, is tied to PageSettings::developerExtrasEnabled(). The second-level inspector has a separate page group.

To make 2nd-level inspector always available, we can always add the context menu in engineering builds only if the inspection level is &gt;0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1148837</commentid>
    <comment_count>3</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2015-12-13 13:02:03 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt;
&gt; To make 2nd-level inspector always available, we can always add the context
&gt; menu in engineering builds only if the inspection level is &gt;0.

It would be even better if we can execute some injected script if inspectionLevel() &gt; 0 to see if debug UI is enabled. 

We&apos;d need to evaluate the following from InspectorController (in the context of the main frame&apos;s document).

!!(WebInspector &amp;&amp; WebInspector.debugUIEnabled())

How can we evaluate something like this in the main frame&apos;s ExecState?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>