Implements workaround for the issues in firefox nightly.