Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Adds new text for Firefox screen-sharing permission denied error.

damenchoea431ca90ca3
diff --git a/conference.js b/conference.js
index a9d84a6d43..c768c4386d 100644
--- a/conference.js
+++ b/conference.js
@@ -1721,8 +1721,23 @@ export default {
let titleKey;
if (error.name === JitsiTrackErrors.PERMISSION_DENIED) {
- descriptionKey = 'dialog.screenSharingPermissionDeniedError';
- titleKey = 'dialog.screenSharingFailedToInstallTitle';
+
+ // in FF the only option for user is to deny access temporary or
+ // permanently and we only receive permission_denied
+ // we always show some info cause in case of permanently, no info
+ // shown will be bad experience
+ //
+ // TODO: detect interval between requesting permissions and received
+ // error, this way we can detect user interaction which will have
+ // longer delay
+ if (JitsiMeetJS.util.browser.isFirefox()) {
+ descriptionKey
+ = 'dialog.screenSharingFirefoxPermissionDeniedError';
+ titleKey = 'dialog.screenSharingFirefoxPermissionDeniedTitle';
+ } else {
+ descriptionKey = 'dialog.screenSharingPermissionDeniedError';
+ titleKey = 'dialog.screenSharingFailedToInstallTitle';
+ }
} else {
descriptionKey = 'dialog.screenSharingFailedToInstall';
titleKey = 'dialog.screenSharingFailedToInstallTitle';
diff --git a/lang/main.json b/lang/main.json
index ca113ffaae..ecd96612a8 100644
--- a/lang/main.json
+++ b/lang/main.json
@@ -293,6 +293,8 @@
"permissionDenied": "Permission Denied",
"screenSharingFailedToInstall": "Oops! Your screen sharing extension failed to install.",
"screenSharingFailedToInstallTitle": "Screen sharing extension failed to install",
+ "screenSharingFirefoxPermissionDeniedError": "Something went wrong while we were trying to share your screen. Please make sure that you have given us permission to do so. ",
+ "screenSharingFirefoxPermissionDeniedTitle": "Oops! We weren’t able to start screen sharing!",
"screenSharingPermissionDeniedError": "Oops! Something went wrong with your screen sharing extension permissions. Please reload and try again.",
"cameraUnsupportedResolutionError": "Your camera does not support required video resolution.",
"cameraUnknownError": "Cannot use camera for an unknown reason.",