<?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>24790</bug_id>
          
          <creation_ts>2009-03-24 17:09:16 -0700</creation_ts>
          <short_desc>[GTK] webkitsoupauthdialog.h lacks WEBKIT_API before function</short_desc>
          <delta_ts>2009-03-28 14:18:54 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Cosimo Cecchi">cosimoc</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gustavo</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>115084</commentid>
    <comment_count>0</comment_count>
    <who name="Cosimo Cecchi">cosimoc</who>
    <bug_when>2009-03-24 17:09:16 -0700</bug_when>
    <thetext>SSIA; this causes e.g. gir-repository not to find webkit_soup_auth_dialog_get_type() in the libwebkit-1.0.so file, breaking the build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115085</commentid>
    <comment_count>1</comment_count>
      <attachid>28918</attachid>
    <who name="Cosimo Cecchi">cosimoc</who>
    <bug_when>2009-03-24 17:10:09 -0700</bug_when>
    <thetext>Created attachment 28918
proposed fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115116</commentid>
    <comment_count>2</comment_count>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2009-03-25 00:25:00 -0700</bug_when>
    <thetext>SSIA? Could you provide a log of the build breakage?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115121</commentid>
    <comment_count>3</comment_count>
    <who name="Cosimo Cecchi">cosimoc</who>
    <bug_when>2009-03-25 03:19:34 -0700</bug_when>
    <thetext>Subject Says It All :)
It&apos;s not the WebKit build itself that breaks; the issue is that the gobject-introspection scanner won&apos;t find the function while parsing the .h files, as it&apos;s defined with the wrong visibility (AFAICS that&apos;s what WEBKIT_API does).
If you really need it, I can provide you with the failed build log for gir-repository, but I would need to recompile WebKit without this patch and I can&apos;t do it right now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115132</commentid>
    <comment_count>4</comment_count>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2009-03-25 04:19:52 -0700</bug_when>
    <thetext>You assume I know what SSIA and gir are... now I know it is related to gobject introspection but more input would be welcome... this dialog is private... it shouldn&apos;t exist/be visible... so how does this &quot;error&quot; come into existence?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115138</commentid>
    <comment_count>5</comment_count>
    <who name="Cosimo Cecchi">cosimoc</who>
    <bug_when>2009-03-25 06:53:33 -0700</bug_when>
    <thetext>gir-repository is a scanner which grabs all the public API inside the installed *.h files from a library and generates a .typelib file containing all the introspection information to be used by the gobject-introspection system.
This error arises when you have a function which is declared as public inside the .h file (webkitauthsoupdialog.h in this case) but doesn&apos;t have the right visibility setting inside the shared object.
We can solve this in two ways
- adding the right visibility to the function (which is what this patch does)
- removing the header from the installed webkit API files which, if the dialog is really private and not meant to be created by some third party client other than WebKit itself, seems a better solution to me. In this case, I guess all we have to do is to remove the header from the relevant section inside GNUMakefile.am

I hope this somewhat clarifies the issue, sorry for not having been clearer in the first place.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115298</commentid>
    <comment_count>6</comment_count>
    <who name="Holger Freyther">zecke</who>
    <bug_when>2009-03-25 22:38:53 -0700</bug_when>
    <thetext>Thanks for the clarification. Now the question is how to proceed. We have bug #24598 which wants to make the dialog type public as well. I think for gir the best way would be to make the a noinst header.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115698</commentid>
    <comment_count>7</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2009-03-28 14:05:02 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Thanks for the clarification. Now the question is how to proceed. We have bug
&gt; #24598 which wants to make the dialog type public as well. I think for gir the
&gt; best way would be to make the a noinst header.
&gt; 

I think the feature needs to be public, for people customizing the session to be able to add/remove it, at least.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115699</commentid>
    <comment_count>8</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2009-03-28 14:17:16 -0700</bug_when>
    <thetext>As Gustavo says we really want to have this exported, the whole idea behind making it a session was that people could configure/remove it from outside of WebKit. I&apos;ve committed the patch as r42075, closing as FIXED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115700</commentid>
    <comment_count>9</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2009-03-28 14:18:54 -0700</bug_when>
    <thetext>Er, I meant &quot;the whole idea behind making it a session FEATURE&quot;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>28918</attachid>
            <date>2009-03-24 17:10:09 -0700</date>
            <delta_ts>2009-03-28 14:17:43 -0700</delta_ts>
            <desc>proposed fix</desc>
            <filename>soupdialogapi.patch</filename>
            <type>text/plain</type>
            <size>649</size>
            <attacher name="Cosimo Cecchi">cosimoc</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdC9ndGsvd2Via2l0L3dlYmtpdHNvdXBhdXRoZGlhbG9nLmggYi9X
ZWJLaXQvZ3RrL3dlYmtpdC93ZWJraXRzb3VwYXV0aGRpYWxvZy5oCmluZGV4IDJjMDMwYjQuLjBi
YjZiNGQgMTAwNjQ0Ci0tLSBhL1dlYktpdC9ndGsvd2Via2l0L3dlYmtpdHNvdXBhdXRoZGlhbG9n
LmgKKysrIGIvV2ViS2l0L2d0ay93ZWJraXQvd2Via2l0c291cGF1dGhkaWFsb2cuaApAQCAtMTcs
NiArMTcsOCBAQAogICogQm9zdG9uLCBNQSAwMjExMC0xMzAxLCBVU0EuCiAgKi8KIAorI2luY2x1
ZGUgPHdlYmtpdC93ZWJraXRkZWZpbmVzLmg+CisKICNpbmNsdWRlIDxndGsvZ3RrLmg+CiAjaW5j
bHVkZSA8bGlic291cC9zb3VwLmg+CiAKQEAgLTQyLDcgKzQ0LDggQEAgdHlwZWRlZiBzdHJ1Y3Qg
ewogICAgIEd0a1dpZGdldCogKCpjdXJyZW50X3RvcGxldmVsKSAoV2ViS2l0U291cEF1dGhEaWFs
b2cqIGZlYXR1cmUsIFNvdXBNZXNzYWdlKiBtZXNzYWdlKTsKIH0gV2ViS2l0U291cEF1dGhEaWFs
b2dDbGFzczsKIAotR1R5cGUgd2Via2l0X3NvdXBfYXV0aF9kaWFsb2dfZ2V0X3R5cGUgKHZvaWQp
OworV0VCS0lUX0FQSSBHVHlwZQord2Via2l0X3NvdXBfYXV0aF9kaWFsb2dfZ2V0X3R5cGUgKHZv
aWQpOwogCiBHX0VORF9ERUNMUwogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>