<?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>20035</bug_id>
          
          <creation_ts>2008-07-14 16:51:58 -0700</creation_ts>
          <short_desc>[GTK] Fix return value for webkit_web_view_go_to_back_forward_item()</short_desc>
          <delta_ts>2008-08-01 22:20:24 -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>Linux</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="Wouter Bolsterlee">uws+webkit</reporter>
          <assigned_to name="Wouter Bolsterlee">uws+webkit</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85915</commentid>
    <comment_count>0</comment_count>
    <who name="Wouter Bolsterlee">uws+webkit</who>
    <bug_when>2008-07-14 16:51:58 -0700</bug_when>
    <thetext>Currently webkit_web_view_go_to_back_forward_item() always returns TRUE. There&apos;s a FIXME in the code to change this. Find attached a patch that changes this into a more suitable return value.

Note that the Objective-C docs at http://developer.apple.com/documentation/Cocoa/Reference/WebKit/Classes/WebView_Class/Reference/Reference.html#//apple_ref/occ/instm/WebView/goToBackForwardItem: seem to suggest this approach as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85916</commentid>
    <comment_count>1</comment_count>
      <attachid>22274</attachid>
    <who name="Wouter Bolsterlee">uws+webkit</who>
    <bug_when>2008-07-14 16:54:55 -0700</bug_when>
    <thetext>Created attachment 22274
Proposed fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85917</commentid>
    <comment_count>2</comment_count>
    <who name="Wouter Bolsterlee">uws+webkit</who>
    <bug_when>2008-07-14 17:06:07 -0700</bug_when>
    <thetext>02:03:33 &lt; bdash&gt; uws: https://bugs.webkit.org/attachment.cgi?id=22274&amp;action=prettypatch -- the 
                  declaration and assignment should be on the same line, and the variable name 
                  should match our coding style guidelines
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85918</commentid>
    <comment_count>3</comment_count>
      <attachid>22275</attachid>
    <who name="Wouter Bolsterlee">uws+webkit</who>
    <bug_when>2008-07-14 17:12:42 -0700</bug_when>
    <thetext>Created attachment 22275
Updated patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87653</commentid>
    <comment_count>4</comment_count>
      <attachid>22275</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-08-01 17:00:43 -0700</bug_when>
    <thetext>Comment on attachment 22275
Updated patch

Looks fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87660</commentid>
    <comment_count>5</comment_count>
    <who name="Jan Alonzo">jmalonzo</who>
    <bug_when>2008-08-01 22:20:24 -0700</bug_when>
    <thetext>landed in r35522</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>22274</attachid>
            <date>2008-07-14 16:54:55 -0700</date>
            <delta_ts>2008-07-14 17:12:42 -0700</delta_ts>
            <desc>Proposed fix</desc>
            <filename>webkit-go-to-back-forward-item-return-value-bug-20035.patch</filename>
            <type>text/plain</type>
            <size>1308</size>
            <attacher name="Wouter Bolsterlee">uws+webkit</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9ndGsvd2Via2l0L3dlYmtpdHdlYnZpZXcuY3BwCj09PT09PT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PT09PT09PQotLS0gV2ViS2l0L2d0ay9DaGFuZ2VMb2cJKHJldmlz
aW9uIDM1MTc1KQorKysgV2ViS2l0L2d0ay9DaGFuZ2VMb2cJKHdvcmtpbmcgY29weSkKQEAgLTEs
MyArMSwxMCBAQAorMjAwOC0wNy0xNSAgV291dGVyIEJvbHN0ZXJsZWUgIDx3Ym9sc3RlckBzdm4u
Z25vbWUub3JnPgorCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNn
aT9pZD0yMDAzNQorICAgICAgICBbR1RLXSBGaXggcmV0dXJuIHZhbHVlIGZvciB3ZWJraXRfd2Vi
X3ZpZXdfZ29fdG9fYmFja19mb3J3YXJkX2l0ZW0oKQorCisgICAgICAgICogd2Via2l0L3dlYmtp
dHdlYnZpZXcuY3BwOgorCiAyMDA4LTA3LTA4ICBKYW4gTWljaGFlbCBBbG9uem8gIDxqbWFsb256
b0B3ZWJraXQub3JnPgogCiAgICAgICAgIFJldmlld2VkIGJ5IENocmlzdGlhbiBEeXdhbi4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>22275</attachid>
            <date>2008-07-14 17:12:42 -0700</date>
            <delta_ts>2008-08-01 17:00:43 -0700</delta_ts>
            <desc>Updated patch</desc>
            <filename>webkit-go-to-back-forward-item-return-value-bug-20035.patch</filename>
            <type>text/plain</type>
            <size>1269</size>
            <attacher name="Wouter Bolsterlee">uws+webkit</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9ndGsvd2Via2l0L3dlYmtpdHdlYnZpZXcuY3BwCj09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0t
IFdlYktpdC9ndGsvd2Via2l0L3dlYmtpdHdlYnZpZXcuY3BwCShyZXZpc2lvbiAzNTE2NykKKysr
IFdlYktpdC9ndGsvd2Via2l0L3dlYmtpdHdlYnZpZX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Oi8vYnVncy53ZWJr
aXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yMDAzNQorICAgICAgICBbR1RLXSBGaXggcmV0dXJuIHZh
bHVlIGZvciB3ZWJraXRfd2ViX3ZpZXdfZ29fdG9fYmFja19mb3J3YXJkX2l0ZW0oKQorCisgICAg
ICAgICogd2Via2l0L3dlYmtpdHdlYnZpZXcuY3BwOgorCiAyMDA4LTA3LTA4ICBKYW4gTWljaGFl
bCBBbG9uem8gIDxqbWFsb256b0B3ZWJraXQub3JnPgogCiAgICAgICAgIFJldmlld2VkIGJ5IENo
cmlzdGlhbiBEeXdhbi4K
</data>
<flag name="review"
          id="9819"
          type_id="1"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>