Firefox Window Border Fix

Today I had the same strange window border error as I had once with Thunderbird:

Suddenly, it started to miss its borders of the main window, being maximized always and didn't react on any changes like shrink, move, resize, maximize.
It covers the toolbar completely and when you open for example its addons window it doesn't show up, because it is hidden beneath the main window.

The fix is very similar:

  • Close Firefox

  • Edit by hand the file ~/.mozilla/firefox/xyz1234.default/localstore.rdf in your default profile directory.

  • Search the entry

    <RDF:Description RDF:about="chrome://browser/content/browser.xul#main-window"
    screenY="5" />

  • Change the width, height and screenXY entries to the ones you see here

  • Restart Firefox and it should have its borders again.