[Webkit-unassigned] [Bug 26791] [Gtk] Paste of rich text from firefox results garbled markup

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 7 05:17:11 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=26791


Jan Alonzo <jmalonzo at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #32264|review?                     |review+
               Flag|                            |




--- Comment #24 from Jan Alonzo <jmalonzo at gmail.com>  2009-07-07 05:17:10 PDT ---
(From update of attachment 32264)
> -        String html = String::fromUTF8(reinterpret_cast<gchar*>(data->data), data->length * data->format / 8);
> +        String html;
> +        RefPtr<TextResourceDecoder> decoder = TextResourceDecoder::create("text/plain", "UTF-8", true);
> +        html = decoder->decode(reinterpret_cast<char*>(data->data), data->length);
> +        html += decoder->flush();
>          gtk_selection_data_free(data);

Declaration and the first assignment can be in the same line here. 

Looks fine and the patch works great! r=me.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list