[Webkit-unassigned] [Bug 275039] New: Nvigation issue in Cordova app On click of anchor tag
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jun 2 20:24:37 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=275039
Bug ID: 275039
Summary: Nvigation issue in Cordova app On click of anchor tag
Product: WebKit
Version: Safari 16
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: natureboyk9 at gmail.com
CC: kkinnunen at apple.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 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 ?
--
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/20240603/edb26a35/attachment.htm>
More information about the webkit-unassigned
mailing list