Bug 12759
Summary: | local page loading: FrameView - (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)encodingName baseURL:(NSURL *)URL should provid automatic encoding detection | ||
---|---|---|---|
Product: | WebKit | Reporter: | Robert Burns <robburns1> |
Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Enhancement | CC: | ap |
Priority: | P2 | Keywords: | InRadar |
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 |
Robert Burns
I don't believe this works now, but setting the eoncding argument to nil or pvoiding a separate method without the enoding would be a nice feature for loading local files as data. Particularly with XHTML files where detection should be more uniform than text files, it would be nice to leave the encoding of loaded data up to WebKit.
Alternate method could be:
- (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType baseURL:(NSURL *)URL
or even:
- (void)loadData:(NSData *)data baseURL:(NSURL *)URL
leaving that up to WebKit and some interaction with the OS (UTIs, filename extensions, etc).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
I haven't yet verified if this still doesn't work in TOT, but it sounds like a good idea to make it work if it doesn't. Then, someone at Apple would need to check if this can become an officially documented feature - adding a NeedsRadar keyword.
Robert Burns
radar at: 4995440
Sam Sneddon [:gsnedders]
From that Radar:
> Verify / Not To Be Fixed. Please adopt the Modern WebKit APIs (WKWebVew). If this request is still valid to the Modern WebKit framework API, please file a new Radar.