From 43e98a61f0a66ba6a1bcc9db71eba84e4a703b73 Mon Sep 17 00:00:00 2001 From: paulmeyer Date: Thu, 2 Apr 2015 22:41:41 -0700 Subject: [PATCH] This patch utilizes the new zoom mode API to isolate the zoom of the popup signin window (in the new avatar menu). BUG=473223 Review URL: https://codereview.chromium.org/1057613004 Cr-Commit-Position: refs/heads/master@{#323649} --- chrome/browser/resources/gaia_auth_host/authenticator.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chrome/browser/resources/gaia_auth_host/authenticator.js b/chrome/browser/resources/gaia_auth_host/authenticator.js index faee40f4e739..aad0e7f85786 100644 --- a/chrome/browser/resources/gaia_auth_host/authenticator.js +++ b/chrome/browser/resources/gaia_auth_host/authenticator.js @@ -535,6 +535,14 @@ cr.define('cr.login', function() { * @private */ Authenticator.prototype.onContentLoad_ = function(e) { + if (this.isConstrainedWindow_) { + // Signin content in constrained windows should not zoom. Isolate the + // webview from the zooming of other webviews using the 'per-view' zoom + // mode, and then set it to 100% zoom. + this.webview_.setZoomMode('per-view'); + this.webview_.setZoom(1); + } + // Posts a message to IdP pages to initiate communication. var currentUrl = this.webview_.src; if (currentUrl.lastIndexOf(this.idpOrigin_) == 0) { -- 2.11.4.GIT