diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /browser/tools/mozscreenshots/mozscreenshots/extension/lib/permissionPrompts.html | |
parent | Initial commit. (diff) | |
download | thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | browser/tools/mozscreenshots/mozscreenshots/extension/lib/permissionPrompts.html | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/browser/tools/mozscreenshots/mozscreenshots/extension/lib/permissionPrompts.html b/browser/tools/mozscreenshots/mozscreenshots/extension/lib/permissionPrompts.html new file mode 100644 index 0000000000..92ec9805b5 --- /dev/null +++ b/browser/tools/mozscreenshots/mozscreenshots/extension/lib/permissionPrompts.html @@ -0,0 +1,64 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this file, + - You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8" /> + <title>Permission Prompts</title> + </head> + <body> + <button + id="geo" + onclick="navigator.geolocation.getCurrentPosition(() => {})" + > + Geolocation + </button> + <button id="xr" onclick="content.navigator.getVRDisplays();">WebXR</button> + <button id="persistent-storage" onclick="navigator.storage.persist()"> + Persistent Storage + </button> + <button + id="webRTC-shareDevices" + onclick="shareDevice({video: true, fake: true});" + > + Video + </button> + <button + id="webRTC-shareMicrophone" + onclick="shareDevice({audio: true, fake: true});" + > + Audio + </button> + <button + id="webRTC-shareDevices2" + onclick="shareDevice({audio: true, video: true, fake: true});" + > + Audio and Video + </button> + <button + id="webRTC-shareScreen" + onclick="shareDevice({video: {mediaSource: 'screen'}});" + > + Screen + </button> + <button id="web-notifications" onclick="Notification.requestPermission()"> + web-notifications + </button> + <a id="addons" href="borderify.xpi">Install Add-On</a> + <form> + <input type="email" id="email" value="email@example.com" /> + <input type="password" id="password" value="" /> + <button type="submit" id="login-capture">Login</button> + </form> + + <script> + // Share device used in onclick calls above. + /* exported shareDevice */ + function shareDevice(config) { + navigator.mediaDevices.getUserMedia(config); + } + </script> + </body> +</html> |