Title: [291884] trunk/Source/WebKit
- Revision
- 291884
- Author
- [email protected]
- Date
- 2022-03-25 13:47:07 -0700 (Fri, 25 Mar 2022)
Log Message
Add Captive Portal alert to WKWebView
https://bugs.webkit.org/show_bug.cgi?id=238326
Patch by C Lopez <[email protected]> on 2022-03-25
Reviewed by Geoffrey Garen.
When WkWebView on iOS is initialized, we call `_presentCaptivePortalModeAlertIfNeeded` which checks whether an alert needs to be presented or not.
* UIProcess/API/ios/WKWebViewIOS.h:
* UIProcess/API/ios/WKWebViewIOS.mm:
(-[WKWebView _presentCaptivePortalModeAlertIfNeeded]):
(-[WKWebView didMoveToWindow]):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (291883 => 291884)
--- trunk/Source/WebKit/ChangeLog 2022-03-25 20:32:31 UTC (rev 291883)
+++ trunk/Source/WebKit/ChangeLog 2022-03-25 20:47:07 UTC (rev 291884)
@@ -1,3 +1,17 @@
+2022-03-25 C Lopez <[email protected]>
+
+ Add Captive Portal alert to WKWebView
+ https://bugs.webkit.org/show_bug.cgi?id=238326
+
+ Reviewed by Geoffrey Garen.
+
+ When WkWebView on iOS is initialized, we call `_presentCaptivePortalModeAlertIfNeeded` which checks whether an alert needs to be presented or not.
+
+ * UIProcess/API/ios/WKWebViewIOS.h:
+ * UIProcess/API/ios/WKWebViewIOS.mm:
+ (-[WKWebView _presentCaptivePortalModeAlertIfNeeded]):
+ (-[WKWebView didMoveToWindow]):
+
2022-03-25 J Pascoe <[email protected]>
[WebAuthn] Maintain last modification time separate from last used time for platform credentials
https://bugs.webkit.org/show_bug.cgi?id=238293
Modified: trunk/Source/WebKit/UIProcess/API/ios/WKWebViewIOS.h (291883 => 291884)
--- trunk/Source/WebKit/UIProcess/API/ios/WKWebViewIOS.h 2022-03-25 20:32:31 UTC (rev 291883)
+++ trunk/Source/WebKit/UIProcess/API/ios/WKWebViewIOS.h 2022-03-25 20:47:07 UTC (rev 291884)
@@ -25,6 +25,9 @@
#import "WKWebViewInternal.h"
#import "_WKTapHandlingResult.h"
+#if USE(APPLE_INTERNAL_SDK) && PLATFORM(IOS_FAMILY)
+#import <WebKitAdditions/WKWebViewAdditions.h>
+#endif
@class UIScrollEvent;
Modified: trunk/Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm (291883 => 291884)
--- trunk/Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm 2022-03-25 20:32:31 UTC (rev 291883)
+++ trunk/Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm 2022-03-25 20:47:07 UTC (rev 291884)
@@ -1543,6 +1543,14 @@
return false;
}
+#if USE(APPLE_INTERNAL_SDK)
+#import <WebKitAdditions/WKWebViewAdditions.mm>
+#else
+- (void)_presentCaptivePortalModeAlertIfNeeded
+{
+}
+#endif
+
- (void)didMoveToWindow
{
if (!_overridesInterfaceOrientation)
@@ -1549,6 +1557,7 @@
[self _dispatchSetDeviceOrientation:[self _deviceOrientation]];
_page->activityStateDidChange(WebCore::ActivityState::allFlags());
_page->webViewDidMoveToWindow();
+ [self _presentCaptivePortalModeAlertIfNeeded];
}
- (void)_setOpaqueInternal:(BOOL)opaque
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes