Index: chrome/browser/resources/gaia_auth/main.js |
diff --git a/chrome/browser/resources/gaia_auth/main.js b/chrome/browser/resources/gaia_auth/main.js |
index 894085e0fef64d45bd641c763bb9c143cfb599d8..5cccf2a9492d0d9e94257f39eb787b9742e4a499 100644 |
--- a/chrome/browser/resources/gaia_auth/main.js |
+++ b/chrome/browser/resources/gaia_auth/main.js |
@@ -168,6 +168,9 @@ Authenticator.prototype = { |
'newwindow', this.onWebviewNewWindow_.bind(this, gaiaFrame)); |
} |
if (this.constrained_) { |
+ var preventContextMenu = 'document.addEventListener("contextmenu", ' + |
+ 'function(e) {e.preventDefault();})'; |
+ gaiaFrame.executeScript({code: preventContextMenu}); |
gaiaFrame.request.onCompleted.addListener( |
this.onWebviewRequestCompleted_.bind(this), |
{urls: ['<all_urls>'], types: ['main_frame']}, |