Removing this causes Bug [3072](https://www.openproject.org/work_packages/3072) and I would now rebuild the old behaviour (kind of). We might want to discuss browser-specific code some more.