<?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>34519</bug_id>
          
          <creation_ts>2010-02-03 04:17:58 -0800</creation_ts>
          <short_desc>[Qt] Applications using QtWebKit fail to build if Qt was built with -no-script</short_desc>
          <delta_ts>2011-04-19 05:15:29 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>52469</dup_id>
          
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bernhard Rosenkraenzer">bero</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>eric</cc>
    
    <cc>hausmann</cc>
    
    <cc>kent.hansen</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>187311</commentid>
    <comment_count>0</comment_count>
    <who name="Bernhard Rosenkraenzer">bero</who>
    <bug_when>2010-02-03 04:17:58 -0800</bug_when>
    <thetext>If Qt was built with -no-script, applications using QtWebKit (which does work with -no-script) fail to build because qwebframe.h unconditionally does
#include &lt;QtScript/qscriptengine.h&gt;
(which doesn&apos;t exist in a -no-script build).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>187313</commentid>
    <comment_count>1</comment_count>
      <attachid>48013</attachid>
    <who name="Bernhard Rosenkraenzer">bero</who>
    <bug_when>2010-02-03 04:29:51 -0800</bug_when>
    <thetext>Created attachment 48013
Fix

Attaching fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>187320</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2010-02-03 05:12:13 -0800</bug_when>
    <thetext>Attachment 48013 did not build on qt:
Build output: http://webkit-commit-queue.appspot.com/results/232341</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>187468</commentid>
    <comment_count>3</comment_count>
    <who name="Bernhard Rosenkraenzer">bero</who>
    <bug_when>2010-02-03 12:22:21 -0800</bug_when>
    <thetext>Not sure what&apos;s causing the build bot failure... The command line from its report shows -DBUILD_WEBKIT is on the command line, and the modification is in

#if !defined(QT_NO_SCRIPT) &amp;&amp; !defined(BUILD_WEBKIT)

I only tested the patch for building inside of Qt rather than the separate webkit tree though</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>187535</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-02-03 16:18:07 -0800</bug_when>
    <thetext>This looks like it fails to build on the Qt Early Warning System (EWS) builder.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>187706</commentid>
    <comment_count>5</comment_count>
      <attachid>48013</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-02-04 02:49:29 -0800</bug_when>
    <thetext>Comment on attachment 48013
Fix


&gt; +#if !defined(QT_NO_SCRIPT) &amp;&amp; !defined(BUILD_WEBKIT)
&gt;      void addToJavaScriptWindowObject(const QString &amp;name, QObject *object, QScriptEngine::ValueOwnership ownership);
&gt; +#endif

Why the check for BUILD_WEBKIT?

Also the Qt EWS bot indicates that this breaks the build because there&apos;s the equivalent #ifdef missing in qwebframe.cpp.

(Yay for the EWS :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>187710</commentid>
    <comment_count>6</comment_count>
    <who name="Bernhard Rosenkraenzer">bero</who>
    <bug_when>2010-02-04 03:03:03 -0800</bug_when>
    <thetext>The check for BUILD_WEBKIT is there because at build time (still talking about building QtWebKit inside the Qt tree, not about building it in the standalone tree), QtScript includes are available and the code can actually be built (that&apos;s also the reason for the absence of an equivalent ifdef in qwebframe.cpp -- at build time, QScriptEngine::ValueOwnership is availableand therefore it can be built).

The thought behind allowing the 3-arg version of addToJavaScriptWindowObject to be built into the library even with -no-script was to try to preserve binary compatibility between versions built with -no-script and those built without -no-script -- but given the function is not very likely to actually work in -no-script mode, that may have been overly cautious.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198014</commentid>
    <comment_count>7</comment_count>
    <who name="Kent Hansen">kent.hansen</who>
    <bug_when>2010-03-10 06:05:15 -0800</bug_when>
    <thetext>*** Bug 33104 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>227462</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-05-18 13:21:31 -0700</bug_when>
    <thetext>No update on this bug for a while. This isn&apos;t blocking the release anymore, but any patches will be welcomed for inclusion in the release branch :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>342312</commentid>
    <comment_count>9</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-01-30 09:06:55 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 52469 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>48013</attachid>
            <date>2010-02-03 04:29:51 -0800</date>
            <delta_ts>2010-06-11 12:48:17 -0700</delta_ts>
            <desc>Fix</desc>
            <filename>WebKit-bug34519.patch</filename>
            <type>text/plain</type>
            <size>1461</size>
            <attacher name="Bernhard Rosenkraenzer">bero</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdC9xdC9BcGk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3duZXJzaGlwKTsKKyNlbmRpZgogICAgIFFTdHJpbmcgdG9IdG1s
KCkgY29uc3Q7CiAgICAgUVN0cmluZyB0b1BsYWluVGV4dCgpIGNvbnN0OwogICAgIFFTdHJpbmcg
cmVuZGVyVHJlZUR1bXAoKSBjb25zdDsKZGlmZiAtLWdpdCBhL1dlYktpdC9xdC9DaGFuZ2VMb2cg
Yi9XZWJLaXQvcXQvQ2hhbmdlTG9nCmluZGV4IDYwNDAzNzguLmRiZTZiNGIgMTAwNjQ0Ci0tLSBh
L1dlYktpdC9xdC9DaGFuZ2VMb2cKKysrIGIvV2ViS2l0L3F0L0NoYW5nZUxvZwpAQCAtMSwzICsx
LDEyIEBACisyMDEwLTAyLTAzICBCZXJuaGFyZCBSb3NlbmtyYWVuemVyICA8YnJAYmxhbmtwYWdl
LmNoPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIFtR
dF0gQXBwbGljYXRpb25zIHVzaW5nIFF0V2ViS2l0IGZhaWwgdG8gYnVpbGQgaWYgUXQgd2FzIGJ1
aWx0IHdpdGggLW5vLXNjcmlwdAorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93
X2J1Zy5jZ2k/aWQ9MzQ1MTkKKworICAgICAgICAqIEFwaS9xd2ViZnJhbWUuaDoKKwogMjAxMC0w
Mi0wMiAgS2VubmV0aCBSb2hkZSBDaHJpc3RpYW5zZW4gIDxrZW5uZXRoQHdlYmtpdC5vcmc+CiAK
ICAgICAgICAgUmV2aWV3ZWQgYnkgQXJpeWEgSGlkYXlhdC4K
</data>
<flag name="review"
          id="30623"
          type_id="1"
          status="-"
          setter="hausmann"
    />
    <flag name="commit-queue"
          id="30624"
          type_id="3"
          status="-"
          setter="hausmann"
    />
          </attachment>
      

    </bug>

</bugzilla>