Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Camp_GA] JS issue when cookies are disabled #98

Open
FrClem opened this issue Apr 9, 2018 · 0 comments
Open

[Camp_GA] JS issue when cookies are disabled #98

FrClem opened this issue Apr 9, 2018 · 0 comments

Comments

@FrClem
Copy link
Contributor

FrClem commented Apr 9, 2018

Viewed on: 2018-03-27
URL to reproduce: https://secure.mencap.org.uk
Browser: Chrom(ium) 64 on Linux, Cookies DISABLED

Inspector error:

Uncaught DOMException: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document.
at Object.Drupal.behaviors.campaignion_google_analytics_donation.attach

Related JS code, in particular:

if (typeof window.sessionStorage === 'undefined') {
        window.sessionStorage = {};
        window.sessionStorage['setItem'] = function () {};
        window.sessionStorage['getItem'] = function () {};
        window.sessionStorage['removeItem'] = function () {};
      }

window.sessionStorage cannot be read => JS error ==> page looks weird

moreonion/morelesszen#1 might be a related issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant