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/12/04 10:30:34 UTC

cordova-plugin-wkwebview-engine git commit: CB-10133 - DataClone DOM Exception 25 thrown for postMessage

Repository: cordova-plugin-wkwebview-engine
Updated Branches:
  refs/heads/master 6340ef072 -> 4a9cb3878


CB-10133 - DataClone DOM Exception 25 thrown for postMessage


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/4a9cb387
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/tree/4a9cb387
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/diff/4a9cb387

Branch: refs/heads/master
Commit: 4a9cb38787e74b4615638d0f66412d6a09e493b2
Parents: 6340ef0
Author: Shazron Abdullah <sh...@apache.org>
Authored: Fri Dec 4 01:30:29 2015 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Fri Dec 4 01:30:29 2015 -0800

----------------------------------------------------------------------
 src/www/ios/ios-wkwebview-exec.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine/blob/4a9cb387/src/www/ios/ios-wkwebview-exec.js
----------------------------------------------------------------------
diff --git a/src/www/ios/ios-wkwebview-exec.js b/src/www/ios/ios-wkwebview-exec.js
index 493eb98..cdefaf0 100644
--- a/src/www/ios/ios-wkwebview-exec.js
+++ b/src/www/ios/ios-wkwebview-exec.js
@@ -121,7 +121,8 @@ var iOSExec = function() {
 
     actionArgs = massageArgsJsToNative(actionArgs);
 
-    var command = [callbackId, service, action, actionArgs];
+    // CB-10133 DataClone DOM Exception 25 guard (fast function remover)
+    var command = [callbackId, service, action, JSON.parse(JSON.stringify(actionArgs))];
     window.webkit.messageHandlers.cordova.postMessage(command);
 
 }


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