<?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>117994</bug_id>
          
          <creation_ts>2013-06-25 08:41:47 -0700</creation_ts>
          <short_desc>Web Inspector: stepping through while paused in debugger makes a popover appear</short_desc>
          <delta_ts>2013-06-26 23:50:55 -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</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antoine Quint">graouts</reporter>
          <assigned_to name="Antoine Quint">graouts</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>graouts</cc>
    
    <cc>joepeck</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>903342</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2013-06-25 08:41:47 -0700</bug_when>
    <thetext>When paused in the debugger and stepping through the call stack, a popover appears in the content view. I think this is related to a previously highlighted token that we&apos;re trying to restore the popover for even though the popover had been dismissed in the meantime.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>903343</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2013-06-25 08:42:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/14260788&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>903344</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2013-06-25 08:47:29 -0700</bug_when>
    <thetext>I&apos;ll take a look at this tomorrow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>903378</commentid>
    <comment_count>3</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2013-06-25 10:56:30 -0700</bug_when>
    <thetext>Yes, I&apos;ve noticed this too. I think SourceCodeTextEditor._activeCallFrameDidChange is too keen on reshowing the last tracked token. It should only do that if the popover is visible, to refresh the popover.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>903704</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2013-06-26 07:43:29 -0700</bug_when>
    <thetext>This is due to the following code in SourceCodeTextEditor.prototype._activeCallFrameDidChange:

        if (this.tokenTrackingController.tracking &amp;&amp; this.tokenTrackingController.candidate)
            this.tokenTrackingControllerNewHighlightCandidate(this.tokenTrackingController, this.tokenTrackingController.candidate);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>903705</commentid>
    <comment_count>5</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2013-06-26 07:48:43 -0700</bug_when>
    <thetext>Interestingly this call is directly followed by a call to:

        this._dismissPopover();

But in tokenTrackingControllerNewHighlightCandidate() we display the popover after gathering the content from the backend, so we dismiss and show the popover again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>903713</commentid>
    <comment_count>6</comment_count>
      <attachid>205492</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2013-06-26 08:08:46 -0700</bug_when>
    <thetext>Created attachment 205492
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>903751</commentid>
    <comment_count>7</comment_count>
      <attachid>205492</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-06-26 09:00:52 -0700</bug_when>
    <thetext>Comment on attachment 205492
Patch

Clearing flags on attachment: 205492

Committed r151991: &lt;http://trac.webkit.org/changeset/151991&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>903752</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-06-26 09:00:55 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>903831</commentid>
    <comment_count>9</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2013-06-26 11:35:55 -0700</bug_when>
    <thetext>Stepping through the following code:

    var x = 0;
    x += Math.random();
    x += Math.random();
    x += Math.random();
    x += Math.random();

If I had a popover for &quot;x&quot; and stepped through the code I would want to see the popover stay up and just update with the new value of x each time. Does that happen? Should I just file a separate bug requesting that behavior?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>904076</commentid>
    <comment_count>10</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2013-06-26 23:50:55 -0700</bug_when>
    <thetext>The popover will hide whenever you step through code and won&apos;t reappear until there is additional user action to re-highlight the token. We should indeed have a separate bug to make this work.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>205492</attachid>
            <date>2013-06-26 08:08:46 -0700</date>
            <delta_ts>2013-06-26 09:00:52 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-117994-20130626170648.patch</filename>
            <type>text/plain</type>
            <size>1809</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTUxOTc4CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViSW5zcGVj
dG9yVUkvQ2hhbmdlTG9nIGIvU291cmNlL1dlYkluc3BlY3RvclVJL0NoYW5nZUxvZwppbmRleCAz
MmNhYmZlNWYyMWFiN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