gitlab-ce: uncaught javascript exception if gitlab-ce provided session for gitlab-ci
Created by: Senorsen
Version: GitLab 7.9.2 c46d4f5
, GitLab CI 7.8.0.pre e5cfac6
Background: Setup GitLab with GitLab-CI (for my example, GitLab is at https://gitlab.xxx.com, GitLab-CI is at https://ci.xxx.com).
Reproduce:
- Open GitLab-CI and log in (using GitLab as session provider,
Login with GitLab
button) - Open a new window (tab) and open GitLab (https://gitlab.xxx.com)
- Click on the left-top button (the GitLab icon) to reload the page content
- the page will be blank, and in the Browser Console (Developer's tool), an uncaught exception appears:
Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'https://ci.xxx.com/user_sessions/callback?code=<code>' cannot be created in a document with origin 'https://gitlab.xxx.com'.
(application-5ec1aeb4604cbfbeff836f956308b0ed.js:12)
I think this is a gitlab related issue, not in the gitlab-ci side. Am I right?
Thanks.