Firefox devtools broken with custom home-manager configuration

I configured firefox to my likings. Specifically, I have set a couple settings, installed extensions and have a custom userChrome.css styles, all configured through home-manager.

The configuration as of writing the post can be viewed here.

The devtools work, initially. After some time tweaking options and such, they get broken. When I open devtools (either page devtools with Ctrl+Shift+I or browser devtools for tweaking browser styles), all I get is a blank screen. In fact, with page devtools, I can’t even close them with the same shortcut. There are nothing in logs, as far as I’ve looked, and I have no idea what caused the problem. They break spontaneously, and I cannot track the exact moment after which they broke.
The problem can be fixed (sorta) by completely removing the firefox profile with rm -rf ~/.mozilla/, but the same cycle repeats after some time using a browser.
I started firefox in safe mode, without any extensions, the devtools are still broken. I tried clearing only the website cache, that didn’t help.
The worst thing here is that I have no idea why the problem shows up, and in fact, I don’t even know when it shows up exactly. All I see is a blank devtools when I try to open them.

P.S. Otherwise, the browser works flawlessly. The only thing broken so far is the devtools.



On the first screenshot I have opened devtools with Ctrl+Shift+I, on the second one I tried opening a browser console with Ctrl+Shift+J.

I appreciate any help.

I would try checking whether it’s one of the configuration options you’ve set. I would binary search them by commenting out half and so on.