The browser closes when I want to record a video

When I want to record, the browser closes automatically.

I did not install any addon or extension to it.

What could be happening?