Add support for @grant window.close (Tampermonkey parity) #2538
Labels
bankruptcy
Issues that have been closed for "bug bankruptcy". Usually very old non-active issues.
Milestone
Hi,
I'm developing adblocking script for cases not handled by Adblock Plus filters list
https://greasyfork.org/en/scripts/19993-ru-adlist-js-fixes
and encountered a situation when it have to close a tab when it attempts to unload content to prevent background redirect in it (look for preventPopunders and preventPopMix functions). Some ad scripts open current page in a new tab and then load ads in the previous one to avoid popup blocking in ABP.However, it looks like no matter where I call for
window.close()
it simply doesn't work in Firefox since window in which redirect happens wasn't opened by a script in the first place. In Tampermonkey I solved this with@grant window.close
, but it doesn't work in Greasemonkey for Firefox.The text was updated successfully, but these errors were encountered: