proginosko / LeechBlockNG-chrome

LeechBlock NG (Next Generation) for Chrome is a simple productivity tool designed to block those time-wasting sites that can suck the life out of your working day. All you need to do is specify which sites to block and when to block them.
https://www.proginosko.com/leechblock/
Mozilla Public License 2.0
72 stars 14 forks source link

[BUG] LB does not block page if "Leave Page..."-type dialogue pops up #61

Open smayer97 opened 7 months ago

smayer97 commented 7 months ago

Example, if you are typing in a Google Chat, and page-blocking conditions are met, e.g. "Immediately block pages on these sites once blocking conditions are met", if the chat message is not sent, the dialogue pops up asking "Something is incomplete. Are you sure you want to leave this page?" (or some such wording; not exact quote), LeechBlock does not block the page.

Even if you click "Cancel", after the dialogue is gone, the page remains unblocked.

I do not know if this applies to other situations like form filling pages, where a similar dialogue may pop up. I do not know if this also occurs in the Firefox version of LB.

I would expect that LB would at least still follow through after the dialogue box is dismissed (whether "Cancel" or "Leave" is clicked).

smayer97 commented 7 months ago

looks like this is the same or similar problem as presented for the Firefox version here: https://github.com/proginosko/LeechBlockNG/issues/386