splash: localStorage doesn't work
We’re trying to enable it by using
settings.setAttribute(QWebSettings.LocalStorageEnabled, True)
but this doesn’t work because earlier we enable private mode:
settings.setAttribute(QWebSettings.PrivateBrowsingEnabled, True)
and when QWebKit is in private mode localStorage is disabled.
About this issue
- Original URL
- State: open
- Created 9 years ago
- Comments: 27 (18 by maintainers)
Commits related to this issue
- adds Lua splash:private_mode_enabled property this allows users to enable/disable private mode on demand from Lua scripts and makes fix for #221 possible — committed to pawelmhm/splash by pawelmhm 9 years ago
- adds Lua splash:private_mode_enabled property this allows users to enable/disable private mode on demand from Lua scripts and makes fix for #221 possible — committed to pawelmhm/splash by pawelmhm 9 years ago
- adds Lua splash:private_mode_enabled property this allows users to enable/disable private mode on demand from Lua scripts and makes fix for #221 possible — committed to pawelmhm/splash by pawelmhm 9 years ago
- adds Lua splash:private_mode_enabled property this allows users to enable/disable private mode on demand from Lua scripts and makes fix for #221 possible — committed to pawelmhm/splash by pawelmhm 9 years ago
- Enable local storage. Fixes GH-221. It seems issus with private mode + local storage are fixed in recent webkit. — committed to scrapinghub/splash by kmike 7 years ago
- Revert localStrage changes. Apparent fix of GH-221 happened because annulen's webkit TP5 (unlike Alpha 2) doesn't have Private Mode working. — committed to scrapinghub/splash by kmike 7 years ago
FWIW, I just encountered this problem and was able to work around it by creating a Javascript profile that includes the Modernizr localStorage shim.