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
Open popup in a new window when setting opt-out cookies #8646
Conversation
Ping @mattab Please give me your thoughts on the pop-blocker issue. |
if tests work on all vanilla browsers (ie. PR Todo checklist) this is good to go, as it will work on all default configs and so for most people 👍 |
…E11 don't have addEventListener method).
Doesn't seem to work on chrome. EDIT: Works on chrome, but if trusted host is not set for the Piwik URL, it leads to a hard to diagnose error. |
c9cd37b
to
c44c14e
Compare
Code wise looks okay to me, leaving the rest to @mattab I'm really not much into this topic and not sure re implication of popup blocker etc (which is enabled by default in most browsers nowadays?) |
Looks good to me! 👍 I will merge it and test it on demo2, if there is any problem with popup blockers we could revert this |
Always use new window when setting opt-out cookies
Just out of interest... Does it work when JavaScript is disabled? I've never used it |
Amazingly, it does work with Javascript disabled :) |
Btw added the opt-out iframe in this page: http://piwik.org/privacy-policy/ (loading from demo.piwik.org which is running 2.15.0-b5) |
This PR modifies the opt out form to always use a new window when setting the opt out cookies. This should work around all browsers that have issues w/ 3rd party cookies.
Note: This approach will break when some pop-up blockers are used.
Also Note: This PR is not complete.
Refs #8578
TODO