disconnectme / disconnect

Disconnect is a browser extension that makes the web faster, more private, and more secure.
https://disconnect.me/
GNU General Public License v3.0
781 stars 136 forks source link

localStorage access error in chrome console #315

Open minj opened 10 years ago

minj commented 10 years ago

Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.

chrome-extension://jeoacafpbcihiomhlakheieifhpjdfeo/scripts/vendor/port/port.js:30

happens only on some domains, e. g. hattrick.org

carbureted commented 10 years ago

Hrm, I can't reproduce this - any chance you've disabled cookies or localStorage on your browser?

minj commented 10 years ago

Only third-party cookies are disabled but this should not be consequential.

I maintain an extension myself actually and in my experience localStore must be injected into closure scopes manually, i. e.

(function(localStorage) {
    // use localStorage
})(localStorage);

I have no idea why though. Maybe a chrome bug?

fleuryc commented 10 years ago

:+1:

patricmutwiri commented 10 years ago

By the way, i noted that the error is there even when you allow 3rd party cookies for that domain

abelaska commented 10 years ago

+1

Pysis868 commented 9 years ago

I am still getting this error in 5.18.22.