Bug 275039
| Summary: | Navigation issue in Cordova app On click of anchor tag | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | krishan vir singh <natureboyk9> |
| Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | achristensen, ap, beidson, cdumez, kkinnunen, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
krishan vir singh
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
krishan vir singh
This issue is started after iOS 16
Alexey Proskuryakov
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
<rdar://problem/129485085>