Skip to content
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

Properly line up scissors on pkey page in Safari #1304

Merged
merged 1 commit into from
Mar 31, 2017

Conversation

el-mapache
Copy link
Contributor

Why: The icon appears to be getting set incorrectly because of a CSP
violation. It used an inline style, and safari seems to be more
stringent about that compared with other browsers.

Can be tested manually with the following steps:
1). Use any recent branch of identity-idp except for this one (as those branches will contain inline styles on the scissor icon).
2). Comment out line 38 of config/initializers/secure_headers.rb
3). (Re)Start your server.
4). Visit the personal key screen in Safari. You should see something like this:

screen shot 2017-03-31 at 3 24 02 pm

If you open the console, you'll also see a CSP violation for inline-styles

5). Check out this branch and visit the personal key screen in safari. You'll see the icon lined up nicely with the dotted border, as it appears in other browsers.

🎉

**Why**: The icon appears to be getting set incorrectly because of a CSP
violation. It used an inline style, and safari seems to be more
stringent about that compared with other browsers.
Copy link
Member

@hursey013 hursey013 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, who knew? looks good! i did a quick search for other inline styles and came across one in a mailer layout but I think that should be fine since it's not ever displayed on the site.

@el-mapache
Copy link
Contributor Author

@hursey013 Yeah I think as long as people's mail clients aren't also checking for these kinds of violations we'll be 👌

@el-mapache el-mapache merged commit 8b59065 into master Mar 31, 2017
@el-mapache el-mapache deleted the ab-scissor-icon-line-up branch March 31, 2017 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants