⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 98386 in webkit


Ignore:
Timestamp:
Oct 25, 2011, 1:38:25 PM (15 years ago)
Author:
weinig@apple.com
Message:

Make loadFileURL:restrictToFilesWithin: work, albeit, without the correct
restrictions for now.

Reviewed by Anders Carlsson.

  • UIProcess/API/mac/WKBrowsingContextController.mm:

(-[WKBrowsingContextController loadFileURL:restrictToFilesWithin:]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r98369 r98386  
     12011-10-25  Sam Weinig  <sam@webkit.org>
     2
     3        Make loadFileURL:restrictToFilesWithin: work, albeit, without the correct
     4        restrictions for now.
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * UIProcess/API/mac/WKBrowsingContextController.mm:
     9        (-[WKBrowsingContextController loadFileURL:restrictToFilesWithin:]):
     10
    1112011-10-25  Anders Carlsson  <andersca@apple.com>
    212
  • trunk/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm

    r98311 r98386  
    100100- (void)loadFileURL:(NSURL *)URL restrictToFilesWithin:(NSURL *)allowedDirectory
    101101{
    102     /* FIXME: Implement. */
     102    if (![URL isFileURL])
     103        return;
     104
     105    /* FIXME: Implement restrictions. */
     106
     107    WKRetainPtr<WKURLRef> wkURL = adoptWK(WKURLCreateWithCFURL((CFURLRef)URL));
     108    WKPageLoadURL(self.pageRef, wkURL.get());
    103109}
    104110
Note: See TracChangeset for help on using the changeset viewer.