<?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>30706</bug_id>
          
          <creation_ts>2009-10-22 22:00:25 -0700</creation_ts>
          <short_desc>[Qt] Plugins: Use the window&apos;s winId() for NPNVnetscapeWindow</short_desc>
          <delta_ts>2009-10-23 12:02:31 -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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Girish Ramakrishnan">girish</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>zecke</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>157105</commentid>
    <comment_count>0</comment_count>
    <who name="Girish Ramakrishnan">girish</who>
    <bug_when>2009-10-22 22:00:25 -0700</bug_when>
    <thetext>Patch follows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157106</commentid>
    <comment_count>1</comment_count>
      <attachid>41713</attachid>
    <who name="Girish Ramakrishnan">girish</who>
    <bug_when>2009-10-22 22:07:08 -0700</bug_when>
    <thetext>Created attachment 41713
[Qt] Plugins : Use window&apos;s winId() instead of the widget&apos;s.


As per, https://developer.mozilla.org/en/NPN_GetValue
NPNVnetscapeWindow on Unix/X11: &quot;Gets the browser toplevel window in which the
plug-in is displayed; returns Window&quot;.

The issue was found because NPNVNetscapeWindow winId() ends up creating
a native window resulting in flicker.
---
 WebCore/plugins/qt/PluginViewQt.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157107</commentid>
    <comment_count>2</comment_count>
      <attachid>41714</attachid>
    <who name="Girish Ramakrishnan">girish</who>
    <bug_when>2009-10-22 22:12:46 -0700</bug_when>
    <thetext>Created attachment 41714
[Qt] Plugins : Use window&apos;s winId() instead of the widget&apos;s.


As per, https://developer.mozilla.org/en/NPN_GetValue
NPNVnetscapeWindow on Unix/X11: &quot;Gets the browser toplevel window in which the
plug-in is displayed; returns Window&quot;.

The issue was found because NPNVNetscapeWindow winId() ends up creating
a native window resulting in flicker.
---
 WebCore/ChangeLog                   |   18 ++++++++++++++++++
 WebCore/plugins/qt/PluginViewQt.cpp |    2 +-
 2 files changed, 19 insertions(+), 1 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157108</commentid>
    <comment_count>3</comment_count>
      <attachid>41714</attachid>
    <who name="Girish Ramakrishnan">girish</who>
    <bug_when>2009-10-22 22:13:50 -0700</bug_when>
    <thetext>Comment on attachment 41714
[Qt] Plugins : Use window&apos;s winId() instead of the widget&apos;s.

Forgot ChangeLog in other patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157109</commentid>
    <comment_count>4</comment_count>
      <attachid>41714</attachid>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2009-10-22 22:43:27 -0700</bug_when>
    <thetext>Comment on attachment 41714
[Qt] Plugins : Use window&apos;s winId() instead of the widget&apos;s.

Okay, I hope we don&apos;t need a NULL check and Gtk/X11 seems to do the right thing too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157130</commentid>
    <comment_count>5</comment_count>
      <attachid>41714</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-10-23 02:50:15 -0700</bug_when>
    <thetext>Comment on attachment 41714
[Qt] Plugins : Use window&apos;s winId() instead of the widget&apos;s.

Rejecting patch 41714 from commit-queue.

Failed to run &quot;[&apos;WebKitTools/Scripts/run-webkit-tests&apos;, &apos;--no-launch-safari&apos;, &apos;--quiet&apos;, &apos;--exit-after-n-failures=1&apos;]&quot; exit_code: 1
Running build-dumprendertree
Running tests from /Users/eseidel/Projects/CommitQueue/LayoutTests
Testing 11506 test cases.
fast/media/mq-transform-02.html -&gt; failed

Exiting early after 1 failures. 7441 tests run.
135.99s total testing time

