Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Unified Diff: chrome/browser/resources/gaia_auth_host/saml_handler.js

Issue 1936903002: Allow SAML logins to use the webcam (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test case and xml formatting Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/gaia_auth_host/saml_handler.js
diff --git a/chrome/browser/resources/gaia_auth_host/saml_handler.js b/chrome/browser/resources/gaia_auth_host/saml_handler.js
index 9b6ceb94c001034cff1594c0687406de6c1657c9..e494d2aad6f45759d6122d2e999e1c39bcb36b44 100644
--- a/chrome/browser/resources/gaia_auth_host/saml_handler.js
+++ b/chrome/browser/resources/gaia_auth_host/saml_handler.js
@@ -147,6 +147,12 @@ cr.define('cr.login', function() {
'loadabort', this.onLoadAbort_.bind(this));
this.webview_.addEventListener(
'loadcommit', this.onLoadCommit_.bind(this));
+ this.webview_.addEventListener(
+ 'permissionrequest', function(e) {
+ if (e.permission === 'media') {
+ e.request.allow();
+ }
+ });
this.webview_.request.onBeforeRequest.addListener(
this.onInsecureRequest.bind(this),

Powered by Google App Engine
This is Rietveld 408576698