question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

localStorage doesn't work

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:27 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
danielnaabcommented, Mar 15, 2017

FWIW, I just encountered this problem and was able to work around it by creating a Javascript profile that includes the Modernizr localStorage shim.

0reactions
dalepocommented, May 29, 2018

I still have problems with different sessions sharing local storage, this makes impossible to scrape SPA sites concurrently. EDIT: I was running my environment with aquarium, we were able to fix it by setting one slot per splash instance. I don’t know how slots work but it seems that they share resources somehow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Localstorage doesn't work properly - Stack Overflow
Press F12 and then in the Applications tab, on the left menu expand localstorage to see your domain and then click on that,...
Read more >
localStorage doesn't work for all of the elements - SitePoint
I have a code which every time i click the button it changes the background color of different elements by toggling classes and...
Read more >
507361 - localStorage doesn't work in file:/// documents
URL works in a local directory with cookies for Opera and Safari, but Mozilla using localStorage requires the file to be online to...
Read more >
Local Storage doesn't work at all!!! (Example) - Treehouse
When I check the console the variables and local storage seem to be fine but it simply doesnt work. Very confusing to me....
Read more >
Please Stop Using Local Storage - Randall Degges
Stop using local storage to store sensitive information. If you're putting a JWT in local storage you're doing it wrong.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found