From 0ee03f15381d6a3768faa88da8630a3e702473b6 Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty Date: Mon, 8 Mar 2021 10:47:58 -0500 Subject: [PATCH] feat(browser-support): Add support for WKWebview based browsers. --- modules/UI/videolayout/VideoContainer.js | 2 +- react/features/base/environment/environment.js | 2 +- react/features/base/jitsi-local-storage/setup.web.js | 2 +- .../settings/components/web/audio/AudioSettingsContent.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/UI/videolayout/VideoContainer.js b/modules/UI/videolayout/VideoContainer.js index ced00a33c..b6efac9bd 100644 --- a/modules/UI/videolayout/VideoContainer.js +++ b/modules/UI/videolayout/VideoContainer.js @@ -610,7 +610,7 @@ export class VideoContainer extends LargeContainer { // explicitly disabled. if (interfaceConfig.DISABLE_VIDEO_BACKGROUND || browser.isFirefox() - || browser.isSafari()) { + || browser.isWebKitBased()) { return; } diff --git a/react/features/base/environment/environment.js b/react/features/base/environment/environment.js index c2eca0cf7..7f869be73 100644 --- a/react/features/base/environment/environment.js +++ b/react/features/base/environment/environment.js @@ -92,7 +92,7 @@ export function isSupportedBrowser() { export function isSupportedMobileBrowser() { return (Platform.OS === 'android' && browser.isChromiumBased()) || (Platform.OS === 'android' && browser.isFirefox()) - || (Platform.OS === 'ios' && browser.isSafari()); + || (Platform.OS === 'ios' && browser.isWebKitBased()); } /** diff --git a/react/features/base/jitsi-local-storage/setup.web.js b/react/features/base/jitsi-local-storage/setup.web.js index e35158443..be4540fbf 100644 --- a/react/features/base/jitsi-local-storage/setup.web.js +++ b/react/features/base/jitsi-local-storage/setup.web.js @@ -24,7 +24,7 @@ function onFakeLocalStorageChanged() { * @returns {void} */ function setupJitsiLocalStorage() { - if (jitsiLocalStorage.isLocalStorageDisabled() || browser.isSafari()) { + if (jitsiLocalStorage.isLocalStorageDisabled() || browser.isWebKitBased()) { const urlParams = parseURLParams(window.location); try { diff --git a/react/features/settings/components/web/audio/AudioSettingsContent.js b/react/features/settings/components/web/audio/AudioSettingsContent.js index 20744bb10..ee7da52f0 100644 --- a/react/features/settings/components/web/audio/AudioSettingsContent.js +++ b/react/features/settings/components/web/audio/AudioSettingsContent.js @@ -172,7 +172,7 @@ class AudioSettingsContent extends Component { * @returns {void} */ async _setTracks() { - if (browser.isSafari()) { + if (browser.isWebKitBased()) { // It appears that at the time of this writing, creating audio tracks blocks the browser's main thread for // long time on safari. Wasn't able to confirm which part of track creation does the blocking exactly, but