<?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>53420</bug_id>
          
          <creation_ts>2011-01-31 05:49:11 -0800</creation_ts>
          <short_desc>[Qt] PluginViewQt.cpp not compiling with ENABLE_NETSCAPE_PLUGIN_API=1</short_desc>
          <delta_ts>2011-03-01 15:26:15 -0800</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>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>36702</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Oleg Romashin (:romaxa)">romaxa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>robert</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>342542</commentid>
    <comment_count>0</comment_count>
    <who name="Oleg Romashin (:romaxa)">romaxa</who>
    <bug_when>2011-01-31 05:49:11 -0800</bug_when>
    <thetext>Attempt to compile Webkit2 Qt with plugins enabled, it fails:
../../../WebCore/plugins/qt/PluginViewQt.cpp:69:24: error: qwebpage_p.h: No such file or directory
../../../WebCore/plugins/qt/PluginViewQt.cpp: In member function &apos;void WebCore::PluginView::updatePluginWidget()&apos;:
../../../WebCore/plugins/qt/PluginViewQt.cpp:167: error: &apos;QWebPagePrivate&apos; has not been declared
../../../WebCore/plugins/qt/PluginViewQt.cpp: In function &apos;void WebCore::setXKeyEventSpecificFields(XEvent*, WebCore::KeyboardEvent*)&apos;:
../../../WebCore/plugins/qt/PluginViewQt.cpp:422: error: &apos;QWebPagePrivate&apos; has not been declared

Sounds like it is not very good idea to use WebKit API&apos;s from WebCore module.

Change has been introduced in 
http://trac.webkit.org/changeset/61505
https://bugs.webkit.org/show_bug.cgi?id=36702</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>342543</commentid>
    <comment_count>1</comment_count>
    <who name="Oleg Romashin (:romaxa)">romaxa</who>
    <bug_when>2011-01-31 05:55:23 -0800</bug_when>
    <thetext>Simon suggested to move &quot;drtRun&quot; into WebCore... but I&apos;m not sure, because all other ports are doing exactly the same checks as Qt port, but not drtRun check. 

Interesting if bug 36702 was reproducible on Qt port only or on other platform also..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>342725</commentid>
    <comment_count>2</comment_count>
      <attachid>80668</attachid>
    <who name="Oleg Romashin (:romaxa)">romaxa</who>
    <bug_when>2011-01-31 11:58:26 -0800</bug_when>
    <thetext>Created attachment 80668
Fix Qt Plugins compilation

Not, sure if we can do that, but would be nice to know why it is needed in Qt port, and not in other ports like Gtk...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>342730</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2011-01-31 12:09:52 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Created an attachment (id=80668) [details]
&gt; Fix Qt Plugins compilation
&gt; 
&gt; Not, sure if we can do that, but would be nice to know why it is needed in Qt port, and not in other ports like Gtk...

    // (ii) if we are running layout tests from DRT, paint() won&apos;t ever get called
    // so we need to call setNPWindowIfNeeded() if window geometry has changed
    if (!m_windowRect.intersects(frameView-&gt;frameRect())
        || (QWebPagePrivate::drtRun &amp;&amp; platformPluginWidget() &amp;&amp; (m_windowRect != oldWindowRect || m_clipRect != oldClipRect)))
        setNPWindowIfNeeded();

I believe Qt layout tests are run headless, Gtk tests are not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>343088</commentid>
    <comment_count>4</comment_count>
      <attachid>80668</attachid>
    <who name="Oleg Romashin (:romaxa)">romaxa</who>
    <bug_when>2011-02-01 01:53:35 -0800</bug_when>
    <thetext>Comment on attachment 80668
Fix Qt Plugins compilation

Fail to apply</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>360302</commentid>
    <comment_count>5</comment_count>
    <who name="Oleg Romashin (:romaxa)">romaxa</who>
    <bug_when>2011-03-01 15:26:15 -0800</bug_when>
    <thetext>Problem is not reproducible on webkit trunk</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>80668</attachid>
            <date>2011-01-31 11:58:26 -0800</date>
            <delta_ts>2011-02-01 01:53:52 -0800</delta_ts>
            <desc>Fix Qt Plugins compilation</desc>
            <filename>try_it.diff</filename>
            <type>text/plain</type>
            <size>1856</size>
            <attacher name="Oleg Romashin (:romaxa)">romaxa</attacher>
            
              <data encoding="base64">RnJvbSA3ODViN2JhYmJkM2QyYmZmNTBhZTdmMzllN2I2YzI3ZGYzNDhkNDYzIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBPbGVnIFJvbWFzaGluIDxvbGVnLnJvbWFzaGluQG5va2lhLmNv
bT4KRGF0ZTogTW9uLCAzMSBKYW4gMjAxMSAyMTo0OToxNiArMDIwMApTdWJqZWN0OiBbUEFUQ0hd
IEF0dGVtcHQgdG8gd3IgZml4IGJ1ZyA1MzQyMAoKLS0tCiBXZWJDb3JlL3BsdWdpbnMvcXQvUGx1
Z2luVmlld1F0LmNwcCB8ICAgIDUgKystLS0KIDEgZmlsZXMgY2hhbmdlZCwgMiBpbnNlcnRpb25z
KCspLCAzIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL1dlYkNvcmUvcGx1Z2luc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