Skip to content
  • mitz@apple.com's avatar
    Use createCFURLFromBuffer when converting a String to a CFURL · 5a8524b6
    mitz@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=124113
    
    Reviewed by Anders Carlsson.
    
    * Shared/API/c/cf/WKURLCF.mm:
    (WKURLCopyCFURL): Replaced some code with a call to createCFURLFromBuffer(), which does the
    same thing.
    
    * Shared/Cocoa/WKNSURLExtras.h: Added.
    * Shared/Cocoa/WKNSURLExtras.mm: Added.
    (+[NSURL _web_URLWithWTFString:relativeToURL:]): Added. Returns nil for the null String,
    otherwise returns the result of createCFURLFromBuffer().
    
    * UIProcess/API/Cocoa/WKBackForwardListItem.mm:
    (-[WKBackForwardListItem URL]): Changed to use +_web_URLWithWTFString:relativeToURL:.
    (-[WKBackForwardListItem originalURL]): Ditto.
    
    * UIProcess/API/Cocoa/WKNavigationData.mm:
    (-[WKNavigationData destinationURL]): Ditto.
    
    * UIProcess/API/mac/WKBrowsingContextController.mm:
    (-[WKBrowsingContextController unreachableURL]): Ditto.
    
    * WebKit2.xcodeproj/project.pbxproj: Added references to new files.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159016 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    5a8524b6