Bug 308398

Summary: [Browser] ability to set content to arbitrary data type
Product: [Eclipse Project] Platform Reporter: Grant Gayed <grant_gayed>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: ericwill
Version: 3.6Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Grant Gayed CLA 2010-04-07 16:44:54 EDT
Currently the only content that can be directly fed to a Browser is text/html via Browser.setText().  It would be good to be able to set this content and have it interpreted as other MIME types (eg.- .xml).

This would require new API of some sort.  One possibility would be to add a MIME type argument to setText().  Another would be something like setContent(String mimeType, byte[] content), if the ability to set binary data makes sense in this context.