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

Unified Diff: chrome/browser/resources/gaia_auth/main.js

Issue 141083005: Disable context menu on signin page in the embedded flow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « chrome/browser/resources/gaia_auth/OWNERS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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']},
« no previous file with comments | « chrome/browser/resources/gaia_auth/OWNERS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698