QUrl has an intentional deviation from RFC 3986 when it comes to those characters, matching the behavior of major browsers: we distinguish the forms '[' and ']' from their encoded forms. However, for local files, they are definitely identical, because there's no such thing as a percent-encoded file names. [ChangeLog][QtCore][QUrl] QUrl::fromLocalFile() will now decode the square bracket characters '[' and ']' to their percent-encoded forms. This will be visible in calls to toString(), toEncoded(), or the encoded form of path(). QUrl's comparison operator will consider the old (created from an encoded URL string) and new forms to be different. Fixes: QTBUG-134073 Change-Id: I9eae083007103e34f73cfffd59a618069eba0e19 Reviewed-by: David Faure <david.faure@kdab.com> (cherry picked from commit 5e936b60fc921e21b8153a83113886a1de333b57) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit de3cf05b77e595a7cb8700e34b232c5dc0a4e76a) |
||
|---|---|---|
| .. | ||
| auto | ||
| baseline | ||
| benchmarks | ||
| global | ||
| libfuzzer | ||
| manual | ||
| shared | ||
| testserver | ||
| CMakeLists.txt | ||
| README | ||
README
This directory contains autotests and benchmarks based on Qt Test. In order
to run the autotests reliably, you need to configure a desktop to match the
test environment that these tests are written for.
Linux X11:
* The user must be logged in to an active desktop; you can't run the
autotests without a valid DISPLAY that allows X11 connections.
* The tests are run against a KDE3 or KDE4 desktop.
* Window manager uses "click to focus", and not "focus follows mouse". Many
tests move the mouse cursor around and expect this to not affect focus
and activation.
* Disable "click to activate", i.e., when a window is opened, the window
manager should automatically activate it (give it input focus) and not
wait for the user to click the window.