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

Fix for iframe css injection #736

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joshseltzer
Copy link
Contributor

It seems that CSS was no longer being injected successfully into iframes. I am not sure why it stopped working (seems to have worked at some point in the past), but this solution does away with the old system for handling iframes (though that deprecated code could still be cleaned up), and simply iterates through all iframes found on the page and injects a <style> element for each one.

@589290
Copy link

589290 commented Dec 28, 2022

Does this fix the issue ever since Chrome 108 of user styles not loading upon initial page load? The workaround is to reload the page for the styles to be applied. Hoping this patch obviates the need for the workaround.

@joshseltzer
Copy link
Contributor Author

Does this fix the issue ever since Chrome 108 of user styles not loading upon initial page load? The workaround is to reload the page for the styles to be applied. Hoping this patch obviates the need for the workaround.

@589290 not sure, I am not able to replicate the issue you're describing on Chrome 108, is there an existing issue?

@Thorvarium
Copy link

is this still an issue?

@rthomasdesign
Copy link

I'm still experiencing this issue. Chrome Version 116.0.5845.188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants