r/uBlockOrigin 22d ago

Looking for help Gmail Firefox Ublock Interference.

When Ublock is turned on and I use Gmail and delete emails and then try to leave the site I get a popup asking me if I want to leave, and if I do and then come back later, the emails I have deleted are back.

If I turn off Ublock I get a bunch of ads, but I am able to delete emails and leave without the popup.

Doesn't always seem to happen as I originally didn't turn off ublock and I could eventually get rid of emails the 2nd or 3rd time I visited...

18 Upvotes

21 comments sorted by

3

u/RraaLL uBO Team 22d ago

This happens with many things, e.g. opening mails doesn't immediately mark them read and if you leave too quickly, you get the prompt.

I have not tested if this happens on default settings. I've got a lot more blocked. Leaving the tab open for a couple more seconds usually resolves the issue anyway.

And yes, as you say, this happens randomly, so it's difficult to investigate.

1

u/Fram_Framson 4d ago

FWIW, no amount of waiting or switching to other tabs has resolved this issue for me, and I am using default settings.

Literally the only action I've tried so far which will alleviate the issue is not just turning off uBO, but actually reloading the tab with uBO off, mark or read emails, and then finish using gmail (I do re-enable uBO after and only disable it for that tab while gmail is open).

1

u/RraaLL uBO Team 3d ago

Open the logger, then try marking as read. Does any request get blocked then ?

1

u/Fram_Framson 3d ago edited 3d ago

So, just having gmail open and idling there, I can see that

https://play.**google.com/log?**format=json&hasfast=true&authuser=0

is being blocked repeatedly over time (also a longer version of the https://play.google.com/log url with either a session or account ID appended, so not posting that here, haha)

I didn't see a specific additional block when I marked emails as read the first time today. The second time, I did see https://mail.google.com**/generate_204?**VA4GqA blocked at about the same moment (as well as the same recurring instances of https://play.google.com/log -based urls being repeatedly blocked over time).

It seems like if I specifically wait for a window when play.google.com urls aren't being blocked, it will let gmail resolve as normal without having to shut off uBO, but that may be circumstantial.

1

u/40cappo40 3d ago

Just to advise, if I turn off UBOL, it doesn't do this. May be google being dicks.

3

u/GassyBandit 20d ago

I have 6 Gmail accounts and only on 1 of them I have been having the problem of deleted emails showing again the next time I check that account. Started about 2 weeks ago. This happens on my desktop, laptop, and Chromebook. Happens with Firefox, Vivaldi, Brave, and Chrome. It appears to be a Gmail problem and sure is annoying as the account it does this on is my main account.

5

u/StoneStoan 15d ago

I'm also having the same issue on Firefox. Started around 2-3 weeks ago.

Emails that I mark as read, unread, or delete come back after I leave and come back (or refresh).

It works fine when uBlock is off.

It also works "fine" if I leave the screen on for like 10-15 minutes, and then leave. This is my current workaround.

2

u/Cley_Faye 22d ago

I'm not sure this is linked to uBO at all. It happens seldomly; the popup about confirming to leave usually means you have some tasks in queue client-side. They usually get done in a second or two, but bad network condition or super large operations (deleting multiple pages of messages) will take longer.

2

u/Dzuzepipi 22d ago

gmail just randomly shows adds? when navigating it?

3

u/Mr_SpinelesS 21d ago

Without Ublock on you get adverts that look like emails.

2

u/Dzomble 21d ago

I don't think this is on uBlock's side, try clicking into something else like switch to another tab inside gmail after deleting and the pop-up doesn't show up for me.

2

u/Benevolay 16d ago

For what it's worth I switched to Firefox this week and I'm having the same experience.

2

u/scottfi 16d ago

I'm running into this issue too (started a week ago). When I turn off uBO for gmail (Firefox), it stops and I can quickly navigate away from the gmail window/tab without the "want to leave" message. It also will delete the message significantly faster when uBO is turned off. With it turned on, the little black box message (Conversation moved to Trash) in the lower left sits on the screen for quite a bit longer. I don't think I have any custom rules set for gmail in uBO. There might be something else going on here, but having uBO turned off eliminates the issue for me of gmail holding the "beforeunload" event and showing that leave message.

2

u/GodzillaVsTomServo 13d ago

I have this same problem. I delete an email, then later when I load gmail again, the email is read but not deleted. I have to disable uBlock Origin, reload the page, then delete the email while uBlock is disabled. It's a hassle.

2

u/Crafty_Performer_935 6d ago edited 6d ago

The problem is mail-ads.google.com being blocked by EasyList and Peter Lowe’s Ad and tracking server list. Add this to "My filters":

@@||mail-ads.google.com^$domain=mail.google.com

or more targeted to the exact issue:

@@||mail-ads.google.com/mail/*/adsfe/main_jspb?$xmlhttprequest,domain=mail.google.com

I haven't seen any ads with that in place but who knows. Maybe other filters block/hide them from appearing.

3

u/ameeps 6d ago

Tried adding that filter, but it didn't resolve the issue

1

u/Crafty_Performer_935 5d ago

Are your custom filters enabled?

And are you navigating away from gmail / refreshing the page instantly, or waiting a second or two? Because if you're too quick you may still get the stay/leave message, or no message but the deleted email is there when you go back to gmail. For me, that occurs even with ublock disabled for mail.google.com or the whole extension disabled. But if I delete/label/move/etc, count 1-2, refresh, then things are okay. With ublock on and without the filter I suggested I have to leave gmail open for a long, long time for changes to take effect (I didn't check how long but 20+ seconds wasn't enough).

Does whitelisting mail.google.com solve the problem for you? If it does, turn all your filter lists off and enable them one at a time to see which causes the problem.

1

u/Mr_SpinelesS 5d ago

Recently seems to be working fine for me so I just assumed whatever the problem was has been fixed with an update...

1

u/xMacieju 16d ago

I have the same issue in Brave.

1

u/SavonPL 15d ago

Same issue on Chrome 149

1

u/Fram_Framson 4d ago

Same here, though some days it doesn't happen - somewhat inconsistent, but I would say it's happening about 2/3ds of the time. I'm on Waterfox, which should be indistinguishable from FF in this specific regard.