<?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>110209</bug_id>
          
          <creation_ts>2013-02-19 04:22:51 -0800</creation_ts>
          <short_desc>[EFL][WK2] ewk_popup_menu_close() does not work as intended</short_desc>
          <delta_ts>2013-03-12 20:49:16 -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>
          
          <blocked>108934</blocked>
    
    <blocked>111543</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>ap</cc>
    
    <cc>benjamin</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>kenneth</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>lucas.de.marchi</cc>
    
    <cc>mikhail.pozdnyakov</cc>
    
    <cc>rakuco</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>836221</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2013-02-19 04:22:51 -0800</bug_when>
    <thetext>ewk_popup_menu_close() is called by the browser to notify WebKit that the popup menu was closed. However, the current implementation calls a smart function asking the browser to hide the popup menu instead of passing the information along to the WebProcess.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>836232</commentid>
    <comment_count>1</comment_count>
      <attachid>189055</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2013-02-19 04:32:58 -0800</bug_when>
    <thetext>Created attachment 189055
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>852782</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2013-03-11 15:23:25 -0700</bug_when>
    <thetext>Could I please get informal review?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853125</commentid>
    <comment_count>3</comment_count>
      <attachid>189055</attachid>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2013-03-11 23:53:03 -0700</bug_when>
    <thetext>Comment on attachment 189055
Patch

It seems to me existing implementation is weird. LGTM. BTW, should we provide ewk_popup_menu_close()? When browser lets webkit know that popup menu is closed ? Any use case ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853128</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2013-03-12 00:02:37 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 189055 [details])
&gt; It seems to me existing implementation is weird. LGTM. BTW, should we provide ewk_popup_menu_close()? When browser lets webkit know that popup menu is closed ? Any use case ?

Yes, we need to provide ewk_popup_menu_close() so that the browser lets us know when the popup menu gets hidden (so that WebCore updates its state). See MiniBrowser implementation in Bug 108934.

Some other ports do not need such API because they run an event loop while displaying the menu. However, this is not appropriate for EFL port as EFL has issues with nested event loops.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853139</commentid>
    <comment_count>5</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2013-03-12 00:25:07 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (From update of attachment 189055 [details] [details])
&gt; &gt; It seems to me existing implementation is weird. LGTM. BTW, should we provide ewk_popup_menu_close()? When browser lets webkit know that popup menu is closed ? Any use case ?
&gt; 
&gt; Yes, we need to provide ewk_popup_menu_close() so that the browser lets us know when the popup menu gets hidden (so that WebCore updates its state). See MiniBrowser implementation in Bug 108934.
&gt; 
&gt; Some other ports do not need such API because they run an event loop while displaying the menu. However, this is not appropriate for EFL port as EFL has issues with nested event loops.

I see. I talk with Byungwoo. Yes, we need to provide this API because of EFL nested event loop issue. Tizen WebKit also has same problem. BTW, I considered that we can add a new C API to hide popup menu. But, it looks it isn&apos;t good to add new C APIs for only EFL specific issue. LGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853772</commentid>
    <comment_count>6</comment_count>
      <attachid>189055</attachid>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2013-03-12 14:16:43 -0700</bug_when>
    <thetext>Comment on attachment 189055
Patch

Ok for WebKit2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>854029</commentid>
    <comment_count>7</comment_count>
      <attachid>189055</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2013-03-12 20:40:57 -0700</bug_when>
    <thetext>Comment on attachment 189055
Patch

r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>854031</commentid>
    <comment_count>8</comment_count>
      <attachid>189055</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-12 20:49:12 -0700</bug_when>
    <thetext>Comment on attachment 189055
Patch

Clearing flags on attachment: 189055

Committed r145676: &lt;http://trac.webkit.org/changeset/145676&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>854032</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-12 20:49:16 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>189055</attachid>
            <date>2013-02-19 04:32:58 -0800</date>
            <delta_ts>2013-03-12 20:49:12 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>110209_ewk_popup_menu_close.patch</filename>
            <type>text/plain</type>
            <size>1678</size>
            <attacher name="Chris Dumez">cdumez</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQyL0No
YW5nZUxvZwppbmRleCA2ZDFiYmYxLi4yMjYwNzgwIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0
Mi9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMjEg
QEAKKzIwMTMtMDItMTkgIENocmlzdG9waGUgRHVtZXogIDxjaC5kdW1lekBzaXNhLnNhbXN1bmcu
Y29tPgorCisgICAgICAgIFtFRkxdW1dLMl0gZXdrX3BvcHVwX21lbnVfY2xvc2UoKSBkb2VzIG5v
dCB3b3JrIGFzIGludGVuZGVkCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3df
YnVnLmNnaT9pZD0xMTAyMDkKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4K
KworICAgICAgICBld2tfcG9wdXBfbWVudV9jbG9zZSgpIGlzIGNhbGxlZCBieSB0aGUgYnJvd3Nl
ciB0byBub3RpZnkgV2ViS2l0IHRoYXQKKyAgICAgICAgdGhlIHBvcHVwIG1lbnUgd2FzIGNsb3Nl
ZC4gSG93ZXZlciwgdGhlIGltcGxlbWVudGF0aW9uIHdhcyBjYWxsaW5nCisgICAgICAgIEV3a1Zp
ZXc6OmNsb3NlUG9wdXBNZW51KCkgd2hpY2ggd2FzIGFza2luZyB0aGUgYnJvd3NlciB0byBjbG9z
ZSB0aGUKKyAgICAgICAgcG9wdXAgbWVudSB2aWEgYW4gRXZhcyBzbWFydCBmdW5jdGlvbi4gVGhp
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