balta2ar / brotab

Control your browser's tabs from the command line
MIT License
389 stars 27 forks source link

Extension crashes when opening an "about:newtab" window #40

Open CRImier opened 4 years ago

CRImier commented 4 years ago

In Firefox, the extension can't open an "about:newtab" window and will crash when this is requested. Same goes for "about:home". It might have to do with Firefox security policies, however, the extension shouldn't crash when this happens. Ideally, there'd be a way to open this kind of tab, but I'll understand if that's not possible because of Firefox policies.

Enabling and disabling the extension on the about:addons page restarts the extension and fixes the crash (until the next accidental nonexistent page close, ofc).

CRImier commented 4 years ago

Found a workaround: you can open "about:blank". That doesn't work around the crash, of course, some exception handling could be useful.