Brave Browser Crashes when closing the PiP mode on Fedora Linux 40

Description of the issue:
Every time I try to activate PiP mode, the Brave browser ends up crashing the gnome desktop, thus losing the entire session.
I’ve already tried disabling hardware acceleration and it had no effect.
In the Firefox browser, PiP works perfectly.
The system is a Fedora Linux 40 with gnome(46) and Wayland.
The kernel is: Linux 6.8.11-300.fc40.x86_64
Everything is up to date.

How can this issue be reproduced?

  1. Open Brave on a Gnome Fedora 40
  2. Open a Video in any platform
  3. Activate PiP mode
  4. Close the PiP mode
  5. Crashes the gnome desktop

Expected result:
The PiP should be able to open and close normally.

Brave Version( check About Brave):
Version 1.66.118 Chromium: 125.0.6422.147 (Official Build) (64-bit)

Additional Information:
journalctl log of the crash:

jun 10 20:53:11 fedorapad gnome-shell[4010]: **
jun 10 20:53:11 fedorapad gnome-shell[4010]: libmutter:ERROR:…/src/core/window.c:1524:meta_window_unmanage: assertion failed: (g_list_find (workspace->windows, window) == NULL)
jun 10 20:53:11 fedorapad gnome-shell[4010]: Bail out! libmutter:ERROR:…/src/core/window.c:1524:meta_window_unmanage: assertion failed: (g_list_find (workspace->windows, window) == NULL)
jun 10 20:53:11 fedorapad audit[4010]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=4010 comm=“gnome-shell” exe=“/usr/bin/gnome-shell” sig=6 res=1
jun 10 20:53:11 fedorapad gnome-shell[4010]: == Stack trace for context 0x55a1c39c3050 ==
jun 10 20:53:11 fedorapad gnome-shell[4010]: #0 55a1c3a8d458 i resource:///org/gnome/shell/ui/init.js:21 (10cbc7170bf0 @ 48)
jun 10 20:53:11 fedorapad systemd[1]: Created slice system-systemd\x2dcoredump.slice - Slice /system/systemd-coredump.
jun 10 20:53:11 fedorapad audit: BPF prog-id=89 op=LOAD
jun 10 20:53:11 fedorapad audit: BPF prog-id=90 op=LOAD
jun 10 20:53:11 fedorapad audit: BPF prog-id=91 op=LOAD
jun 10 20:53:11 fedorapad systemd[1]: Started [email protected] - Process Core Dump (PID 20429/UID 0).
jun 10 20:53:11 fedorapad audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@0-20429-0 comm=“systemd” exe=“/usr/lib/systemd/systemd” hos>
jun 10 20:53:13 fedorapad brave-browser.desktop[14598]: [14599:14599:0610/205313.285728:ERROR:CONSOLE(1)] “Failed to handle media duration metadata: missing publisher key for media key youtube_9h8vIon-pn8”, sourc>
jun 10 20:53:13 fedorapad brave-browser.desktop[14598]: [14599:14599:0610/205313.286720:ERROR:CONSOLE(1)] “Failed to handle media duration metadata: missing publisher key for media key youtube_9h8vIon-pn8”, sourc>
jun 10 20:53:13 fedorapad systemd-coredump[20430]: [🡕] Process 4010 (gnome-shell) of user 1000 dumped core.