That code will be replaced with a proper when we move over to XUL.