| Summary: | href tag not captured through cordova plugin with wkwebview in iOS 15 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | krishan vir singh <natureboyk9> | ||||
| Component: | Plug-ins | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED WORKSFORME | ||||||
| Severity: | Normal | CC: | achristensen, ap, bfulgham, cdumez, webkit-bug-importer, wilander | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 15 | ||||||
| Hardware: | iPhone / iPad | ||||||
| OS: | iOS 15 | ||||||
| Attachments: |
|
||||||
|
Description
krishan vir singh
2022-09-06 00:27:16 PDT
Please have Cordova(?) developers investigate this issue, and come up with an explanation of what's misbehaving in WebKit. We cannot investigate from such a high level description of the problem. Hi Alexey Proskuryakov Ours is a cordova app but the issue is related to webkit because we use webkit within the app. So if we are using an href tag on html page it was working on iOS 14 . It was working as a link and redirecting to the destination page But after iOS 15 update it stopped working . In our application we are using wkwebview. Understood. I don't think that investigate based on such a high level description, unless it's an already know issue (possibly intentional behavior change). CC'ing some people who would know ab out such. Created attachment 463571 [details]
Webkit not responding on link
I have attached a demo . Reopening, as there is an example attached now. Thank you! Hi Team Please check this issue on priority . As Our customers are facing issues . Thanks & Regards Krishan Vir Singh Hi Team please take a look and suggest some solution for this . Thanks & Regards Krishan vir singh I am about to start looking into this. Is this still an issue? I see there are 3 links in the demo app, are all 3 links not working? I ran the attached demo app on iOS 17 beta (on iPhone device) and all 3 links open. 2 of them navigate inside the web view and the third one opens the Apple Maps app. If you can still reproduce the issue on iOS 17 beta, please provide better reproduction steps. Then Basically We implmented Rich text editor to add the data . and showing on text editor . In this scenario with our cordova app is not invoking the a herf tag . So It is not opening the link Then Basically We implmented Rich text editor to add the data . and showing on text editor . In this scenario with our cordova app is not invoking the a herf tag . So It is not opening the link Hi Team, is there any update on this incident? Regards Krishan Vir Sigh 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 ?
|