Prevent autotest from attempting to open an unregistered URL


Previous commit prevented forwarding of unhandled URLs when the
handler was registered for the scheme itself, but the URL
mismatched for some other reason.

This change complements it by preventing autotests from launching
URLs that don't even make it to the handler. Together these two
changes should prevent external URL launching (these launches
could be problematic on CI environment).

Pick-to: 6.11 6.10 6.8
Fixes: QTBUG-141774
Change-Id: I8ac4c14923e5cbdbc8d0f006815ca09e093ffbca
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Tero Heikkinen <tero.heikkinen@qt.io>
Reviewed-by: Jesus Fernandez <jsfdez@gmail.com>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
commit5b4e9c7c5f73c32fb1305bfaab0cdf54647a292c
parent06903245cd4cdf703c991915d02797f3f15cc588
authorJuha Vuolle <juha.vuolle@qt.io>
committerJuha Vuolle <juha.vuolle@qt.io>
commit timeThu, 19 Feb 2026 08:36:55 +0200