<?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>47545</bug_id>
          
          <creation_ts>2010-10-12 09:54:29 -0700</creation_ts>
          <short_desc>[Qt] Right clicking on Flash in windowless mode crashes</short_desc>
          <delta_ts>2011-09-29 21:31:23 -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>Plug-ins</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>69123</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Girish Ramakrishnan">girish</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ademar</cc>
    
    <cc>ariya.hidayat</cc>
    
    <cc>robert</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>292976</commentid>
    <comment_count>0</comment_count>
    <who name="Girish Ramakrishnan">girish</who>
    <bug_when>2010-10-12 09:54:29 -0700</bug_when>
    <thetext>Right clicking on Flash in windowless mode crashes on Linux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292987</commentid>
    <comment_count>1</comment_count>
      <attachid>70541</attachid>
    <who name="Girish Ramakrishnan">girish</who>
    <bug_when>2010-10-12 10:16:39 -0700</bug_when>
    <thetext>Created attachment 70541
Ignore right click in windowless mode</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293020</commentid>
    <comment_count>2</comment_count>
    <who name="Ariya Hidayat">ariya.hidayat</who>
    <bug_when>2010-10-12 11:51:56 -0700</bug_when>
    <thetext>Will there be a negative effect, i.e. some plugins will not work?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293039</commentid>
    <comment_count>3</comment_count>
    <who name="Girish Ramakrishnan">girish</who>
    <bug_when>2010-10-12 12:13:48 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Will there be a negative effect, i.e. some plugins will not work?

There will be no negative effect. The quirk is enabled only for Flash (and only on linux) and Flash&apos;s context menu is primarily used for settings. Chrome appears to do the same btw - http://www.communitymx.com/content/source/E5141/wmodetrans.htm. Firefox crashes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293042</commentid>
    <comment_count>4</comment_count>
      <attachid>70541</attachid>
    <who name="Ariya Hidayat">ariya.hidayat</who>
    <bug_when>2010-10-12 12:16:19 -0700</bug_when>
    <thetext>Comment on attachment 70541
Ignore right click in windowless mode

&gt; The quirk is enabled only for Flash (and only on linux) ..

Maybe useful to add this in the ChangeLog?

otherwise, LGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293044</commentid>
    <comment_count>5</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2010-10-12 12:19:42 -0700</bug_when>
    <thetext>I think we should establish why it crashes and, if this change is the only way of fixing it, explain why in the changelog.

To my limited knowledge plugins on Linux are generally windowed so would it be possible to point to a test cases where the crash can be reproduced or to provide a backtrace?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293048</commentid>
    <comment_count>6</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2010-10-12 12:26:05 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Will there be a negative effect, i.e. some plugins will not work?
&gt; 
&gt; http://www.communitymx.com/content/source/E5141/wmodetrans.htm. Firefox crashes.

It doesn&apos;t for me! (Mozilla Firefox 3.6.10)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293051</commentid>
    <comment_count>7</comment_count>
    <who name="Girish Ramakrishnan">girish</who>
    <bug_when>2010-10-12 12:29:21 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; I think we should establish why it crashes and, if this change is the only way of fixing it, explain why in the changelog.
&gt; 
&gt; To my limited knowledge plugins on Linux are generally windowed so would it be possible to point to a test cases where the crash can be reproduced or to provide a backtrace?


The crash is in Flash and there is nothing we can do. gdb output is not meaninful since it just shows some ??? in flash code. In essence, we give Flash the right-click event and it just locks up. strace seems to suggest that it&apos;s waiting in a select() call.

The behavior is easily reproducible - Goto www.communitymx.com/content/source/E5141/wmodetrans.htm. Right click on the ball. Chrome disables right click. Firefox 3.6.10 (64-bit) crashes.

As for windowed/windowless, we force all Flash to windowless mode with QGraphicsWebView. So, right now, if you right click on Flash on QGraphicsWebView, you will crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293052</commentid>
    <comment_count>8</comment_count>
    <who name="Girish Ramakrishnan">girish</who>
    <bug_when>2010-10-12 12:29:58 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; Will there be a negative effect, i.e. some plugins will not work?
&gt; &gt; 
&gt; &gt; http://www.communitymx.com/content/source/E5141/wmodetrans.htm. Firefox crashes.
&gt; 
&gt; It doesn&apos;t for me! (Mozilla Firefox 3.6.10)

