obsproject / obs-browser

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

REALLY don't allow browser docks to arbitrarily close OBS #430

Closed WizardCM closed 5 months ago

WizardCM commented 6 months ago

Description

Motivation and Context

The previous solution only worked for code that ran after the page had finished loading. I was hoping that'd solve the problem for most users, which it didn't. But even if it did, we still don't want browser docks to be able to arbitrarily close the main OBS window.

How Has This Been Tested?

Implement a page that calls window.close() immediately.

Types of changes

Checklist:

RytoEX commented 6 months ago

Is there a test page I can use to test this, or do I need to create one myself?