qtdeclarative/tools
Ulf Hermann 52bc4fbfba Use potentially intercepted URL as ID for compilation units
We generally have to pass a URL and a file name everywhere because the
logical URL might be something else than the actual file being loaded.
For example a QQmlFileSelector might modify the URL to be loaded for a
specific file. This resulting URL, however, should not be used to
resolve further URLs defined in the file loaded that way.

As we need to access QQmlTypeLoader::m_url as string more often now,
cache it and avoid frequent translations between QUrl and QString.

Furthermore, QQmlDataBlob's URLs are changed to follow the same
semantics. The finalUrl is the one that should be used to resolve
further URLs, the url is the one used to load the content, and subject
to any redirects or interceptions.

This changes the semantics of URL redirects. Previously a redirected URL
was used as the base URL for furher URL resolution. This doesn't work
because redirection occurs after interception and interception should
not influence the resolution of further URLs. We now use the original
URL as base URL for resolution of further URLs and rely on the server to
redirect those, too.

Task-number: QTBUG-61209
Change-Id: I93822f820bed2515995de3cb118099218b510ca4
Reviewed-by: Michael Brasser <michael.brasser@live.com>
2017-12-21 16:02:50 +00:00
..
qml Fix outdated BSD license header 2017-10-17 11:18:11 +00:00
qmlcachegen Use potentially intercepted URL as ID for compilation units 2017-12-21 16:02:50 +00:00
qmleasing Remove invalid QObject::connect call 2017-05-04 09:48:18 +00:00
qmlimportscanner qmlimportscanner: Scan the root directory again 2017-09-19 08:07:40 +00:00
qmljs Add logging categories for GC statistics 2017-12-11 10:21:42 +00:00
qmllint Merge remote-tracking branch 'origin/5.8' into 5.9 2017-02-24 11:48:14 +01:00
qmlmin Tools: Add product name, version and description to the .pro files 2017-01-31 08:44:36 +00:00
qmlplugindump qmlplugindump: skip imports containing "private" 2017-09-08 08:42:34 +00:00
qmlprofiler Run includemocs in qtdeclarative 2017-04-26 13:19:13 +00:00
qmlscene QRegExp include cleanup 2017-03-17 08:00:17 +00:00
qmltestrunner Tools: Add product name, version and description to the .pro files 2017-01-31 08:44:36 +00:00
qmltime Merge remote-tracking branch 'origin/5.8' into 5.9 2017-02-24 11:48:14 +01:00
tools.pro Fix build without features.commandlineparser 2017-04-03 13:40:44 +00:00