[Mono-bugs] [Bug 375997] New: downloader.getResponseText() charset fu

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 1 14:02:46 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=375997


           Summary: downloader.getResponseText() charset fu
           Product: Moonlight
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: plugin
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: fejj at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


The NSPlugin API only allows us to pass it NPVariant Strings in the UTF-8
encoding. Anything with invalid UTF-8 potentially gets truncated when the
javascript variable containing the result gets passed around.

Currently, Downloader::GetResponseText() attempts to convert to UTF-8 so this
isn't a huge issue, but as Larry pointed out, if the file downloaded happens to
be some sort of xhtml page or some such that requires the charset to be
identical to that in the original downloaded file, things may break.

In any case, createFromXaml() needs to be able to handle results passed to it
via a downloader.GetResponseText(), so if GetResponseText() changes to not
return UTF-8, then createFromXaml() will need to be fixed (either in the
plugin-class.cpp code or else in xaml.cpp)

Make sure that the DownloaderRegressions.htm test passes after any changes :)


As Larry suggests, this is a corner case and is probably not a huge priority.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list