commit | cb5be6af959987e004c01e91e1665216d16c9378 | [log] [tgz] |
---|---|---|
author | j_pascoe@apple.com <j_pascoe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Tue Jun 21 21:50:42 2022 +0000 |
committer | j_pascoe@apple.com <j_pascoe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Tue Jun 21 21:50:42 2022 +0000 |
tree | e657ad8a0c69fd87581c2699e6876ea3614842be | |
parent | 877cc5032c248ceb633b4527392c50ba3651e594 [diff] |
Disable system preview in captive portal mode https://bugs.webkit.org/show_bug.cgi?id=241739 rdar://90563679 Reviewed by Brent Fulgham. * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::adjustSettingsForCaptivePortal): Disable system preview when in captive portal mode. Canonical link: https://commits.webkit.org/251696@main git-svn-id: http://svn.webkit.org/repository/webkit/trunk@295691 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebKit/WebProcess/WebPage/WebPage.cpp b/Source/WebKit/WebProcess/WebPage/WebPage.cpp index e4339f7..9c2fc8f 100644 --- a/Source/WebKit/WebProcess/WebPage/WebPage.cpp +++ b/Source/WebKit/WebProcess/WebPage/WebPage.cpp
@@ -4141,6 +4141,9 @@ #if ENABLE(PDFJS) settings.setPdfJSViewerEnabled(true); #endif +#if USE(SYSTEM_PREVIEW) + settings.setSystemPreviewEnabled(false); +#endif settings.setAllowedMediaContainerTypes(store.getStringValueForKey(WebPreferencesKey::mediaContainerTypesAllowedInCaptivePortalModeKey())); settings.setAllowedMediaCodecTypes(store.getStringValueForKey(WebPreferencesKey::mediaCodecTypesAllowedInCaptivePortalModeKey()));