Bug 45782

Summary: Provide an IWebFramePrivate API to load string as plain text into the WebFrame
Product: WebKit Reporter: Ada Chan <adachan>
Component: WebKit APIAssignee: Ada Chan <adachan>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows 7   
Attachments:
Description Flags
Patch aroben: review+

Ada Chan
Reported 2010-09-14 14:03:12 PDT
Provide an IWebFramePrivate API to load string as plain text into the WebFrame. Currently IWebFrame has a loadData() method that takes in an IStream, and a loadHTMLString() method that takes in a string but only load it as HTML, but there's no API that will take in a string and load it as plain text. This new API, probably called IWebFramePrivate::loadPlainTextString() will do that.
Attachments
Patch (2.87 KB, patch)
2010-09-14 14:08 PDT, Ada Chan
aroben: review+
Ada Chan
Comment 1 2010-09-14 14:08:29 PDT
Adam Roben (:aroben)
Comment 2 2010-09-14 14:18:11 PDT
Comment on attachment 67603 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=67603&action=prettypatch r=me > WebKit/win/Interfaces/IWebFramePrivate.idl:121 > + HRESULT loadPlainTextString([in] BSTR string, [in] BSTR url); "loadStringAsPlainText" might be clearer, but I'm not sure.
Ada Chan
Comment 3 2010-09-14 14:21:29 PDT
The reason I named it loadPlainTextString is to be consistent with IWebFrame::loadHTMLString. Thanks for reviewing!
Ada Chan
Comment 4 2010-09-14 14:23:38 PDT
Note You need to log in before you can comment on or make changes to this bug.