A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/uBlockOrigin/uBlock-issues/issues/786 below:

Adsbygoogle.js injectable does not validate whether iframe going to be injected is already exist or not · Issue #786 · uBlockOrigin/uBlock-issues · GitHub

Prerequisites Description

Symptoms: Thousands of iframe created by ublock itself

What happened:

Some poorly written web page repeat

                <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                <ins class="adsbygoogle" style="display:block" width-responsive="true"></ins>
                <script>(adsbygoogle = window.adsbygoogle || []).push({});</script>

everywhere instead of only the <ins> tag.

And ublock inject iframes everytime when you are loading the script

Possibly violating code: https://github.com/gorhill/uBlock/blob/caa8e7d35ba61214a9d13e7d324b2bd2aa73237f/src/web_accessible_resources/googlesyndication_adsbygoogle.js#L38-L46

It inject iframe without checking whether it already exist or not

A specific URL where the issue occurs

https://www.esjzone.cc/detail/1563843171.html

Steps to Reproduce
  1. Make a HTML,
  2. Paste <ins class="adsbygoogle"/><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> about 20 ~ 30 times
  3. Open it with ublock installed
Expected behavior:

Nothing happened, as there is just several tags

Actual behavior:

Ublock inject thousands of iframes into the page, lag the page very seriously.
You won't even able to open the firefox console

Your environment

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4