Closed fdocr closed 3 years ago
(Unrelated question: is this expected behavior with WKWebView? Does it not support Javascript generated UI interfaces like alert and confirm out of the box?
Yes, this is the expected behavior from WKWebView. They're part of the architecture decisions from Apple. The docs provide a bit of context, but in general these are features heavily used when developing a full fledged browser (think of the Chrome or Firefox teams developing their iOS browser app).
In the future we could even think of relying on custom UI (native or also web based) for these so they can have a more branded look (instead of the generic UIAlertController
).
After a more thorough look into
forem/forem
codebase I found the following places where we usewindow.confirm
orwindow.alert
(we don't usewindow.prompt
):This PR makes the
ForemWebView
self sufficient in this regard, meaning that consumers of the Framework don't need to worry about implementing the delegate.