Prevent background redirects
Originally https://issues.adblockplus.org/ticket/2095
Some website redirect advertising by having links open in new tab and the origin tab redirect to ads. See details in original trac issue.
We need to have some mechanism to prevent this.
Original ticket
Background
Example: http://tod-news.com/903-nbu_pokazav_novu_stogrivnevu_kupyuru_foto.html
Try to click on the image or article header at the right side.
You may notice that URL will be opened in a new tab and then content of the old background tab will be replaced with advertisement page (http://baila.kralia.com/?source=tod-back
).
There should be a way to prevent such redirects. I've seen this trick on some sites and I've seen at least one ads network which used this trick.
Another example: http://www.pics-money.ru/6/65478/1/
This one even more annoying since redirects you without any clicks. Just wait for a few seconds and it will try to open ads page.
What to change
Implement $redir
flag which will prevent redirection to the target page if it matches. Similar to $popup
one. If a page were redirected in the background tab - close that tab.
Alternative: make $popup
handle both popups and redirects since it already monitors chains of redirections in the newly opened tabs.