Interestingly, doing the same with Sublime Text leads to the same
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
System freeze when going back and forth fullscreen mode with Firefox
To manage notifications about this bug go to:
ubuntu-bugs mailing list