PopupBlocker icon indicating copy to clipboard operation
PopupBlocker copied to clipboard

Options are incorrectly displayed when "long link" is blocked

Open AdamWr opened this issue 4 years ago • 4 comments

Steps to reproduce:

  1. For example, add this rule to user filter:
example.org#%#AG_onLoad(function() { document.documentElement.addEventListener("click", () => window.open(`/test${"t".repeat(500)}`)) });

or run this code in console (after step 2):

document.documentElement.addEventListener("click", () => window.open(`/test${"t".repeat(500)}`))
  1. Go to - https://example.org/
  2. Click somewhere
  3. Popup should be blocked
  4. Click on "Options" button
Screenshot - some options are not visible

image

It should looks like that:

Screenshot

image

AdGuard Popup Blocker (Beta) 2.5.56

AdamWr avatar Sep 22 '21 11:09 AdamWr

I have the same problem as above.

ghost avatar May 03 '24 10:05 ghost

@NightmareWyrm, hi! This is not reproducible on my side, could you please specify the website and steps to reproduce this?

@AdamWr, could you please confirm that this issue is fixed?

stanislav-atr avatar May 08 '24 13:05 stanislav-atr

Unfortunately, I still can reproduce it with version 2.5.94. As far as I understand, the problem is that the blocked link doesn't fit on the screen, because is too long. If I change repeat(500) to for example repeat(450) (in the script from the first post) then it's fine. @stanislav-atr Could you please try to change it to something like repeat(50000):

document.documentElement.addEventListener("click", () => window.open(`/test${"t".repeat(50000)}`))

and then check again?

AdamWr avatar May 08 '24 14:05 AdamWr

@NightmareWyrm, hi! This is not reproducible on my side, could you please specify the website and steps to reproduce this?

Go to this link: https://totalsportek.pro/game/real-madrid-vs-bayern-munchen/26987/ Click above the video player and below the live stream multiple times to trigger popup

image

ghost avatar May 08 '24 18:05 ghost