Changeset 107355 in webkit


Ignore:
Timestamp:
Feb 9, 2012 9:42:55 PM (12 years ago)
Author:
ap@apple.com
Message:

REGRESSION (r104885): Articles not displayed in Vienna RSS reader
https://bugs.webkit.org/show_bug.cgi?id=78280
<rdar://problem/10762545>

Reviewed by Oliver Hunt.

  • Misc/WebNSURLExtras.h:
  • Misc/WebNSURLExtras.mm: (-[NSURL _webkit_URLFromURLOrPath]):

Added a method to create a URL from a path, similarly to what KURL used to do.

  • WebView/WebFrame.mm: (-[WebFrame loadData:MIMEType:textEncodingName:baseURL:]):

Use it in an API where a known regression occurred.

Location:
trunk/Source/WebKit/mac
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r107100 r107355  
     12012-02-09  Alexey Proskuryakov  <ap@apple.com>
     2
     3        REGRESSION (r104885): Articles not displayed in Vienna RSS reader
     4        https://bugs.webkit.org/show_bug.cgi?id=78280
     5        <rdar://problem/10762545>
     6
     7        Reviewed by Oliver Hunt.
     8
     9        * Misc/WebNSURLExtras.h:
     10        * Misc/WebNSURLExtras.mm: (-[NSURL _webkit_URLFromURLOrPath]):
     11        Added a method to create a URL from a path, similarly to what KURL used to do.
     12
     13        * WebView/WebFrame.mm: (-[WebFrame loadData:MIMEType:textEncodingName:baseURL:]):
     14        Use it in an API where a known regression occurred.
     15
    1162012-02-07  Antti Koivisto  <antti@apple.com>
    217
  • trunk/Source/WebKit/mac/Misc/WebNSURLExtras.h

    r49273 r107355  
    7070- (NSString *)_webkit_suggestedFilenameWithMIMEType:(NSString *)MIMEType;
    7171
     72- (NSURL *)_webkit_URLFromURLOrPath;
     73
    7274@end
    7375
  • trunk/Source/WebKit/mac/Misc/WebNSURLExtras.mm

    r105101 r107355  
    884884}
    885885
     886- (NSURL *)_webkit_URLFromURLOrPath
     887{
     888    if ([self scheme])
     889        return self;
     890
     891    return [NSURL fileURLWithPath:[self absoluteString]];
     892}
     893
    886894@end
    887895
  • trunk/Source/WebKit/mac/WebView/WebFrame.mm

    r107100 r107355  
    14851485    if (!MIMEType)
    14861486        MIMEType = @"text/html";
    1487     [self _loadData:data MIMEType:MIMEType textEncodingName:encodingName baseURL:baseURL unreachableURL:nil];
     1487    [self _loadData:data MIMEType:MIMEType textEncodingName:encodingName baseURL:[baseURL _webkit_URLFromURLOrPath] unreachableURL:nil];
    14881488}
    14891489
Note: See TracChangeset for help on using the changeset viewer.