<?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>34614</bug_id>
          
          <creation_ts>2010-02-04 13:27:09 -0800</creation_ts>
          <short_desc>[Qt] npapi header leaves XP_WIN flag defined even when __SYMBIAN32__ flag is found</short_desc>
          <delta_ts>2010-06-16 08:55:44 -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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>S60 Emulator</rep_platform>
          <op_sys>S60 3rd edition</op_sys>
          <bug_status>CLOSED</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>35784</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Abhinav Mithal">abhinav.mithal</reporter>
          <assigned_to name="Abhinav Mithal">abhinav.mithal</assigned_to>
          <cc>abhinav.mithal</cc>
    
    <cc>commit-queue</cc>
    
    <cc>hausmann</cc>
    
    <cc>hegde.shashank</cc>
    
    <cc>laszlo.gombos</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>187915</commentid>
    <comment_count>0</comment_count>
    <who name="Abhinav Mithal">abhinav.mithal</who>
    <bug_when>2010-02-04 13:27:09 -0800</bug_when>
    <thetext>When MinGW compiler is used to compile Netscape Plugins on Windows XP with Qt, npapi.h tries to include windows.h. This is because in npapi.h ifdef clause for __SYMBIAN32__ does not undefine XP_WIN and npapi.h eventually ends up trying to include windows.h eventhough user is building for Symbian.

This problem is reproducible with nightly build -r54342


Here is the error seen while trying to compile a sample Netscape Plug-in:
make -s  -r -f &quot;\EPOC32\BUILD\cwrt\plugins\s60\SampleNPQtPlugin\SAMPLENPQTPLUGIN_0XE0AE5E3D\WINSCW\SAMPLENPQTPLUGIN_0XE0AE5E3D.WINSCW&quot; UDEB
samplenpqtplugin.cpp
npapi.h:116: the file &apos;windows.h&apos; cannot be opened

Proposed Solution:

add #undef XP_WIN after #define XP_SYMBIAN 1 in the ifdef clause for __SYMBIAN32__</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208790</commentid>
    <comment_count>1</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2010-04-05 16:36:17 -0700</bug_when>
    <thetext>Abhinav, any update on this ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>209049</commentid>
    <comment_count>2</comment_count>
      <attachid>52639</attachid>
    <who name="Abhinav Mithal">abhinav.mithal</who>
    <bug_when>2010-04-06 07:55:36 -0700</bug_when>
    <thetext>Created attachment 52639
This patch checks for Symbian flag definition before defining XP_WIN flag and takes care of the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>209134</commentid>
    <comment_count>3</comment_count>
      <attachid>52653</attachid>
    <who name="Abhinav Mithal">abhinav.mithal</who>
    <bug_when>2010-04-06 11:28:26 -0700</bug_when>
    <thetext>Created attachment 52653
This is a new patch which has been tested for both winscw and armv5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>209142</commentid>
    <comment_count>4</comment_count>
      <attachid>52653</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2010-04-06 11:42:21 -0700</bug_when>
    <thetext>Comment on attachment 52653
This is a new patch which has been tested for both winscw and armv5

lgtm, thanks. This seems to be a regression after r49987.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>209283</commentid>
    <comment_count>5</comment_count>
      <attachid>52653</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-06 15:32:48 -0700</bug_when>
    <thetext>Comment on attachment 52653
This is a new patch which has been tested for both winscw and armv5

Clearing flags on attachment: 52653

Committed r57170: &lt;http://trac.webkit.org/changeset/57170&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>209284</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-06 15:32:53 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>209509</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-04-07 00:32:38 -0700</bug_when>
    <thetext>Revision r57170 cherry-picked into qtwebkit-2.0 with commit b246edd8056941a91f1ceec2fcd45850d647ef34</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238834</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-06-16 06:33:47 -0700</bug_when>
    <thetext>*** Bug 39708 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238907</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-06-16 08:55:44 -0700</bug_when>
    <thetext>Revision r57170 cherry-picked into qtwebkit-4.6 with aa3f786bdba4dc153620ae7f98e4b0e41770d1d1</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>52639</attachid>
            <date>2010-04-06 07:55:36 -0700</date>
            <delta_ts>2010-04-06 11:28:26 -0700</delta_ts>
            <desc>This patch checks for Symbian flag definition before defining XP_WIN flag and takes care of the issue.</desc>
            <filename>34614.patch</filename>
            <type>text/plain</type>
            <size>1367</size>
            <attacher name="Abhinav Mithal">abhinav.mithal</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09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mcgY29weSkKQEAgLTUwLDE4ICs1MCwxOCBAQAogI2RlZmluZSBKUklFbnYg
IHZvaWQKICNlbmRpZgogCi0jaWZkZWYgX1dJTjMyCi0jICAgIGlmbmRlZiBYUF9XSU4KLSMgICAg
ICAgIGRlZmluZSBYUF9XSU4gMQotIyAgICBlbmRpZiAvKiBYUF9XSU4gKi8KLSNlbmRpZiAvKiBf
V0lOMzIgKi8KLQogI2lmZGVmIF9fU1lNQklBTjMyX18KICMgICBpZm5kZWYgWFBfU1lNQklBTgog
IyAgICAgICBkZWZpbmUgWFBfU1lNQklBTiAxCiAjICAgZW5kaWYKICNlbmRpZiAgLyogX19TWU1C
SUFOMzJfXyAqLwogCisjaWYgZGVmaW5lZChfV0lOMzIpICYmICFkZWZpbmVkKFhQX1NZTUJJQU4p
CisjICAgIGlmbmRlZiBYUF9XSU4KKyMgICAgICAgIGRlZmluZSBYUF9XSU4gMQorIyAgICBlbmRp
ZiAvKiBYUF9XSU4gKi8KKyNlbmRpZiAvKiBfV0lOMzIgKi8KKwogI2lmZGVmIF9fTVdFUktTX18K
ICMgICAgZGVmaW5lIF9kZWNsc3BlYyBfX2RlY2xzcGVjCiAjICAgIGlmZGVmIG1hY2ludG9zaAo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>52653</attachid>
            <date>2010-04-06 11:28:26 -0700</date>
            <delta_ts>2010-04-06 15:32:48 -0700</delta_ts>
            <desc>This is a new patch which has been tested for both winscw and armv5</desc>
            <filename>34614.patch</filename>
            <type>text/plain</type>
            <size>1059</size>
            <attacher name="Abhinav Mithal">abhinav.mithal</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA1NzEyNSkKKysrIFd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GVmaW5lZChfV0lOMzIpICYmICFkZWZp
bmVkKF9fU1lNQklBTjMyX18pCiAjICAgIGlmbmRlZiBYUF9XSU4KICMgICAgICAgIGRlZmluZSBY
UF9XSU4gMQogIyAgICBlbmRpZiAvKiBYUF9XSU4gKi8K
</data>

          </attachment>
      

    </bug>

</bugzilla>