When we hide the context menu on QtWebEngine, we get a mouse event relative to the QMenu in the filter, which means tab.elements.at_pos will get called with a negative position (and thus assert) or at least a wrong position.