32-bit or 64-bit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293063</commentid>
    <comment_count>9</comment_count>
    <who name="Girish Ramakrishnan">girish</who>
    <bug_when>2010-10-12 12:42:34 -0700</bug_when>
    <thetext>Here&apos;s the backtrace.

64-bit linux and Shockwave Flash 10.1 r85

#0  0x00007ffff42702c3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fffdd654cc1 in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#2  0x00007fffdd655f99 in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#3  0x00007fffdd656f39 in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#4  0x00007fffdd65736e in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#5  0x00007fffdd6575d7 in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#6  0x00007fffdd64f5b5 in ?? () from /var/lib/flashplugin-installer/npwrapper.libflashplayer.so
#7  0x00007ffff756fc37 in WebCore::PluginView::dispatchNPEvent(_XEvent&amp;) () from /home/girish/Qt/qtwebkit/WebKitBuild/Release/bin/../lib/libQtWebKit.so.4
#8  0x00007ffff7572279 in WebCore::PluginView::handleMouseEvent(WebCore::MouseEvent*) ()
   from /home/girish/Qt/qtwebkit/WebKitBuild/Release/bin/../lib/libQtWebKit.so.4
#9  0x00007ffff73e0b50 in WebCore::PluginView::handleEvent(WebCore::Event*) () from /home/girish/Qt/qtwebkit/WebKitBuild/Release/bin/../lib/libQtWebKit.so.4
#10 0x00007ffff711bd0f in WebCore::Node::dispatchGenericEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;) ()
   from /home/girish/Qt/qtwebkit/WebKitBuild/Release/bin/../lib/libQtWebKit.so.4
#11 0x00007ffff711c0fa in WebCore::Node::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;) ()
   from /home/girish/Qt/qtwebkit/WebKitBuild/Release/bin/../lib/libQtWebKit.so.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293077</commentid>
    <comment_count>10</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2010-10-12 13:07:12 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; Here&apos;s the backtrace.
&gt; 
&gt; 64-bit linux and Shockwave Flash 10.1 r85
&gt; 

I&apos;m on 32 bit. I wonder does it crash at all there?

Here is the chromium bug:

http://code.google.com/p/chromium/issues/detail?id=42883

The bug is now marked as invalid because they can no longer recreate it. Maybe a recent minor version of flash fixed it. (The last poster gives details)

If we could confirm that the issue is fixed in the version of flash the last poster quotes we could special-case this quirk to a given version.

