On 2014-07-21 07:45, Thomas Bruederli wrote:
We're proud to announce the second service release to update the stable version 1.0 of Roundcube webmail.
We upgraded from Roundcube 0.9.5 to 1.0.2 yesterday. Our helpdesk reports a steady trickle of reports of problems from people running Safari on MacOS and Mobile Safari on iPads and iPhones.
Experiments suggest that it has something to do with "Private Browsing" which is implemented by both Safari and Mobile Safari.
This is true of a completely vanilla Roundcube 1.0.2 installation: it isn't a consequence of any change that we have made locally.
Roundcube 1.0 uses Javascript local storage (http://hacks.mozilla.org/2009/06/localstorage/) to store some state on the client computer/device. I think that the original idea which to store draft messages. However it looks like preferences are also stored there.
All well and good, but Safari "Private Browsing" appears to disable local storage.
The Javascript code provided by Roundcube 1.0.2 throws an exception in line 7731 of app.js
this.local_storage_set_item = function(key, data, encrypted) { // TODO: add encryption return localStorage.setItem(this.get_local_storage_prefix() + key, JSON.stringify(data)); };
which is a consequence of the following in skins/larry/ui.js :
// write prefs to local storage
if (window.localStorage) {
rcmail.local_storage_set_item('prefs.larry', prefs);
}
The exception is:
QuotaExceededError: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota.
and this stops Roundcube working at all.
Is this expected behaviour?
I was a little surprised that I couldn't find any tickets in the Roundcube bugtraq, although I suspect that this explains:
http://trac.roundcube.net/ticket/1489901
as this precisely describes the symptoms I see.
I'm happy to write up a ticket if this is something which can be fixed, but thought that I should ask here first.