WkWebView changes the string being pasted

Hi, I just noticed something strange. When I call:

webView?.paste("a://../../../123")

(where webView is a WkWebView), the string that is pasted (that arrives in the JavaScript onPaste event handler) is: "a://../123".

I think it has something to do with URL parsing. I would like to understand what is happening, and how to fix it.

WkWebView changes the string being pasted
 
 
Q