I agree this is safe to commit but it would be ideal if we could version-control the quirk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293088</commentid>
    <comment_count>11</comment_count>
    <who name="Girish Ramakrishnan">girish</who>
    <bug_when>2010-10-12 13:21:22 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; (In reply to comment #9)
&gt; &gt; Here&apos;s the backtrace.
&gt; &gt; 
&gt; &gt; 64-bit linux and Shockwave Flash 10.1 r85
&gt; &gt; 
&gt; 
&gt; I&apos;m on 32 bit. I wonder does it crash at all there?
&gt; 
&gt; Here is the chromium bug:
&gt; 
&gt; http://code.google.com/p/chromium/issues/detail?id=42883
&gt; 
&gt; The bug is now marked as invalid because they can no longer recreate it. Maybe a recent minor version of flash fixed it. (The last poster gives details)
&gt; 
&gt; If we could confirm that the issue is fixed in the version of flash the last poster quotes we could special-case this quirk to a given version.
&gt; 
&gt; I agree this is safe to commit but it would be ideal if we could version-control the quirk.

Ok, I will go ahead and add the quirk only for 64-bit. 
I will 
a. check and commit 32-bit behavior.
b. check and version control the quirk if it&apos;s fixed in latest flash version in 64-bit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293112</commentid>
    <comment_count>12</comment_count>
    <who name="Girish Ramakrishnan">girish</who>
    <bug_when>2010-10-12 14:12:41 -0700</bug_when>
    <thetext>Fix for 64-bit landed in r69602</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293269</commentid>
    <comment_count>13</comment_count>
    <who name="Girish Ramakrishnan">girish</who>
    <bug_when>2010-10-12 21:51:55 -0700</bug_when>
    <thetext>On further investigation:
1. This bug happens with nspluginwrapper. With the latest Shockwave Flash 10.2 d161 32-bit on my 64-bit linux, I am able to reproduce the problem. So quirk is required for this case.

2. With the latest Shockwave Flash 10.2 d161 64-bit, it does not freeeze. Nothing happens. It shows no context menu either. IMO, let&apos;s just leave the quirk turned on. There&apos;s no major problem with the absence of the context menu AFAIK. (Besides, differentiating between above cases just adds to code complexity).

If anyone is experiencing this problem on 32-bit, please let me know and we can remove the special case for the 64-bit check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>297928</commentid>
    <comment_count>14</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2010-10-22 05:43:33 -0700</bug_when>
    <thetext>Revision r69602 cherry-picked into qtwebkit-2.1 with commit e273313 &lt;http://gitorious.org/webkit/qtwebkit/commit/e273313&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>70541</attachid>
            <date>2010-10-12 10:16:39 -0700</date>
            <delta_ts>2010-10-12 12:16:19 -0700</delta_ts>
            <desc>Ignore right click in windowless mode</desc>
            <filename>ignorerc</filename>
            <type>text/plain</type>
            <size>3335</size>
            <attacher name="Girish Ramakrishnan">girish</attacher>
            
              <data encoding="base64">Y29tbWl0IDkzNzkwZWNhNDdhOTJjNTBmZmNlY2E4MTlhNTk2YWU1NDYyYTE2Y2IKQXV0aG9yOiBH
aXJpc2ggUmFtYWtyaXNobmFuIDxnaXJpc2hAZm9yd2FyZGJpYXMuaW4+CkRhdGU6ICAgVHVlIE9j
dCAxMiAyMjo0NDozNSAyMDEwICswNTMwCgogICAgMjAxMC0xMC0xMiAgR2lyaXNoIFJhbWFrcmlz
aG5hbiAgPGdpcmlzaEBmb3J3YXJkYmlhcy5pbj4KICAgIAogICAgICAgICAgICBSZXZpZXdlZCBi
eSBOT0JPRFkgKE9PUFMhKS4KICAgIAogICAgICAgICAgICBbUXRdIFdpbmRvd2xlc3MgbW9kZSBG
bGFzaC9YMTEgZnJlZXplcyB3aGVuIHJpZ2h0LWNsaWNrIGlzIHNlbnQuCiAgICAKICAgICAgICAg
ICAgQWRkcyBhIG5ldyBxdWlyayBQbHVnaW5RdWlya0lnbm9yZVJpZ2h0Q2xpY2tJbldpbmRvd2xl
c3NNb2RlLgogICAgCiAgICAg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GV4IDVhMzAxNGMuLjFmYzYzYWMgMTAwNjQ0Ci0t
LSBhL1dlYkNvcmUvcGx1Z2lucy9xdC9QbHVnaW5WaWV3UXQuY3BwCisrKyBiL1dlYkNvcmUvcGx1
Z2lucy9xdC9QbHVnaW5WaWV3UXQuY3BwCkBAIC01MzYsNiArNTM2LDkgQEAgdm9pZCBQbHVnaW5W
aWV3OjpoYW5kbGVNb3VzZUV2ZW50KE1vdXNlRXZlbnQqIGV2ZW50KQogICAgIGlmIChtX2lzV2lu
ZG93ZWQpCiAgICAgICAgIHJldHVybjsKIAorICAgIGlmIChldmVudC0+YnV0dG9uKCkgPT0gUmln
aHRCdXR0b24gJiYgbV9wbHVnaW4tPnF1aXJrcygpLmNvbnRhaW5zKFBsdWdpblF1aXJrSWdub3Jl
UmlnaHRDbGlja0luV2luZG93bGVzc01vZGUpKQorICAgICAgICByZXR1cm47CisKICAgICBpZiAo
ZXZlbnQtPnR5cGUoKSA9PSBldmVudE5hbWVzKCkubW91c2Vkb3duRXZlbnQpIHsKICAgICAgICAg
Ly8gR2l2ZSBmb2N1cyB0byB0aGUgcGx1Z2luIG9uIGNsaWNrCiAgICAgICAgIGlmIChQYWdlKiBw
YWdlID0gbV9wYXJlbnRGcmFtZS0+cGFnZSgpKQo=
</data>
<flag name="review"
          id="60401"
          type_id="1"
          status="+"
          setter="ariya.hidayat"
    />
          </attachment>
      

    </bug>

</bugzilla>