From 0e49800418d26c0a213638bc693b3d01aa58909e Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 4 Oct 2019 14:45:05 +0300 Subject: [PATCH] tdf#127942: Avoid the WKWebView popup with "Share...", "Add to Photos" etc Seems that setting allowsLinkPreview to NO for the WKWebView affects this functionality, too. Was just an educated guess, and it worked! Single-line fixes to what initially seems like a hard problem are the best. Change-Id: Ic88bf53b883d857338c0316188e079e6797a4d76 Reviewed-on: https://gerrit.libreoffice.org/80208 Reviewed-by: Tor Lillqvist Tested-by: Tor Lillqvist (cherry picked from commit c7e38e6348a98c0a6fcaf20876c57cb01d56f4cc) --- ios/Mobile/DocumentViewController.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/Mobile/DocumentViewController.mm b/ios/Mobile/DocumentViewController.mm index 6f1891b35..183e57250 100644 --- a/ios/Mobile/DocumentViewController.mm +++ b/ios/Mobile/DocumentViewController.mm @@ -44,6 +44,7 @@ self.webView = [[WKWebView alloc] initWithFrame:CGRectZero configuration:configuration]; self.webView.translatesAutoresizingMaskIntoConstraints = NO; + self.webView.allowsLinkPreview = NO; // Prevent the WebView from scrolling. Sadly I couldn't figure out how to do it in the JS, // so the problem is still there when using Online from Mobile Safari.