From a4482d27f9d8b8bfa8452503ff950d615c238a6e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 29 Aug 2016 11:01:12 +0200 Subject: [PATCH] Fix error causing empty INBOX listing in Firefox when using an URL with user:password specified (#5400) --- CHANGELOG | 1 + program/js/app.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index a890c54511f..782fd8875c4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -14,6 +14,7 @@ CHANGELOG Roundcube Webmail - Fix bug where names of downloaded files could be malformed when derived from the message subject (#5404) - Fix so "All" messages selection is resetted on search reset (#5413) - Fix bug where folder creation could fail if personal namespace contained more than one entry (#5403) +- Fix error causing empty INBOX listing in Firefox when using an URL with user:password specified (#5400) RELEASE 1.2.1 ------------- diff --git a/program/js/app.js b/program/js/app.js index 5e3cc83f44e..43f186c8451 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -7932,7 +7932,11 @@ function rcube_webmail() this.update_state = function(query) { if (window.history.replaceState) - window.history.replaceState({}, document.title, rcmail.url('', query)); + try { + // This may throw security exception in Firefox (#5400) + window.history.replaceState({}, document.title, rcmail.url('', query)); + } + catch(e) { /* ignore */ }; }; // send a http request to the server