Apologies for the long wait time here – just getting back from PTO. Taking a look now and trying to reproduce the issue but I’m using a Linux VM which can (as it has in the past) have an effect on these types of behavior.
I’ve reached out to our Linux devs as well to take a look.
Additionally (I should have asked this initially), can anyone here encountering this confirm that the issue still occurs if you disable the Continue running background apps when Brave is closed option in brave://settingssystem/?
have a new tab open in brave, close all other tabs
open thunar drag and drop that file from thunar to brave
verify that there are still no inhibitors
spam the download button inside the pdf viewer (which isn’t brave’s download button). nothing really appears to be happening, you can just spam it, no dialog windows, nothing
verify that now bave is inhibiting screensaver
for good measure you can now spam it again, that would add a second inhibition. and then a third. and so on.
I can confirm the issue is occurring for me on Arch linux with current brave. However, the issue is not exclusive to brave and seems to be an upstream problem. I have the same behaviour with the binary official Chrome application as well.
Confirm this is reproducable with Brave 1.86.139, running on debian 13 with Cinnamon DE. I can clear the shutdown:sleep inhibitor by selecting “Exit” from the Brave menu, but not by closing all brave windows or killing all processes in Brave’s task manager.