NEW275039
Navigation issue in Cordova app On click of anchor tag
https://bugs.webkit.org/show_bug.cgi?id=275039
Summary Navigation issue in Cordova app On click of anchor tag
krishan vir singh
Reported 2024-06-02 20:24:37 PDT
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 below code it is working . as breakpoint is coming in App browser but with first code it is not invoking the inapp browser code . 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 ?
Attachments
krishan vir singh
Comment 1 2024-06-02 20:37:33 PDT
This issue is started after iOS 16
Alexey Proskuryakov
Comment 2 2024-06-07 17:29:56 PDT
Thank you for the report. Could you please provide a complete reproducible test that we could easily try out? I don't think that we could practically make a test based on the description above. It doesn't have to be minimized, we can work with an app on App Store, for example.
Radar WebKit Bug Importer
Comment 3 2024-06-09 20:25:13 PDT
Note You need to log in before you can comment on or make changes to this bug.