workarounds for the XULRunner chrome runtime