7440 test cases (99%) succeeded
1 test case (&lt;1%) had incorrect layout
3 test cases (&lt;1%) had stderr output</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157140</commentid>
    <comment_count>6</comment_count>
      <attachid>41714</attachid>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2009-10-23 03:09:09 -0700</bug_when>
    <thetext>Comment on attachment 41714
[Qt] Plugins : Use window&apos;s winId() instead of the widget&apos;s.

The failing test must be unrelated to this change. I hope it is appropriate to try again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157141</commentid>
    <comment_count>7</comment_count>
      <attachid>41714</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-10-23 03:13:52 -0700</bug_when>
    <thetext>Comment on attachment 41714
[Qt] Plugins : Use window&apos;s winId() instead of the widget&apos;s.

Rejecting patch 41714 from commit-queue.

Failed to run &quot;[&apos;WebKitTools/Scripts/run-webkit-tests&apos;, &apos;--no-launch-safari&apos;, &apos;--quiet&apos;, &apos;--exit-after-n-failures=1&apos;]&quot; exit_code: 1
Running build-dumprendertree
Running tests from /Users/eseidel/Projects/CommitQueue/LayoutTests
Testing 11506 test cases.
fast/media/mq-transform-02.html -&gt; failed

Exiting early after 1 failures. 7441 tests run.
134.54s total testing time

7440 test cases (99%) succeeded
1 test case (&lt;1%) had incorrect layout
3 test cases (&lt;1%) had stderr output</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157145</commentid>
    <comment_count>8</comment_count>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2009-10-23 05:04:21 -0700</bug_when>
    <thetext>Landed in r49975.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157233</commentid>
    <comment_count>9</comment_count>
      <attachid>41714</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-10-23 12:02:31 -0700</bug_when>
    <thetext>Comment on attachment 41714
[Qt] Plugins : Use window&apos;s winId() instead of the widget&apos;s.

Sorry about the commit-queue trouble.  Should work fine now.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>41713</attachid>
            <date>2009-10-22 22:07:08 -0700</date>
            <delta_ts>2009-10-22 22:14:09 -0700</delta_ts>
            <desc>[Qt] Plugins : Use window&apos;s winId() instead of the widget&apos;s.</desc>
            <filename>-Qt-Plugins-Use-window-s-winId-instead-of-the-widget-s..patch</filename>
            <type>text/plain</type>
            <size>689</size>
            <attacher name="Girish Ramakrishnan">girish</attacher>
            
              <data encoding="base64">MTk0OWNiZjNmZjc2YWU1ZTJiMWM0ZDhjNmZiMjUzNDZiNWE0ZTQ4NQpkaWZmIC0tZ2l0IGEvV2Vi
