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

try/catch createShadowRoot in contentscripts #555

Merged
merged 1 commit into from
Aug 3, 2015
Merged

try/catch createShadowRoot in contentscripts #555

merged 1 commit into from
Aug 3, 2015

Conversation

seanrand
Copy link
Contributor

@seanrand seanrand commented Aug 2, 2015

Currently, the contentscripts throw an error when trying to call createShadowRoot on certain elements (iframes etc).

@gorhill
Copy link
Owner

gorhill commented Aug 3, 2015

That's a bad bug given the importance of this portion of code. Do you have a reproducible scenario where this happens with default settings?

gorhill added a commit that referenced this pull request Aug 3, 2015
try/catch createShadowRoot in contentscripts
@gorhill gorhill merged commit 8e5ff66 into gorhill:master Aug 3, 2015
@gorhill
Copy link
Owner

gorhill commented Aug 3, 2015

Thanks for the patch.

@seanrand seanrand deleted the shadowdom-exception branch August 3, 2015 11:44
@seanrand
Copy link
Contributor Author

seanrand commented Aug 3, 2015

For completeness, I first noticed this happening on https://www.reddit.com when hideElements() gets called on iframe#ad_main with Chromium 44.0.2403.125 and default uBlock settings.

screenshot-20150803t135134

@gorhill
Copy link
Owner

gorhill commented Aug 3, 2015

I first noticed this happening on https://www.reddit.com

Ok, I could not see any lingering bad effects from the unhandled exception. Still, I consider this bug is serious enough to warrant a new release today.

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.

2 participants