[bug 1017850] Check for localstorage