add compatibility for Qt-based browsers and Firefox