OAuth2无法在IE9上运行

在Chrome / FF中,以下示例正常,但IE9中存在问题。

var clientId = 'XXXXXXXXX.apps.googleusercontent.com'; var apiKey = 'XXXXXXXX_XXXXXXXXXXXXXXXh1o'; var scopes = 'https://www.googleapis.com/auth/calendar'; function handleClientLoad() { $(".modal").show(); gapi.client.setApiKey(apiKey); window.setTimeout(checkAuth, 1); } function checkAuth() { gapi.auth.authorize({ client_id: clientId, scope: scopes, immediate: true }, handleAuthResult); } function handleAuthResult(authResult) { var authorizeButton = document.getElementById('authorize-button'); if (authResult) { authorizeButton.style.visibility = 'hidden'; showPanel(); } else { authorizeButton.style.visibility = ''; authorizeButton.onclick = handleAuthClick; } $(".modal").hide(); } function handleAuthClick(event) { gapi.auth.authorize({ client_id: clientId, scope: scopes, immediate: false }, handleAuthResult); return false; } function showPanel() { $("div#mainPanel").show("fast"); } function makeApiCall() { gapi.client.load('calendar', 'v3', function () { var request = gapi.client.calendar.events.list({ 'calendarId': 'primary' }); request.execute(function (resp) { for (var i = 0; i < resp.items.length; i++) { var li = document.createElement('li'); li.appendChild(document.createTextNode(resp.items[i].summary)); document.getElementById('events').appendChild(li); } }); }); } 

由于某种原因,IE9中的authResult变量为null,而handleAuthClick单击事件弹出一个空白窗口而不是Google凭据信息。

IE9有什么问题?