From 197203727417a03d87053a47e5aa5175a76e3e0b Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Thu, 17 Oct 2013 04:24:53 -0400 Subject: [PATCH] Fix vulnerability in handling _session argument of utils/save-prefs (#1489382) --- program/js/editor.js | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/program/js/editor.js b/program/js/editor.js index 63186fb..f341ccb 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -70,8 +70,11 @@ rcmail.change_identity(elem); // Focus previously focused element if (fe && fe.id != rcmail.env.composebody) { - window.focus(); // for WebKit (#1486674) - fe.focus(); + // use setTimeout() for IE9 (#1488541) + window.setTimeout(function() { + window.focus(); // for WebKit (#1486674) + fe.focus(); + }, 10); } } -- Gitblit v1.9.1