jeanphix / Ghost.py

Webkit based scriptable web browser for python.
http://ghost-py.readthedocs.org/en/latest/
2.77k stars 380 forks source link

HTML5 web storage does not work #285

Open ablegao opened 8 years ago

ablegao commented 8 years ago

2015-12-21T18:47:22.395Z [WARNING ] Ghost<6ecb056a-1b88-4957-ad2e-d9757d694300>: https://h5.m.taobao.com/app/movie/mods/index.js(5): QuotaExceededError: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota.

EvaSDK commented 6 years ago

Looks like this site tried to use HTML5 web storage but current code explicitly enables and disables this at the same time: https://github.com/jeanphix/Ghost.py/blob/0.2.3/ghost/ghost.py#L400-L402

See also documentation http://doc.qt.io/archives/qt-4.8/qwebsettings.html#setObjectCacheCapacities

EvaSDK commented 6 years ago

Also, the code was updated in commit 30d942d27e95c96c28a4ac5765716eab9eb4aad9 but this still does not allow any actual storage.