<?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>15802</bug_id>
          
          <creation_ts>2007-11-02 11:33:31 -0700</creation_ts>
          <short_desc>[GTK] webkit_page_clear API</short_desc>
          <delta_ts>2007-11-04 17:15:44 -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>523.x (Safari 3)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Salvatore De Paolis">iwkse</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60074</commentid>
    <comment_count>0</comment_count>
    <who name="Salvatore De Paolis">iwkse</who>
    <bug_when>2007-11-02 11:33:31 -0700</bug_when>
    <thetext>Allow a method to clear a WebKitPage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60075</commentid>
    <comment_count>1</comment_count>
      <attachid>16996</attachid>
    <who name="Salvatore De Paolis">iwkse</who>
    <bug_when>2007-11-02 11:34:27 -0700</bug_when>
    <thetext>Created attachment 16996
Add a API for clear a WebKitPage</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60179</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-11-03 08:39:36 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Created an attachment (id=16996) [edit]
&gt; Add a API for clear a WebKitPage

Please set the &quot;review?&quot; flag if you would like your patch reviewed.  Thanks!

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60189</commentid>
    <comment_count>3</comment_count>
      <attachid>16996</attachid>
    <who name="Salvatore De Paolis">iwkse</who>
    <bug_when>2007-11-03 11:26:30 -0700</bug_when>
    <thetext>Comment on attachment 16996
Add a API for clear a WebKitPage

&gt;Index: WebKit/gtk/Api/webkitgtkpage.cpp
&gt;===================================================================
&gt;--- WebKit/gtk/Api/webkitgtkpage.cpp	(revision 27376)
&gt;+++ WebKit/gtk/Api/webkitgtkpage.cpp	(working copy)
&gt;@@ -498,6 +498,11 @@
&gt;     frameData-&gt;frame-&gt;loader()-&gt;load(ResourceRequest(KURL(string)));
&gt; }
&gt; 
&gt;+void webkit_page_clear(WebKitPage *page)
&gt;+{
&gt;+	webkit_page_load_html_string(page, &quot;&lt;html&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;&quot;, &quot;about:blank&quot;);
&gt;+}
&gt;+
&gt; void webkit_page_reload(WebKitPage* page)
&gt; {
&gt;     WebKitPagePrivate* pageData = WEBKIT_PAGE_GET_PRIVATE(page);
&gt;Index: WebKit/gtk/Api/webkitgtkpage.h
&gt;===================================================================
&gt;--- WebKit/gtk/Api/webkitgtkpage.h	(revision 27376)
&gt;+++ WebKit/gtk/Api/webkitgtkpage.h	(working copy)
&gt;@@ -136,6 +136,9 @@
&gt; webkit_page_open (WebKitPage* page, const gchar* url);
&gt; 
&gt; WEBKIT_API void
&gt;+webkit_page_clear (WebKitPage *page);
&gt;+
&gt;+WEBKIT_API void
&gt; webkit_page_reload (WebKitPage *page);
&gt; 
&gt; WEBKIT_API void</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60237</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-11-04 08:22:14 -0800</bug_when>
    <thetext>You can trivially clear a page by loading about:blank into it.  I don&apos;t see why this is desirable as API.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60238</commentid>
    <comment_count>5</comment_count>
      <attachid>16996</attachid>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-11-04 08:23:11 -0800</bug_when>
    <thetext>Comment on attachment 16996
Add a API for clear a WebKitPage

As mentioned, I don&apos;t think this is desirable in the API.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>16996</attachid>
            <date>2007-11-02 11:34:27 -0700</date>
            <delta_ts>2007-11-04 08:23:11 -0800</delta_ts>
            <desc>Add a API for clear a WebKitPage</desc>
            <filename>webkit_clear.patch</filename>
            <type>text/plain</type>
            <size>975</size>
            <attacher name="Salvatore De Paolis">iwkse</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9ndGsvQXBpL3dlYmtpdGd0a3BhZ2UuY3BwCj09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdl
YktpdC9ndGsvQXBpL3dlYmtpdGd0a3BhZ2UuY3BwCShyZXZpc2lvbiAyNzM3NikKKysrIFdlYktp
dC9ndGsvQXBpL3dlYmtpdGd0a3BhZ2UuY3BwCSh3b3JraW5nIGNvcHkpCkBAIC00OTgsNiArNDk4
LDExIEBACiAgICAgZnJhbWVEYXRhLT5mcmFtZS0+bG9hZGVyKCktPmxvYWQoUmVzb3VyY2VSZXF1
ZXN0KEtVUkwoc3RyaW5nKSkpOwogfQogCit2b2lkIHdlYmtpdF9wYWdlX2NsZWFyKFdlYktpdFBh
Z2UgKnBhZ2UpCit7CisJd2Via2l0X3BhZ2VfbG9hZF9odG1sX3N0cmluZyhwYWdlLCAiPGh0bWw+
PGJvZHk+PC9ib2R5PjwvaHRtbD4iLCAiYWJvdXQ6YmxhbmsiKTsKK30KKwogdm9pZCB3ZWJraXRf
cGFnZV9yZWxvYWQoV2ViS2l0UGFnZSogcGFnZSkKIHsKICAgICBXZWJLaXRQYWdlUHJpdmF0ZSog
cGFnZURhdGEgPSBXRUJLSVRfUEFHRV9HRVRfUFJJVkFURShwYWdlKTsKSW5kZXg6IFdlYktpdC9n
dGsvQXBpL3dlYmtpdGd0a3BhZ2UuaAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXQvZ3RrL0FwaS93ZWJr
aXRndGtwYWdlLmgJKHJldmlzaW9uIDI3Mzc2KQorKysgV2ViS2l0L2d0ay9BcGkvd2Via2l0Z3Rr
cGFnZS5oCSh3b3JraW5nIGNvcHkpCkBAIC0xMzYsNiArMTM2LDkgQEAKIHdlYmtpdF9wYWdlX29w
ZW4gKFdlYktpdFBhZ2UqIHBhZ2UsIGNvbnN0IGdjaGFyKiB1cmwpOwogCiBXRUJLSVRfQVBJIHZv
aWQKK3dlYmtpdF9wYWdlX2NsZWFyIChXZWJLaXRQYWdlKiBwYWdlKTsKKworV0VCS0lUX0FQSSB2
b2lkCiB3ZWJraXRfcGFnZV9yZWxvYWQgKFdlYktpdFBhZ2UgKnBhZ2UpOwogCiBXRUJLSVRfQVBJ
IHZvaWQK
</data>
<flag name="review"
          id="7235"
          type_id="1"
          status="-"
          setter="mrowe"
    />
          </attachment>
      

    </bug>

</bugzilla>