https://codereview.qt-project.org/#/c/180233/ broke the QML runtime. If you run it like
that gets turned into file://file.qml. Then there is this
So, is the assert wrong?
It has been suggested that we should use QUrl::fromUserInput more, but QUrl::fromUserInput("file.qml") turns into http://file.qml which is also not what we want.
I'm not sure if QtQuick is the only user for such a function but it's clear that there is too much inconsistent filename->url conversion going on in qtdeclarative and it needs to be streamlined. qmlscene works fine after this change; qml doesn't. qml's main.cpp resorts to using a regular expression to detect whether the command-line argument contains a scheme or is just a path, and that IMO should also not be necessary. This conversion needs to be a one-liner in every situation where it's necessary.