Chromium Code Reviews| 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(); |
|
xiyuan
2016/05/03 21:40:18
nit: Add a comment about where the actual permissi
|
| + } |
| + }); |
| this.webview_.request.onBeforeRequest.addListener( |
| this.onInsecureRequest.bind(this), |