<?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>45374</bug_id>
          
          <creation_ts>2010-09-08 02:06:15 -0700</creation_ts>
          <short_desc>Web Inspector: Selecting &quot;Inspect Element&quot; always shows &lt;body&gt; instead of the inspected element</short_desc>
          <delta_ts>2010-09-10 09:47:32 -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="Martin Häcker">spamfaenger</reporter>
          <assigned_to name="Ilya Tikhonovsky">loislo</assigned_to>
          <cc>apavlov</cc>
    
    <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</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>275687</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Häcker">spamfaenger</who>
    <bug_when>2010-09-08 02:06:15 -0700</bug_when>
    <thetext>Hi there,

if I have the inspector set to open at the bottom of the window and it is closed when I choose &apos;Inspect element&apos; from the context menu after it is opened it always selects the body tag in the &apos;elements&apos; pane instead of what was clicked.

Workaround for now is to do the right click dance again as the second time seems to work more reliably.

Still it is quite annoying and always takes some time to figure it out and gather that not the right thing was selected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275705</commentid>
    <comment_count>1</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-09-08 02:48:40 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Hi there,

Could you please specify the browser name and version?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276475</commentid>
    <comment_count>2</comment_count>
      <attachid>67037</attachid>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-09-09 08:20:45 -0700</bug_when>
    <thetext>Created attachment 67037
[patch] First iteration.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276507</commentid>
    <comment_count>3</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-09-09 09:26:18 -0700</bug_when>
    <thetext>Ilya, is there an explanation to go with this patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276529</commentid>
    <comment_count>4</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-09-09 09:52:18 -0700</bug_when>
    <thetext>1. Open any page
2. Right-click on any element, select &quot;Inspect Element&quot;
3. Web Inspector is opened but the &lt;body&gt; element (for HTML) is focused rather than the selected element
4. Inspect the Web Inspector. An error message is logged in the console.

The regression was introduced in http://trac.webkit.org/changeset/66012 - focusNode() is invoked in InspectorController::populateScriptObjects() before the main document is set for the InspectorDOMAgent instance (which makes focusNode() bail out prematurely).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276532</commentid>
    <comment_count>5</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-09-09 09:52:46 -0700</bug_when>
    <thetext>*** Bug 45464 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276535</commentid>
    <comment_count>6</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-09-09 09:55:00 -0700</bug_when>
    <thetext>As I wrote in the other bug. r=me if the explanation goes into the ChangeLog! =)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>277120</commentid>
    <comment_count>7</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-09-10 04:40:59 -0700</bug_when>
    <thetext>Committed r67185
        M       WebCore/ChangeLog
        M       WebCore/inspector/InspectorController.cpp
r67185 = 0e881294fa1aba4a75ffe861696dd21fa46f54a6 (refs/remotes/trunk)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>277261</commentid>
    <comment_count>8</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-09-10 09:47:32 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/67185</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>67037</attachid>
            <date>2010-09-09 08:20:45 -0700</date>
            <delta_ts>2010-09-09 09:56:42 -0700</delta_ts>
            <desc>[patch] First iteration.</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>1554</size>
            <attacher name="Ilya Tikhonovsky">loislo</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
NmZhMzYzMi4uMjUyYzhiNCAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNCBAQAorMjAxMC0wOS0wOSAgSWx5YSBUaWtob25v
dnNreSAgPGxvaXNsb0BjaHJvbWl1bS5vcmc+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZ
IChPT1BTISkuCisKKyAgICAgICAgV2ViSW5zcGVjdG9yOiBTZWxlY3RpbmcgJ2luc3BlY3QgZWxl
bWVudCcgY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
LSAgICAgICAgZm9jdXNOb2RlKCk7CisKICAgICBzaG93UGFuZWwobV9zaG93QWZ0ZXJWaXNpYmxl
KTsKIAogICAgIGlmIChtX3Jlc291cmNlVHJhY2tpbmdFbmFibGVkKQpAQCAtNjI4LDYgKzYyNyw5
IEBAIHZvaWQgSW5zcGVjdG9yQ29udHJvbGxlcjo6cG9wdWxhdGVTY3JpcHRPYmplY3RzKCkKIAog
ICAgIG1fZG9tQWdlbnQtPnNldERvY3VtZW50KG1faW5zcGVjdGVkUGFnZS0+bWFpbkZyYW1lKCkt
PmRvY3VtZW50KCkpOwogCisgICAgaWYgKG1fbm9kZVRvRm9jdXMpCisgICAgICAgIGZvY3VzTm9k
ZSgpOworCiAgICAgaWYgKG1fZXhwaXJlZENvbnNvbGVNZXNzYWdlQ291bnQpCiAgICAgICAgIG1f
ZnJvbnRlbmQtPnVwZGF0ZUNvbnNvbGVNZXNzYWdlRXhwaXJlZENvdW50KG1fZXhwaXJlZENvbnNv
bGVNZXNzYWdlQ291bnQpOwogICAgIHVuc2lnbmVkIG1lc3NhZ2VDb3VudCA9IG1fY29uc29sZU1l
c3NhZ2VzLnNpemUoKTsK
</data>
<flag name="review"
          id="56216"
          type_id="1"
          status="+"
          setter="joepeck"
    />
    <flag name="commit-queue"
          id="56217"
          type_id="3"
          status="-"
          setter="joepeck"
    />
          </attachment>
      

    </bug>

</bugzilla>