firefox bugfix + keeping track of styling in stylingbar

Signed-off-by: Wouter Vroege <wouter@woutervroege.nl>