diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-12-31 20:42:46 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-12-31 20:44:55 -0500 |
commit | 9a9a81bea0bf4e68b3e1ed7ec619947a37d2dbff (patch) | |
tree | 2b3a9b474272338e0a1dcdc144ea5bca74d629d1 /app/views/layouts | |
parent | d33cc4e53070e6afb576911aa4d76dc80eba78b7 (diff) | |
download | gitlab-ce-9a9a81bea0bf4e68b3e1ed7ec619947a37d2dbff.tar.gz |
Don't attempt to set Referrer policy in Safarirs-safari-version-check
While Safari supports the policy, it does not (currently, as of 9.x)
recognize `origin-when-cross-origin` as a valid value, so we omit the
policy entirely under Safari.
Closes #5609
Diffstat (limited to 'app/views/layouts')
-rw-r--r-- | app/views/layouts/_head.html.haml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml index 2e0bd2007a3..dd133ee8b56 100644 --- a/app/views/layouts/_head.html.haml +++ b/app/views/layouts/_head.html.haml @@ -1,9 +1,6 @@ %head{prefix: "og: http://ogp.me/ns#"} %meta{charset: "utf-8"} %meta{'http-equiv' => 'X-UA-Compatible', content: 'IE=edge'} - %meta{name: 'referrer', content: 'origin-when-cross-origin'} - - %meta{name: "description", content: page_description} -# Open Graph - http://ogp.me/ %meta{property: 'og:type', content: "object"} @@ -20,8 +17,8 @@ %meta{property: 'twitter:image', content: page_image} = page_card_meta_tags - - page_title "GitLab" - %title= page_title + %title= page_title('GitLab') + %meta{name: "description", content: page_description} = favicon_link_tag 'favicon.ico' @@ -34,6 +31,8 @@ = include_gon + - unless browser.safari? + %meta{name: 'referrer', content: 'origin-when-cross-origin'} %meta{name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1'} %meta{name: 'theme-color', content: '#474D57'} |