<?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>218301</bug_id>
          
          <creation_ts>2020-10-28 11:39:20 -0700</creation_ts>
          <short_desc>Web Inspector: Sources: creating a local override when viewing a resource should automatically place the cursor where it was before</short_desc>
          <delta_ts>2022-07-08 10:35:10 -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>WebKit 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>
          
          <blocked>242524</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Devin Rousso">hi</reporter>
          <assigned_to name="Devin Rousso">hi</assigned_to>
          <cc>hi</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>1702419</commentid>
    <comment_count>0</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2020-10-28 11:39:20 -0700</bug_when>
    <thetext>I often create local overrides once I notice that there&apos;s something I want to change in a resource.  This often happens far down in the resource, so it&apos;s annoying to have to re-find the code that I wanted to change after creating the local override.  It&apos;d be ideal to copy/propagate my current selection/scroll to the new content view shown for the local override so that after hitting the button I can instantly start editing.

# STEPS TO REPRODUCE
1. inspect any page
2. select a text-based resource (i.e. not an image) in the Sources Tab
3. scroll down and place the cursor somewhere near the end of the resource
4. click the Create Local Override navigation item

# EXPECTED
a new local override is created for the selected resource with my cursor/selection being exactly where it was before

# ACTUAL
a new local override is created and the newly shown content view is scrolled to the top</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702420</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-10-28 11:39:38 -0700</bug_when>
    <thetext>&lt;rdar://problem/70773143&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1872465</commentid>
    <comment_count>2</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2022-05-27 16:21:01 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/1129</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1874007</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-06-03 13:30:22 -0700</bug_when>
    <thetext>Committed r295224 (251279@main): &lt;https://commits.webkit.org/251279@main&gt;

Reviewed commits have been landed. Closing PR #1129 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>