Skip to content

Cookie warning pops up in IE11 ShowModalDialog #11507

@oldcookie

Description

@oldcookie

When the tracker is being initialized, configCookiesDisabled is set to true by default. When hasCookies() is called by detectBroweserFeatures() during initialization, this causes a cookie warning dialog to popup twice(each time navigatorAlias.cookieEnabled) is accessed. This occurs every time the modal dialog is opened.

           function hasCookies() {
                if (configCookiesDisabled) {
                    return '0';
                }
                if (!isDefined(navigatorAlias.cookieEnabled)) {
                    var testCookieName = getCookieName('testcookie');
                    setCookie(testCookieName, '1');
                    return getCookie(testCookieName) === '1' ? '1' : '0';
                }
                return navigatorAlias.cookieEnabled ? '1' : '0';
            }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Waiting for user feedbackIndicates the Matomo team is waiting for feedback from the author or other users.duplicateFor issues that already existed in our issue tracker and were reported previously.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions