obsproject / obs-browser

CEF-based OBS Studio browser plugin
GNU General Public License v2.0
788 stars 227 forks source link

Webpage that performs redirects becomes invisible #438

Open jessicah opened 7 months ago

jessicah commented 7 months ago

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

30.1.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/wOTzxKFaumzH09IZ

OBS Studio Crash Log URL

No response

Expected Behavior

Source displayed correctly after redirects.

Current Behavior

Redirects seem to confuse the browser source, and end up with an invisible source. Editing the custom CSS, e.g. tweaking body { background-color: rgba(0, 0, 0, 0; } between rgba(0, 0, 0, 0) and rgba(0, 0, 0, 1), the source will briefly flash visible then disappear again.

In this instance, the source is a page that does a redirect to Spotify for auth before redirecting back. If I relaunch OBS, where the auth has happened, so that a redirect isn't required, the browser source displays fine. Refreshing cache, making source enabled/disabled does not fix it, only relaunching OBS.

Steps to Reproduce

Add a browser source which does a redirect on load, e.g. https://jessicah.nz/spotify/now-playing.html

Anything else we should know?

No response

Warchamp7 commented 7 months ago

There is definitely something very weird happening here. The page still renders in devtools but not in OBS

image

Forcing the page to navigate to another URL such as Google and then issuing a history.back() command the page then functions fine.