<?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>143030</bug_id>
          
          <creation_ts>2015-03-24 17:24:50 -0700</creation_ts>
          <short_desc>REGRESSION: Inspector doesn&apos;t get focused when opened in dock mode</short_desc>
          <delta_ts>2015-03-24 19:43:22 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</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>126800</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>andersca</cc>
    
    <cc>graouts</cc>
    
    <cc>joepeck</cc>
    
    <cc>jonowells</cc>
    
    <cc>mattbaker</cc>
    
    <cc>nvasilyev</cc>
    
    <cc>sam</cc>
    
    <cc>thorton</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1079788</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2015-03-24 17:24:50 -0700</bug_when>
    <thetext>When Web Inspector is opened in the docked mode, it doesn&apos;t become the first responder
even through the caret rendered by CodeMirror starts blinking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079789</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-03-24 17:25:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/20285019&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079792</commentid>
    <comment_count>2</comment_count>
      <attachid>249369</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2015-03-24 17:40:23 -0700</bug_when>
    <thetext>Created attachment 249369
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079796</commentid>
    <comment_count>3</comment_count>
      <attachid>249369</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2015-03-24 18:05:14 -0700</bug_when>
    <thetext>Comment on attachment 249369
Patch

Looks good to me! Needs a WK2 Owner&apos;s approval</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079798</commentid>
    <comment_count>4</comment_count>
      <attachid>249369</attachid>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2015-03-24 18:09:31 -0700</bug_when>
    <thetext>Comment on attachment 249369
Patch

Should we fix WKWebView to &quot;forward&quot; first responder status when it gets becomeFirstResponder? That way no one else runs into this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079800</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2015-03-24 18:12:25 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Comment on attachment 249369 [details]
&gt; Patch
&gt; 
&gt; Should we fix WKWebView to &quot;forward&quot; first responder status when it gets
&gt; becomeFirstResponder? That way no one else runs into this issue.

I don&apos;t think so at least not according to Andres. He suggested making WKWebView return NO in acceptsFirstResponder but I&apos;d prefer landing it as a separate patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079805</commentid>
    <comment_count>6</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2015-03-24 18:19:32 -0700</bug_when>
    <thetext>If you were a third party developer, how would you get the WKView to make it the first responder. You couldn&apos;t.

Please fix this properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079832</commentid>
    <comment_count>7</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2015-03-24 19:35:37 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; If you were a third party developer, how would you get the WKView to make it
&gt; the first responder. You couldn&apos;t.

You&apos;d create your own WKView via: [WKView initWithFrame]

&gt; Please fix this properly.

If you think this API design is wrong, please file a separate bug. That&apos;s a much broader scope than fixing this regression. Quite frankly, I don&apos;t even want to work on this bug if it wasn&apos;t blocking the bug 126800.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079833</commentid>
    <comment_count>8</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2015-03-24 19:37:22 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; If you were a third party developer, how would you get the WKView to make it
&gt; &gt; the first responder. You couldn&apos;t.
&gt; 
&gt; You&apos;d create your own WKView via: [WKView initWithFrame]

WKView is not API.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079834</commentid>
    <comment_count>9</comment_count>
      <attachid>249369</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2015-03-24 19:37:39 -0700</bug_when>
    <thetext>Comment on attachment 249369
Patch

Clearing flags on attachment: 249369

Committed r181927: &lt;http://trac.webkit.org/changeset/181927&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079835</commentid>
    <comment_count>10</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2015-03-24 19:37:44 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1079839</commentid>
    <comment_count>11</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2015-03-24 19:43:22 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; (In reply to comment #6)
&gt; &gt; &gt; If you were a third party developer, how would you get the WKView to make it
&gt; &gt; &gt; the first responder. You couldn&apos;t.
&gt; &gt; 
&gt; &gt; You&apos;d create your own WKView via: [WKView initWithFrame]
&gt; 
&gt; WKView is not API.

Huh, I guess it&apos;s SPI but not API?  Anyway, we should move that discussion into another bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>249369</attachid>
            <date>2015-03-24 17:40:23 -0700</date>
            <delta_ts>2015-03-24 19:37:39 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>fix143030</filename>
            <type>text/plain</type>
            <size>2145</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDE4MTkyMikKKysrIFNvdXJjZS9XZWJLaXQyL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE4IEBACisyMDE1LTAzLTI0ICBSeW9zdWtl
IE5pd2EgIDxybml3YUB3ZWJraXQub3JnPgorCisgICAgICAgIEluc3BlY3RvciBkb2Vzbid0IGdl
dCBmb2N1c2VkIHdoZW4gb3BlbmVkIGluIGRvY2sgbW9kZQorICAgICAgICBodHRwczovL2J1Z3Mu
d2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTQzMDMwCisKKyAgICAgICAgUmV2aWV3ZWQgYnkg
Tk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgVGhlIGJ1ZyB3YXMgY2F1c2VkIGJ5IHBsYXRmb3Jt
QnJpbmdUb0Zyb250IGFuZCBwbGF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