<?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>62512</bug_id>
          
          <creation_ts>2011-06-12 09:05:47 -0700</creation_ts>
          <short_desc>[GTK] Remove webkit_web_view_get_selected_text</short_desc>
          <delta_ts>2011-06-12 16:36:11 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</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>1</everconfirmed>
          <reporter name="Xan Lopez">xan.lopez</reporter>
          <assigned_to name="Xan Lopez">xan.lopez</assigned_to>
          <cc>christian</cc>
    
    <cc>kling</cc>
    
    <cc>mrobinson</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>419297</commentid>
    <comment_count>0</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2011-06-12 09:05:47 -0700</bug_when>
    <thetext>It&apos;s unused *and* private *and* can what it does can be done with the DOM bindings, so we can just nuke it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419298</commentid>
    <comment_count>1</comment_count>
      <attachid>96881</attachid>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2011-06-12 09:10:02 -0700</bug_when>
    <thetext>Created attachment 96881
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419300</commentid>
    <comment_count>2</comment_count>
      <attachid>96881</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-06-12 09:19:19 -0700</bug_when>
    <thetext>Comment on attachment 96881
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=96881&amp;action=review

I&apos;m not qualified to make decisions about the Gtk API, but it looks like a reasonable change to me.

Note that the Midori browser currently uses this API, so it would be nice of you to let them know it&apos;s being removed. :)

&gt; Source/WebKit/gtk/ChangeLog:8
&gt; +        It&apos;s no longer used and is a privated method, so it can be

Typo, private.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419347</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-06-12 15:50:32 -0700</bug_when>
    <thetext>:/ I guess if Midori is using it we should make it deprecated with a note to use the DOM APIs and then remove it in some future release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419352</commentid>
    <comment_count>4</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2011-06-12 16:10:22 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; :/ I guess if Midori is using it we should make it deprecated with a note to use the DOM APIs and then remove it in some future release.

Maybe it was not clear in the first comment, but this method is *private*. It&apos;s not exported in any public header, so whoever is using it does it at his own risk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419353</commentid>
    <comment_count>5</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-06-12 16:17:45 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; :/ I guess if Midori is using it we should make it deprecated with a note to use the DOM APIs and then remove it in some future release.
&gt; 
&gt; Maybe it was not clear in the first comment, but this method is *private*. It&apos;s not exported in any public header, so whoever is using it does it at his own risk.

Apologies, I was thrown off momentarily because it had gtkdoc and Midori and claws are using it. I thought perhaps you had made a mistake in thinking it private. I don&apos;t see it on the documentation site though, so I believe that you are correct that it is safe to remove. 

I feel that we should not use gtkdoc for private methods. It seems too easy for them slip into the public documentation and sends the wrong message downstream. CCing Christian so that he has some advance warning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419354</commentid>
    <comment_count>6</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2011-06-12 16:23:21 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Apologies, I was thrown off momentarily because it had gtkdoc and Midori and claws are using it. I thought perhaps you had made a mistake in thinking it private. I don&apos;t see it on the documentation site though, so I believe that you are correct that it is safe to remove. 

Maybe this is because it was used at some point in DRT (and that&apos;s the reason why it&apos;s in a header and marked with WEBKIT_API too).

&gt; 
&gt; I feel that we should not use gtkdoc for private methods. It seems too easy for them slip into the public documentation and sends the wrong message downstream. CCing Christian so that he has some advance warning.

Right.

FWIW, we just cannot remove public methods. What you suggested (deprecate + remove later) is what has to happen, it&apos;s not really up to debate. With private methods, of course, we can do whatever we want.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>419356</commentid>
    <comment_count>7</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2011-06-12 16:36:11 -0700</bug_when>
    <thetext>Landed in r88621, closing.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>96881</attachid>
            <date>2011-06-12 09:10:02 -0700</date>
            <delta_ts>2011-06-12 16:17:51 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-62512-20110612180954.patch</filename>
            <type>text/plain</type>
            <size>2408</size>
            <attacher name="Xan Lopez">xan.lopez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODg2MTMKZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQvZ3Rr
L0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvZ3RrL0NoYW5nZUxvZwppbmRleCBjMDA0OTQ0NDU2
MWM5ZjM3OGY0ZjU4MjJjNWJhND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Gsvd2Via2l0L3dlYmtpdHdlYnZpZXdwcml2YXRlLmggYi9Tb3VyY2UvV2ViS2l0L2d0
ay93ZWJraXQvd2Via2l0d2Vidmlld3ByaXZhdGUuaAppbmRleCA0OGFmODJhMTBmNTlhOTc1MmY5
MzZhMGIwYTVkZWIxNTc1NTQyNzFhLi5lNjRiNTYwYTc3MDAzZTFiZGE3MzllM2I0YTg1ZTc3MjE5
Y2RhM2M1IDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0L2d0ay93ZWJraXQvd2Via2l0d2Vidmll
d3ByaXZhdGUuaAorKysgYi9Tb3VyY2UvV2ViS2l0L2d0ay93ZWJraXQvd2Via2l0d2Vidmlld3By
aXZhdGUuaApAQCAtMTE5LDggKzExOSw2IEBAIEdMaXN0KiB3ZWJraXRfd2ViX3ZpZXdfZ2V0X3N1
YnJlc291cmNlcyhXZWJLaXRXZWJWaWV3Kik7CiB2b2lkIHdlYmtpdF93ZWJfdmlld19zZXRfdG9v
bHRpcF90ZXh0KFdlYktpdFdlYlZpZXcqLCBjb25zdCBjaGFyKik7CiBHdGtNZW51KiB3ZWJraXRf
d2ViX3ZpZXdfZ2V0X2NvbnRleHRfbWVudShXZWJLaXRXZWJWaWV3Kik7CiAKLVdFQktJVF9BUEkg
Z2NoYXIqIHdlYmtpdF93ZWJfdmlld19nZXRfc2VsZWN0ZWRfdGV4dChXZWJLaXRXZWJWaWV3Kik7
Ci0KIHZvaWQgd2ViVmlld0VudGVyRnVsbHNjcmVlbihXZWJLaXRXZWJWaWV3KiB3ZWJWaWV3LCBX
ZWJDb3JlOjpOb2RlKik7CiB2b2lkIHdlYlZpZXdFeGl0RnVsbHNjcmVlbihXZWJLaXRXZWJWaWV3
KiB3ZWJWaWV3KTsKIAo=
</data>
<flag name="review"
          id="90673"
          type_id="1"
          status="+"
          setter="mrobinson"
    />
          </attachment>
      

    </bug>

</bugzilla>