[Webkit-unassigned] [Bug 244833] href tag not captured through cordova plugin with wkwebview in iOS 15

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 29 20:04:03 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=244833

--- Comment #15 from krishan vir singh <natureboyk9 at gmail.com> ---
Hi Team 

I observed one code decide navigation policy 

I am using this code to navigation on click of link from coredova app which is not executing the script 

WKUserScript *script = [[WKUserScript alloc] initWithSource:[NSString stringWithFormat:@"javascript:window.open('%@')", [requestedURL absoluteString]] injectionTime:WKUserScriptInjectionTimeAtDocumentStart forMainFrameOnly:YES];

                [webView.configuration.userContentController addUserScript:script];



and when i have this code it is working 


NSString *script = [NSString stringWithFormat:@"javascript:window.open('%@')", [requestedURL absoluteString]];
                [webView evaluateJavaScript:script completionHandler:nil];

So Could you please tell me what is causing the issue ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240530/9df456a9/attachment-0001.htm>


More information about the webkit-unassigned mailing list