-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
new_audit: ensure clickjacking mitigation through XFO or CSP #16290
base: main
Are you sure you want to change the base?
new_audit: ensure clickjacking mitigation through XFO or CSP #16290
Conversation
…ve self or none, but any value to relax the framing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert your changes to cli/test/smokehouse/frontends/smokehouse-bin.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still changes to smokehouse-bin.js, not sure why but can you revert them?
const headings = [ | ||
/* eslint-disable max-len */ | ||
{key: 'description', valueType: 'text', subItemsHeading: {key: 'description'}, label: str_(i18n.UIStrings.columnDescription)}, | ||
{key: 'directive', valueType: 'code', subItemsHeading: {key: 'directive'}, label: str_(UIStrings.columnDirective)}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This directive column will never have any value, I think we can just remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the column and pushed a new CL.
For the smokehouse-bin, I modified it (timestamp) and pushed the original version afterwards, but it seems to be empty in the PR.
In my branch it's correctly present: https://github.com/sebastian9er/lighthouse/blob/lighthouse-clickjacking/cli/test/smokehouse/frontends/smokehouse-bin.js
Summary
Adding a new audit to Ligththouse, which detects missing Clickjacking mitigation through the X-Frame-Options or Content-Security-Policy HTTP header.
Part of a larger change to introduce more similar header deployments.
Similar to the HSTS audit (#16257), the description contains a placeholder doc link until the internal doc is approved. @adamraine FYI