Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2020-06-30 00:26:16 +0300
committerGitHub <noreply@github.com>2020-06-30 00:26:16 +0300
commita780db04665f4cf88853d5110e2e8505afafbf74 (patch)
tree2737c2a575088c276470b53edbb1c0bbbc2f5a26 /js/piwik.js
parentbe326c4abd2fd8b9958009dbe99802f378255c35 (diff)
Better detection for cookies for browser plugins report for hybrid consent (#16101)
Diffstat (limited to 'js/piwik.js')
-rw-r--r--js/piwik.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/js/piwik.js b/js/piwik.js
index e9b8c1ffda..2815bf0eee 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -4023,9 +4023,13 @@ if (typeof window.Piwik !== 'object') {
if (isFunction(windowAlias.GearsFactory)) {
browserFeatures.gears = '1';
}
-
- // other browser features
- browserFeatures.cookie = hasCookies();
+
+ if (!isDefined(windowAlias.showModalDialog) && isDefined(navigatorAlias.cookieEnabled)) {
+ browserFeatures.cookie = navigatorAlias.cookieEnabled ? '1' : '0';
+ } else {
+ // Eg IE11 ... prevent error when cookieEnabled is requested within modal dialog. see #11507
+ browserFeatures.cookie = hasCookies();
+ }
}
var width = parseInt(screenAlias.width, 10);
@@ -6785,7 +6789,6 @@ if (typeof window.Piwik !== 'object') {
*/
this.disableCookies = function () {
configCookiesDisabled = true;
- browserFeatures.cookie = '0';
if (configTrackerSiteId) {
deleteCookies();