You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BugFor errors / faults / flaws / inconsistencies etc.wontfixIf you can reproduce this issue, please reopen the issue or create a new one describing it.
We're seeing the following message on iPhone while tracking mobile site traffic.
"Error: SECURITY_ERR:DOM Exception 18"
I've debugged the javascript and it seems that although we explicitly set disableCookies in our init code, Piwik still tries to access cookies (if only to expire them). For now I've just wrapped the offending code in a try/catch, but I'd appreciate a more elegant fix in a future release.
if (configCookiesDisabled) {
// Temporarily allow cookies just to delete the existing ones
configCookiesDisabled = false;
try{
setCookie(idname, '', -86400, configCookiePath, configCookieDomain);
setCookie(sesname, '', -86400, configCookiePath, configCookieDomain);
setCookie(cvarname, '', -86400, configCookiePath, configCookieDomain);
setCookie(refname, '', -86400, configCookiePath, configCookieDomain);
}catch(err){}
configCookiesDisabled = true;
}
Perhaps another parameter to deal with removing existing cookies would be a more explicit approach? configCookiesDisabled && configDeleteCookies ?
Thanks
Keywords: javascript cookie
The text was updated successfully, but these errors were encountered:
can you give background on what is "Error: SECURITY_ERR:DOM Exception 18" and why it could be important to work around this issue ? who does it impact exactly? we never got this report before. thx
BugFor errors / faults / flaws / inconsistencies etc.wontfixIf you can reproduce this issue, please reopen the issue or create a new one describing it.
We're seeing the following message on iPhone while tracking mobile site traffic.
"Error: SECURITY_ERR:DOM Exception 18"
I've debugged the javascript and it seems that although we explicitly set disableCookies in our init code, Piwik still tries to access cookies (if only to expire them). For now I've just wrapped the offending code in a try/catch, but I'd appreciate a more elegant fix in a future release.
Perhaps another parameter to deal with removing existing cookies would be a more explicit approach? configCookiesDisabled && configDeleteCookies ?
Thanks
Keywords: javascript cookie
The text was updated successfully, but these errors were encountered: