<?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>94849</bug_id>
          
          <creation_ts>2012-08-23 14:14:57 -0700</creation_ts>
          <short_desc>[GTK] Compiling with --disable-blob fails with undefined symbol</short_desc>
          <delta_ts>2015-01-02 20:23:11 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Philip Chimento">philip.chimento</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>pnormand</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>703349</commentid>
    <comment_count>0</comment_count>
      <attachid>160238</attachid>
    <who name="Philip Chimento">philip.chimento</who>
    <bug_when>2012-08-23 14:14:57 -0700</bug_when>
    <thetext>Created attachment 160238
Patch that fixes the problem

Configuring with --disable-blob causes make to fail with an undefined symbol. Here is a patch (based on WebKitGTK 1.8.3) that fixes it.

(This would seem to imply that bug #44867 has been fixed somewhere along the line.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>703355</commentid>
    <comment_count>1</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-08-23 14:18:00 -0700</bug_when>
    <thetext>Attachment 160238 did not pass style-queue:

Failed to run &quot;[&apos;Tools/Scripts/check-webkit-style&apos;, &apos;--diff-files&apos;]&quot; exit_code: 1
Total errors found: 0 in 0 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>704047</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-08-24 06:24:35 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 94919 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>704108</commentid>
    <comment_count>3</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2012-08-24 08:04:59 -0700</bug_when>
    <thetext>This is not really the same issue than bug 94919, but I don&apos;t think that&apos;s the right patch either. Basically the method should be a non-op when the feature is disabled, so move the #ifdefs into it I&apos;d say.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>704112</commentid>
    <comment_count>4</comment_count>
      <attachid>160238</attachid>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2012-08-24 08:11:02 -0700</bug_when>
    <thetext>Comment on attachment 160238
Patch that fixes the problem

r- per previous comment. Basically I think this should take into account the ENABLE features in WebKit (see how the bindings are generated), but the compat. method should always be present to not break API (and thus, the WebKitDOMBlob type should always be present too). I believe this is how we do the other stuff.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>704664</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Chimento">philip.chimento</who>
    <bug_when>2012-08-25 00:35:56 -0700</bug_when>
    <thetext>So you&apos;re saying that rather than simply moving the #ifdef&apos;s inside the function body, I should make sure a stub WebKitDOMBlob type is defined? Or simply remove the #ifdef&apos;s from WebKitDOMBlob?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>704674</commentid>
    <comment_count>6</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2012-08-25 03:09:28 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; So you&apos;re saying that rather than simply moving the #ifdef&apos;s inside the function body, I should make sure a stub WebKitDOMBlob type is defined? Or simply remove the #ifdef&apos;s from WebKitDOMBlob?

I&apos;m saying that I think the right fix is to change the WebKitDOMBlob creation so that it respects the ENABLE(BLOB) flags, like other GObject DOM types do (see for instance WebKitDOMTimeRanges). We cannot remove the methods themselves randomly, otherwise we&apos;d break API. If we do that I think the code in WebKitDOMCustom would probably just remain as is, being a no-op.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>704681</commentid>
    <comment_count>7</comment_count>
      <attachid>160562</attachid>
    <who name="Philip Chimento">philip.chimento</who>
    <bug_when>2012-08-25 04:50:13 -0700</bug_when>
    <thetext>Created attachment 160562
Sample patch

So, you&apos;re saying all it should take is a Conditional=BLOB in Blob.idl, like the attached patch (WARNING- not tested, don&apos;t commit.) Does that mean I should remove the #if !ENABLE(BLOB) around slice() and webkitSlice() in the IDL file?

Is this the way I should be tackling the related bugs I filed, #94851 and #94853?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1058500</commentid>
    <comment_count>8</comment_count>
    <who name="Philip Chimento">philip.chimento</who>
    <bug_when>2015-01-02 20:23:11 -0800</bug_when>
    <thetext>I don&apos;t believe this is a problem anymore.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>160238</attachid>
            <date>2012-08-23 14:14:57 -0700</date>
            <delta_ts>2012-08-25 04:50:13 -0700</delta_ts>
            <desc>Patch that fixes the problem</desc>
            <filename>webkit-1.8-enable-blob.patch</filename>
            <type>text/plain</type>
            <size>665</size>
            <attacher name="Philip Chimento">philip.chimento</attacher>
            
              <data encoding="base64">Q29tcGlsaW5nIHdpdGggLS1kaXNhYmxlLWJsb2IgaXMgYnJva2VuOyB0aGlzIGZpeGVzIGl0LgoK
LS0tIGEvU291cmNlL1dlYkNvcmUvYmluZGluZ3MvZ29iamVjdC9XZWJLaXRET01DdXN0b20uY3Bw
CTIwMTItMDEtMDYgMTk6MjQ6MTEuMDAwMDAwMDAwICswMTAwCisrKyBiL1NvdXJjZS9XZWJDb3Jl
L2JpbmRpbmdzL2dvYmplY3QvV2ViS2l0RG9tQ3VzdG9tLmNwcAkyMDEyLTAxLTA2IDE5OjI0OjE3
LjAwMDAwMDAwMCArMDEwMApAQCAtNDIsMTIgKzQyLDE0IEBACiAgICAgcmV0dXJuIGNvcmUoaW5w
dXQpLT5sYXN0Q2hhbmdlV2FzVXNlckVkaXQoKTsKIH0KIAorI2lmZGVmIEVOQUJMRV9CTE9CCiAv
KiBDb21wYXRpYmlsaXR5ICovCiBXZWJLaXRET01CbG9iKgogd2Via2l0X2RvbV9ibG9iX3NsaWNl
KFdlYktpdERPTUJsb2IqIHNlbGYsIGdpbnQ2NCBzdGFydCwgZ2ludDY0IGVuZCwgY29uc3QgZ2No
YXIqIGNvbnRlbnRfdHlwZSkKIHsKICAgICByZXR1cm4gd2Via2l0X2RvbV9ibG9iX3dlYmtpdF9z
bGljZShzZWxmLCBzdGFydCwgZW5kLCBjb250ZW50X3R5cGUpOwogfQorI2VuZGlmIEVOQUJMRV9C
TE9CCiAKIHZvaWQKIHdlYmtpdF9kb21faHRtbF9mb3JtX2VsZW1lbnRfZGlzcGF0Y2hfZm9ybV9j
aGFuZ2UoV2ViS2l0RE9NSFRNTEZvcm1FbGVtZW50KiBzZWxmKQo=
</data>
<flag name="review"
          id="170768"
          type_id="1"
          status="-"
          setter="xan.lopez"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>160562</attachid>
            <date>2012-08-25 04:50:13 -0700</date>
            <delta_ts>2012-08-25 04:50:13 -0700</delta_ts>
            <desc>Sample patch</desc>
            <filename>0001-Fix-compiling-with-disable-blob.patch</filename>
            <type>text/plain</type>
            <size>677</size>
            <attacher name="Philip Chimento">philip.chimento</attacher>
            
              <data encoding="base64">RnJvbSAyZjFkNDVmNGNjZTk4NWI5Nzg5ZjgwN2RlYjEwODk5ZTc0YWE2ZDI4IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQaGlsaXAgQ2hpbWVudG8gPHBoaWxpcC5jaGltZW50b0BnbWFp
bC5jb20+CkRhdGU6IFNhdCwgMjUgQXVnIDIwMTIgMTM6NDQ6MzkgKzAyMDAKU3ViamVjdDogW1BB
VENIXSBGaXggY29tcGlsaW5nIHdpdGggLS1kaXNhYmxlLWJsb2IKCi0tLQogU291cmNlL1dlYkNv
cmUvZmlsZWFwaS9CbG9iLmlkbCB8ICAgIDEgKwogMSBmaWxlcyBjaGFuZ2VkLCAxIGluc2VydGlv
bnMoKyksIDAgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvU291cmNlL1dlYkNvcmUvZmlsZWFw
aS9CbG9iLmlkbCBiL1NvdXJjZS9XZWJDb3JlL2ZpbGVhcGkvQmxvYi5pZGwKaW5kZXggYjQ0ZWI0
My4uYzdhNmYzNWYgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJDb3JlL2ZpbGVhcGkvQmxvYi5pZGwK
KysrIGIvU291cmNlL1dlYkNvcmUvZmlsZWFwaS9CbG9iLmlkbApAQCAtMzEsNiArMzEsNyBAQAog
bW9kdWxlIGh0bWwgewogCiAgICAgaW50ZXJmYWNlIFsKKyAgICAgICAgQ29uZGl0aW9uYWw9QkxP
QiwKICAgICAgICAgSlNHZW5lcmF0ZUlzUmVhY2hhYmxlPUltcGwsCiAgICAgICAgIEN1c3RvbVRv
SlNPYmplY3QsCiAgICAgICAgIEpTTm9TdGF0aWNUYWJsZXMsCi0tIAoxLjcuMy4yCgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>