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>