Browser alerts are triggering weird window resizing glitch

EDIT: This is now fixed :raised_hands:

Description of the issue:
All browser alerts from any website are triggering this weird automatic resizing of the browser window towards the top left corner of the screen. The alert appears only after the window is fully resized till the top left corner.

Steps to Reproduce (add as many as necessary):
1. Make the browser window smaller than fullscreen and place it anywhere but the top left corner of the screen.
2. Open any webpage where you know how to make the webpage trigger a browser alert. (The issue doesn’t arise when I manually trigger an alert from the browser console using alert();)
3. Do the action on the webpage that triggers an alert. (That should do it.)

Actual Result (gifs and screenshots are welcome!):

This happens on all webpages that have alerts, not just brave:// pages.
EDIT: This happens for me while changing the location of bookmarks, on Gmail while it shows popup alerts, and on a couple of other webpages that I can’t remember.

Expected result:
No alert should trigger a window resize.

Reproduces how often:
Every time a webpage creates an alert.
I also encountered this some other times when no alert was triggered by the webpage, but I don’t know why that happened, so I couldn’t reproduce it.

Operating System and Brave Version(See the About Brave page in the main menu):
OS - Windows 11 Home Single Language
Version 22H2
OS build 22621.3007

Version 1.62.156 Chromium: 121.0.6167.139 (Official Build) (64-bit)


Please check a guest profile to see if this issue happens there as well. You can open a guest profile via the menu, under More Tools and Open Guest Profile. If you are not able to reproduce this issue with a Guest Profile, the problem likely resides with an extension you have in the primary profile. Looking forward to hearing an update; interesting issue!

I am sorry but I am unable to recreate scenarios that trigger the alert popup in the guest profile.

I can’t access brave://apps and I can’t create bookmarks while in a guest session (the glitch also occurs when changing the location for a bookmark like mentioned in this thread).
I had the glitch occur when I tried to close my Gmail tab and it shows the “Are you sure you want to leave this site?” alert. But somehow I am unable to get Gmail to do it now.

I also stand corrected -
Based on the above-stated scenarios and some others I can’t remember, I was led to believe all alerts from websites trigger this glitch. But I tried using the alert from the W3Schools JS alert guide here and the popup there did not trigger the glitch in my own profile or the guest profile. (Odd!)

So, it is not all alert popups that cause this glitch.

Anyhow, sorry I couldn’t be of more help.
It would be great if you could help me find a scenario where I can have the webpage create an alert so I can test it both on regular browsing and in guest sessions and report back here.

I also checked this with the confirm() method here and the prompt() method here. Neither of them are triggering the glitch… :thinking:

@pleasefixthisbug Can you help me out here and share where you encountered the glitch? The video on your thread is not loading for me.

Apologies for spamming this thread, but @sampson, I just encountered it again while trying to close the guest session, when the browser pops up an alert to ask me if I want to “Close all tabs?” lol

I have finally found someone with the same problem.

I am developing the app that uses this a lot and it happens all the time since last week.

How to reproduce:

  1. open new tab in brave
  2. open developer tool window ( F12 )
  3. write to a console"", "_blank", "800,left=100,top=100")
  4. write to a console right away
window.onbeforeunload = function (e) {
    e = e || window.event;

    if (e) {
      e.returnValue = 'Sure?';

    // For Safari
    return 'Sure?';
  1. now close the window popup and there you go, works 100% of time

Super annoying

@sampson hope you can help, my app is unusable without fixing it.

1 Like

It happens when I try to add an extension on the chrome web store.

1 Like

I am experiencing the same issue. Whenever I take an action in Brave which would open a pop-up window, the pop-up window opens and the Brave window begins to jitter and jump around, and locks up the system until I kill the process. If there are two or more Brave windows open, the other(s) will be grayed out and non-responsive. It seems that during the glitch, all system inputs are delayed, a click will register late. Attempts to exit Brave, however, usually fail. Using htop to observe during the glitch, CPU usage spikes on all cores, but RAM consumption is unchanged. Disabling HW acceleration has no apparent effect.

Examples of triggering events would be closing a window with multiple tabs, or trying to bookmark multiple tabs. It occurs on my primary profile, on private windows, and on a guest profile.

I’m running 1.62.162 Chromium 121.0.6167.164 (Official Build) (64-bit). My OS is 6.1.71-1-MANJARO. The glitch has been occurring for approximately a week.

EDIT: As of Version 1.63.162 Chromium: 122.0.6261.69 (Official Build) (64-bit) and Manjaro 6.1.77-2-MANJARO the issue seems to be resolved

To me it seems like popup window is changing size for some reazon and therefore jumping places.

The most annoying bug i have experienced in any browser in my life.

@sampson Any acknowledgement of this bug or more how to repros are needed?

Same here and it’s maddening. Apps should never change their size without some buy-in from the user.

I have the same problem (ArchLinux - Version 1.62.165 Chromium: 121.0.6167.184 Official Build 64 bit):

  • when I add an extension manually
  • when I add an extension by chrome store
  • when I edit a bookmark

it’s very frustrating, do you know if there is a manual/terminal way to install a crx extension? I need to install an extension but I can’t.

I found a workaround, I downloaded an old brave-stable appimage and I installed without problems the addon using that executable, then I opened my main installation and the addon was installed. I’ll keep the appimage until the bug is fixed.

I am also having this issue:

Brave version: Version 1.62.165 Chromium: 121.0.6167.184 (Official Build) (64-bit)
OS / Distro version: Linux Mint 21.3 Mate Edition
Install Type: Apt-repo ( stable main

This seems to happen with any type of Confirm window that the browser (not a page) asks for. Ex. If you hit the back button with data in a tag that was never submitted. Brave asks if you don’t want to lose your unsubmitted data.

The only way to stop this issue I’ve found is to kill the brave process and you lose all your other windows and tabs in the process. This is quickly becoming a big issue.

welcome to the party :wink: i’d like to see any response whatsoever to this very crucial bug from someone competent

edit: As of latest update, it seems to be fixed in linux version. :pray:

1 Like

Thank you. This seems to be fixed in Windows 10 with
Version 1.63.162 Chromium: 122.0.6261.69

1 Like

This bug seems to be fixed in Win 11 on
Brave Version 1.63.165 Chromium: 122.0.6261.94 (Official Build) (64-bit)

Thank you devs

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.