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

Cleanups post CSS support #345

Merged
merged 2 commits into from
Nov 1, 2024
Merged

Conversation

ezzak
Copy link
Contributor

@ezzak ezzak commented Nov 1, 2024

Various cleanup/refactors post CSS support, mainly to highlight in naming/comments that JS and CSS are handled.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 1, 2024
@@ -225,11 +225,7 @@ export const processFoundElements = async (version: string): Promise<void> => {
updateCurrentState(STATES.VALID);
}
} else {
if (response.type === 'EXTENSION') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

was unused

@@ -324,7 +320,7 @@ export function storeFoundElement(element: HTMLElement): void {
updateCurrentState(STATES.INVALID, 'blob: src');
return;
}
if (script.src !== '' || script.innerHTML !== '') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not necessary because CSP prevents inline scripts.

@ezzak ezzak merged commit 4d2979e into facebookincubator:main Nov 1, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants