<?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>113009</bug_id>
          
          <creation_ts>2013-03-21 23:30:12 -0700</creation_ts>
          <short_desc>[EFL][WK2] View is not focused when fullscreen mode toggled</short_desc>
          <delta_ts>2013-03-22 09:58:01 -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>WebKit EFL</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sudarsana Nagineni (babu)">naginenis</reporter>
          <assigned_to name="Sudarsana Nagineni (babu)">naginenis</assigned_to>
          <cc>gyuyoung.kim</cc>
    
    <cc>lucas.de.marchi</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>861142</commentid>
    <comment_count>0</comment_count>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2013-03-21 23:30:12 -0700</bug_when>
    <thetext>View is not focused when fullscreen mode enabled/disabled by FullScreen API.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>861152</commentid>
    <comment_count>1</comment_count>
      <attachid>194455</attachid>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2013-03-21 23:42:32 -0700</bug_when>
    <thetext>Created attachment 194455
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>861230</commentid>
    <comment_count>2</comment_count>
      <attachid>194455</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2013-03-22 01:46:48 -0700</bug_when>
    <thetext>Comment on attachment 194455
patch

lgtm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>861236</commentid>
    <comment_count>3</comment_count>
      <attachid>194455</attachid>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2013-03-22 01:56:24 -0700</bug_when>
    <thetext>Comment on attachment 194455
patch

Thanks Laszlo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>861260</commentid>
    <comment_count>4</comment_count>
      <attachid>194455</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-22 02:26:06 -0700</bug_when>
    <thetext>Comment on attachment 194455
patch

Clearing flags on attachment: 194455

Committed r146581: &lt;http://trac.webkit.org/changeset/146581&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>861261</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-22 02:26:09 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>861326</commentid>
    <comment_count>6</comment_count>
      <attachid>194455</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2013-03-22 04:04:47 -0700</bug_when>
    <thetext>Comment on attachment 194455
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=194455&amp;action=review

&gt; Tools/MiniBrowser/efl/main.c:1008
&gt; +    evas_object_focus_set(permission_data-&gt;ewk_view, EINA_TRUE);

You&apos;re supposed to call view_focus_set() not evas_object_focus_set(). Otherwise, an elementary object may keep the focus.

&gt; Tools/MiniBrowser/efl/main.c:1019
&gt; +    evas_object_focus_set(permission_data-&gt;ewk_view, EINA_TRUE);

Ditto.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>861363</commentid>
    <comment_count>7</comment_count>
      <attachid>194455</attachid>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2013-03-22 05:18:26 -0700</bug_when>
    <thetext>Comment on attachment 194455
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=194455&amp;action=review

&gt;&gt; Tools/MiniBrowser/efl/main.c:1008
&gt;&gt; +    evas_object_focus_set(permission_data-&gt;ewk_view, EINA_TRUE);
&gt; 
&gt; You&apos;re supposed to call view_focus_set() not evas_object_focus_set(). Otherwise, an elementary object may keep the focus.

Initially I also thought about calling view_focus_set(), but I don&apos;t see any issues if we don&apos;t call that here. May be it is needed only in case of stealing focus away from the url_bar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>861373</commentid>
    <comment_count>8</comment_count>
      <attachid>194455</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2013-03-22 05:35:09 -0700</bug_when>
    <thetext>Comment on attachment 194455
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=194455&amp;action=review

&gt;&gt;&gt; Tools/MiniBrowser/efl/main.c:1008
&gt;&gt;&gt; +    evas_object_focus_set(permission_data-&gt;ewk_view, EINA_TRUE);
&gt;&gt; 
&gt;&gt; You&apos;re supposed to call view_focus_set() not evas_object_focus_set(). Otherwise, an elementary object may keep the focus.
&gt; 
&gt; Initially I also thought about calling view_focus_set(), but I don&apos;t see any issues if we don&apos;t call that here. May be it is needed only in case of stealing focus away from the url_bar.

It is useful when stealing away focus from any elm widget. Depending on who owns the focus when you call evas_object_focus_set(), your change may not work. We introduced view_focus_set() exactly for this reason and it should be used. There is no drawback to using view_focus_set() but using evas_object_focus_set() may not work as expected in some cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>861590</commentid>
    <comment_count>9</comment_count>
      <attachid>194455</attachid>
    <who name="Sudarsana Nagineni (babu)">naginenis</who>
    <bug_when>2013-03-22 09:58:01 -0700</bug_when>
    <thetext>Comment on attachment 194455
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=194455&amp;action=review

&gt;&gt;&gt;&gt; Tools/MiniBrowser/efl/main.c:1008
&gt;&gt;&gt;&gt; +    evas_object_focus_set(permission_data-&gt;ewk_view, EINA_TRUE);
&gt;&gt;&gt; 
&gt;&gt;&gt; You&apos;re supposed to call view_focus_set() not evas_object_focus_set(). Otherwise, an elementary object may keep the focus.
&gt;&gt; 
&gt;&gt; Initially I also thought about calling view_focus_set(), but I don&apos;t see any issues if we don&apos;t call that here. May be it is needed only in case of stealing focus away from the url_bar.
&gt; 
&gt; It is useful when stealing away focus from any elm widget. Depending on who owns the focus when you call evas_object_focus_set(), your change may not work. We introduced view_focus_set() exactly for this reason and it should be used. There is no drawback to using view_focus_set() but using evas_object_focus_set() may not work as expected in some cases.

I agree with you, evas_object_focus_set() doesn&apos;t work in some cases. But, in this particular case I don&apos;t see an issue by not calling view_focus_set(). Anyway, I don&apos;t mind uploading a new patch, if really needed :)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>194455</attachid>
            <date>2013-03-21 23:42:32 -0700</date>
            <delta_ts>2013-03-22 09:58:01 -0700</delta_ts>
            <desc>patch</desc>
            <filename>113009.patch</filename>
            <type>text/plain</type>
            <size>1499</size>
            <attacher name="Sudarsana Nagineni (babu)">naginenis</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBiL1Rvb2xzL0NoYW5nZUxvZwppbmRleCBiNWJm
OTA1Li5kMzhhYTdjIDEwMDY0NAotLS0gYS9Ub29scy9DaGFuZ2VMb2cKKysrIGIvVG9vbHMvQ2hh
bmdlTG9nCkBAIC0xLDMgKzEsMTcgQEAKKzIwMTMtMDMtMjEgIFN1ZGFyc2FuYSBOYWdpbmVuaSAg
PHN1ZGFyc2FuYS5uYWdpbmVuaUBpbnRlbC5jb20+CisKKyAgICAgICAgW0VGTF1bV0syXSBWaWV3
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