If you have a popup blocker enabled in the browser, the cancel button just stays on the same page and does not redirect back to the calling page. Since the OAuth authorize Twitter page comes up in the same parent window in this scenario, window.close() doesn’t close the window in almost all browsers, giving an impression nothing is happening and Cancel doesn’t work. Any thoughts on this?