replugged-org / replugged

A lightweight Discord client mod focused on simplicity and performance.
https://replugged.dev/
MIT License
636 stars 64 forks source link

Crash when opening settings or a user profile when there's a Spotify embed or a playing YouTube video in chat #370

Closed cafeed28 closed 1 year ago

cafeed28 commented 1 year ago

Describe the bug

DOMException: Blocked a frame with origin "https://ptb.discord.com" from accessing a cross-origin frame. image image

Reproduction steps

  1. Send some YouTube link (tested with https://youtu.be/u1xrNaTO1bI and https://www.youtube.com/watch?v=uRhmus2BdKc)
  2. Play it
  3. Open Settings
  4. DOMException: Blocked a frame with origin "https://ptb.discord.com" from accessing a cross-origin frame.

Expected behavior

Discord shouldn't crash

Actual behavior

Discord crashed

Additional information

image image Same behavior without any plugins

Please confirm the following

Pukimaa commented 1 year ago

Also happens when opening profiles that are currently listening to Spotify

asportnoy commented 1 year ago

Having a spotify embed in chat works in place of a YT video playing. I think the webpack finder is trying to access the other frames for some reason which is triggering the error.