<?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>79826</bug_id>
          
          <creation_ts>2012-02-28 13:15:34 -0800</creation_ts>
          <short_desc>[BlackBerry] Update the WebKit API to use std::string rather than char*</short_desc>
          <delta_ts>2012-11-14 11:00:08 -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>WebKit BlackBerry</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>
          <dependson>79818</dependson>
    
    <dependson>79829</dependson>
    
    <dependson>79830</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Konrad Piascik">kpiascik</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>efidler</cc>
    
    <cc>joenotcharles</cc>
    
    <cc>manyoso</cc>
    
    <cc>mstaikos</cc>
    
    <cc>staikos</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>yong.li.webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>567014</commentid>
    <comment_count>0</comment_count>
    <who name="Konrad Piascik">kpiascik</who>
    <bug_when>2012-02-28 13:15:34 -0800</bug_when>
    <thetext>Currently there are several methods in both WebPage.h and WebPageClient.h which use char* where std::string would be better suited.  These should be updated if possible.
This will be a meta bug to track individual changes.  This is to encourage smaller patches that are both reviewable and less prone to regressions and breakage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>570194</commentid>
    <comment_count>1</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2012-03-03 17:51:48 -0800</bug_when>
    <thetext>@all, do you have a agreement?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>570195</commentid>
    <comment_count>2</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2012-03-03 17:52:30 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; @all, do you have a agreement?

err!

@all: do we have an agreement?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>571042</commentid>
    <comment_count>3</comment_count>
    <who name="Joe Mason">joenotcharles</who>
    <bug_when>2012-03-05 14:17:11 -0800</bug_when>
    <thetext>No - I agree that char* should be deprecated, but I think the API should use WebString in most places. (And in NetworkJob::notifyDataReceived and similar, it should use a buffer class that&apos;s a thin wrapper around char*, since the data is not actually a string.)  std::string will need to be converted to WTF::String eventually anyway, so we might as well do it on the platform side.  This will let us avoid char*-&gt;std::string-&gt;WTF::String conversions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>767062</commentid>
    <comment_count>4</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-11-14 11:00:08 -0800</bug_when>
    <thetext>No we won&apos;t</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>