Q29yZS9wbHVnaW5zL3F0L1BsdWdpblZpZXdRdC5jcHAgYi9XZWJDb3JlL3BsdWdpbnMvcXQvUGx1
Z2luVmlld1F0LmNwcAppbmRleCAyODYzN2ExLi41MWVjZGI5IDEwMDY0NAotLS0gYS9XZWJDb3Jl
L3BsdWdpbnMvcXQvUGx1Z2luVmlld1F0LmNwcAorKysgYi9XZWJDb3JlL3BsdWdpbnMvcXQvUGx1
Z2luVmlld1F0LmNwcApAQCAtNjMwLDcgKzYzMCw3IEBAIE5QRXJyb3IgUGx1Z2luVmlldzo6Z2V0
VmFsdWUoTlBOVmFyaWFibGUgdmFyaWFibGUsIHZvaWQqIHZhbHVlKQogICAgIGNhc2UgTlBOVm5l
dHNjYXBlV2luZG93OiB7CiAgICAgICAgIHZvaWQqIHcgPSByZWludGVycHJldF9jYXN0PHZvaWQq
Pih2YWx1ZSk7CiAgICAgICAgIFFXZWJQYWdlQ2xpZW50KiBjbGllbnQgPSBtX3BhcmVudEZyYW1l
LT52aWV3KCktPmhvc3RXaW5kb3coKS0+cGxhdGZvcm1QYWdlQ2xpZW50KCk7Ci0gICAgICAgICoo
KFhJRCAqKXcpID0gY2xpZW50ID8gY2xpZW50LT5vd25lcldpZGdldCgpLT53aW5JZCgpIDogMDsK
KyAgICAgICAgKigoWElEICopdykgPSBjbGllbnQgPyBjbGllbnQtPm93bmVyV2lkZ2V0KCktPndp
bmRvdygpLT53aW5JZCgpIDogMDsKICAgICAgICAgcmV0dXJuIE5QRVJSX05PX0VSUk9SOwogICAg
IH0KIAo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>41714</attachid>
            <date>2009-10-22 22:12:46 -0700</date>
            <delta_ts>2009-10-23 12:02:31 -0700</delta_ts>
            <desc>[Qt] Plugins : Use window&apos;s winId() instead of the widget&apos;s.</desc>
            <filename>-Qt-Plugins-Use-window-s-winId-instead-of-the-widget-s..patch</filename>
            <type>text/plain</type>
            <size>1579</size>
            <attacher name="Girish Ramakrishnan">girish</attacher>
            
              <data encoding="base64">NjA5MzQ2ZmFhYjk4MTU2Mjc1YWJiNjZkMjEyMTk3MjcxZjI2OGU2ZQpkaWZmIC0tZ2l0IGEvV2Vi
Q29yZS9DaGFuZ2VMb2cgYi9XZWJDb3JlL0NoYW5nZUxvZwppbmRleCA5YmY5MWI2Li41ODYxNjMw
IDEwMDY0NAotLS0gYS9XZWJDb3JlL0NoYW5nZUxvZworKysgYi9XZWJDb3JlL0NoYW5nZUxvZwpA
QCAtMSwzICsxLDIxIEBACisyMDA5LTEwLTIyICBHaXJpc2ggUmFtYWtyaXNobmFuICA8Z2lyaXNo
QGZvcndhcmRiaWFzLmluPgorCisgICAgICAgIFJldmlld2Vk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2lucy9xdC9QbHVnaW5WaWV3
UXQuY3BwCisrKyBiL1dlYkNvcmUvcGx1Z2lucy9xdC9QbHVnaW5WaWV3UXQuY3BwCkBAIC02MzAs
NyArNjMwLDcgQEAgTlBFcnJvciBQbHVnaW5WaWV3OjpnZXRWYWx1ZShOUE5WYXJpYWJsZSB2YXJp
YWJsZSwgdm9pZCogdmFsdWUpCiAgICAgY2FzZSBOUE5WbmV0c2NhcGVXaW5kb3c6IHsKICAgICAg
ICAgdm9pZCogdyA9IHJlaW50ZXJwcmV0X2Nhc3Q8dm9pZCo+KHZhbHVlKTsKICAgICAgICAgUVdl
YlBhZ2VDbGllbnQqIGNsaWVudCA9IG1fcGFyZW50RnJhbWUtPnZpZXcoKS0+aG9zdFdpbmRvdygp
LT5wbGF0Zm9ybVBhZ2VDbGllbnQoKTsKLSAgICAgICAgKigoWElEICopdykgPSBjbGllbnQgPyBj
bGllbnQtPm93bmVyV2lkZ2V0KCktPndpbklkKCkgOiAwOworICAgICAgICAqKChYSUQgKil3KSA9
IGNsaWVudCA/IGNsaWVudC0+b3duZXJXaWRnZXQoKS0+d2luZG93KCktPndpbklkKCkgOiAwOwog
ICAgICAgICByZXR1cm4gTlBFUlJfTk9fRVJST1I7CiAgICAgfQogCg==
</data>
<flag name="review"
          id="23157"
          type_id="1"
          status="+"
          setter="zecke"
    />
    <flag name="commit-queue"
          id="23158"
          type_id="3"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>