You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2015/09/10 08:50:57 UTC

cordova-plugin-wkwebview-engine git commit: Fixed iOS 9 loadFileURL:allowingReadAccessToURL: selector and file url detection

Repository: cordova-plugin-wkwebview-engine
Updated Branches:
  refs/heads/master 3eaf5270f -> ce2c1ebdf


Fixed iOS 9 loadFileURL:allowingReadAccessToURL: selector and file url detection


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/commit/ce2c1ebd
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/tree/ce2c1ebd
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/diff/ce2c1ebd

Branch: refs/heads/master
Commit: ce2c1ebdfc21c971934ea9d5afaa3a6ba3d1216e
Parents: 3eaf527
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Sep 9 23:50:52 2015 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Wed Sep 9 23:50:52 2015 -0700

----------------------------------------------------------------------
 src/ios/CDVWKWebViewEngine.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/blob/ce2c1ebd/src/ios/CDVWKWebViewEngine.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVWKWebViewEngine.m b/src/ios/CDVWKWebViewEngine.m
index fa0ce26..8c2a926 100644
--- a/src/ios/CDVWKWebViewEngine.m
+++ b/src/ios/CDVWKWebViewEngine.m
@@ -96,7 +96,7 @@
     // the URL needs to be a file reference
     NSURL* url = request.URL;
     
-    if ([_engineWebView respondsToSelector:wk_sel] && [url isFileReferenceURL]) {
+    if ([_engineWebView respondsToSelector:wk_sel] && url.fileURL) {
         // allow the folder containing the file reference to be read as well
         NSURL* readAccessUrl = [request.URL URLByDeletingLastPathComponent];
         return ((id (*)(id, SEL, id, id))objc_msgSend)(_engineWebView, wk_sel, url, readAccessUrl);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org