noPasswordCallback_: null,
/**
+ * Invoked when the authentication flow had to be aborted because content
+ * served over an unencrypted connection was detected.
+ insecureContentBlockedCallback_: null,
+
+ /**
* The iframe container.
* @type {HTMLIFrameElement}
*/
},
/**
+ * Sets insecureContentBlockedCallback_.
+ * @type {function(string)}
+ */
+ set insecureContentBlockedCallback(callback) {
+ this.insecureContentBlockedCallback_ = callback;
+ },
+
+ /**
* Loads the auth extension.
* @param {AuthMode} authMode Authorization mode.
* @param {Object} data Parameters for the auth extension. See the auth
return;
}
+ if (msg.method == 'insecureContentBlocked') {
+ if (this.insecureContentBlockedCallback_) {
+ this.insecureContentBlockedCallback_(msg.url);
+ } else {
+ console.error(
+ 'GaiaAuthHost: Invalid insecureContentBlockedCallback_.');
+ }
+ return;
+ }
+
if (msg.method == 'switchToFullTab') {
chrome.send('switchToFullTab', [msg.url]);
return;