Commit 54214cdf authored by rsorokin's avatar rsorokin Committed by Commit bot

ChromeOS Gaia: send message 'handshake' to Gaia to establish connection channel

BUG=459647

Review URL: https://codereview.chromium.org/943613002

Cr-Commit-Position: refs/heads/master@{#317048}
parent 7c98bab0
......@@ -360,7 +360,10 @@ cr.define('cr.login', function() {
// Posts a message to IdP pages to initiate communication.
var currentUrl = this.webview_.src;
if (currentUrl.lastIndexOf(this.idpOrigin_) == 0) {
this.webview_.contentWindow.postMessage({}, currentUrl);
var msg = {
'method': 'handshake'
};
this.webview_.contentWindow.postMessage(msg, currentUrl);
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment