<?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>42558</bug_id>
          
          <creation_ts>2010-07-19 05:03:43 -0700</creation_ts>
          <short_desc>Web Inspector: hide &quot;toggle debugger&quot; button when debugger is always enabled</short_desc>
          <delta_ts>2010-07-19 10:41:49 -0700</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 (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yury Semikhatsky">yurys</reporter>
          <assigned_to name="Yury Semikhatsky">yurys</assigned_to>
          <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>masterov</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>253142</commentid>
    <comment_count>0</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2010-07-19 05:03:43 -0700</bug_when>
    <thetext>Web Inspector: hide &quot;toggle debugger&quot; button when debugger is always enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253143</commentid>
    <comment_count>1</comment_count>
      <attachid>61939</attachid>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2010-07-19 05:05:16 -0700</bug_when>
    <thetext>Created attachment 61939
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253147</commentid>
    <comment_count>2</comment_count>
      <attachid>61939</attachid>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2010-07-19 05:17:50 -0700</bug_when>
    <thetext>Comment on attachment 61939
Patch

Clearing flags on attachment: 61939

Committed r63649: &lt;http://trac.webkit.org/changeset/63649&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253148</commentid>
    <comment_count>3</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2010-07-19 05:18:05 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253266</commentid>
    <comment_count>4</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-07-19 09:48:43 -0700</bug_when>
    <thetext>So, now how can the user turn the debugger off? Is it lazy initialized so that
it is inactive until the user visits the Scripts panel? I don&apos;t like this change
unless there is something I am missing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253267</commentid>
    <comment_count>5</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2010-07-19 09:50:54 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; So, now how can the user turn the debugger off? Is it lazy initialized so that
&gt; it is inactive until the user visits the Scripts panel? I don&apos;t like this change
&gt; unless there is something I am missing.

This is not affecting WebKit/JSC. This was a regression on Chromium side that had  debugger enabled for all times. We&apos;ve lost this little diverging bit of UI while aligning with the upstream inspector code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253269</commentid>
    <comment_count>6</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-07-19 09:54:28 -0700</bug_when>
    <thetext>Ahh, I see. Thanks for the explanation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253287</commentid>
    <comment_count>7</comment_count>
    <who name="Patrick Mueller">pmuellr</who>
    <bug_when>2010-07-19 10:41:49 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; So, now how can the user turn the debugger off? Is it lazy initialized so that
&gt; it is inactive until the user visits the Scripts panel? I don&apos;t like this change
&gt; unless there is something I am missing.

I had the same conversation on IRC a little earlier.  :-)

I think this would have been clearer if instead of

    Preferences.debuggerAlwaysEnabled

it had been something like:

   Platform.debuggerAlwaysEnabled

In this case, the &quot;debuggerAlwaysEnabled&quot; isn&apos;t really a &quot;preference&quot;, it&apos;s a static state of the platform, or something.  Always true for V8, always false for JSC, at least at that point in the code.  If you just went by the name alone, you&apos;d guess, as I and probably Joe did, that this was the state associated with the radio button in the &quot;enable script debugging&quot; panel.

A comment would have also made this clear.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>61939</attachid>
            <date>2010-07-19 05:05:16 -0700</date>
            <delta_ts>2010-07-19 05:17:49 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-42558-20100719160513.patch</filename>
            <type>text/plain</type>
            <size>1534</size>
            <attacher name="Yury Semikhatsky">yurys</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
Mjk3YjU0ZjkzMDAwNDI4MTdkNWJkMDFiZjJjNGJkOWQ1NjJhYzg2Yi4uZmY2MmNkNjdkNDgzMzlk
ZDk1MjRmZDZmZjEyMzI3ODUxYTQ4ZGY2YyAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cK
KysrIGIvV2ViQ29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxMyBAQAorMjAxMC0wNy0xOSAgWXVy
eSBTZW1pa2hhdHNreSAgPHl1cnlzQGNocm9taXVtLm9yZz4KKworICAgICAgICBSZXZpZXdlZCBi
eSBOT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