<?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>145446</bug_id>
          
          <creation_ts>2015-05-28 15:29:55 -0700</creation_ts>
          <short_desc>Web Inspector: Last selected DOM node loses focus after reload</short_desc>
          <delta_ts>2017-10-06 09:26: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</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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>
          <dependson>144231</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Baker">mattbaker</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>jonowells</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1097975</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2015-05-28 15:29:55 -0700</bug_when>
    <thetext>* SUMMARY
Last selected DOM node loses focus after reload. Node is correctly reselected in the DOM tree, but selection uses unfocused style (gray background).

* STEPS TO REPRODUCE
1. Inspect element
2. Elements tab shows selected and focused DOM node.
3. Reload page.
  =&gt; Node is reselected but not focused. Quick console has the focus.

* NOTES
Occurred during move to tab UI:
http://trac.webkit.org/log/trunk/?rev=183335&amp;stop_rev=183323</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1097976</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-05-28 15:30:07 -0700</bug_when>
    <thetext>&lt;rdar://problem/21149327&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1098056</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2015-05-28 20:09:33 -0700</bug_when>
    <thetext>This isn&apos;t a regression after all. When the navigation sidebar is visible in the Elements tab, the previously selected item in the tree outline is restored on page reload, stealing the focus from the console prompt.

By the time the previously selected DOM node is restored, the prompt no longer has the focus, and the selected node can be given the focus instead:

DOMTreeContentView.js: 340: selectAndRevealDOMNode(nodeToFocus, WebInspector.isConsoleFocused());

When the navigation sidebar is closed the prompt is never blurred.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1098149</commentid>
    <comment_count>3</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2015-05-29 12:25:37 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; This isn&apos;t a regression after all. When the navigation sidebar is visible in
&gt; the Elements tab, the previously selected item in the tree outline is
&gt; restored on page reload, stealing the focus from the console prompt.

This scenario could only occur prior to the tab UI, when viewing the DOM tree for a resource. As the Elements tab lacks a navigation sidebar, the focus will always be set to the console prompt after reloading the page.

Maybe we should persist the focus state of the console prompt. If the prompt had the focus prior to reloading the page, the expectation is that the focus will be restored after the view refreshes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1226569</commentid>
    <comment_count>4</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2016-09-05 20:50:13 -0700</bug_when>
    <thetext>Is this still an issue?  It seems to be working fine for me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>