This reverts commit 87d0efdc. Qt 6.6.3 and up contain a similar check for now until a proper fix is merged.
CCBUG:455913
(cherry picked from commit d5ccdeb5)