Bug 295967
| Summary: | [WPE][Qt6] WPE Mini Browser doesn't handle user input URLs according to WPEView API documentation | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Qing-wu.Li <Qing-wu.Li> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Minor | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
Qing-wu.Li@leica-geosystems.com.cn
https://github.com/WebKit/WebKit/blob/4fa98a51e419fa0e98420fb87d6cdce44c7ff726/Source/WebKit/UIProcess/API/wpe/qt5/WPEQtView.cpp#L226
The Qt6 WPE mini browser application fails to properly parse user-entered URLs using QUrl::fromUserInput() as recommended by the WPEView API documentation, resulting in limited URL input support.
Description
According to the WPEView API documentation in Source/WebKit/UIProcess/API/wpe/qt5/WPEQtView.cpp, function WPEQtView::setUrl.
However, the current Qt6 WPE mini browser implementation in main.cpp and main.qml does not follow this guideline. The application directly passes user input to WPEView.url without calling QUrl::fromUserInput() for preprocessing.
Impact
This causes several usability issues:
Users cannot enter incomplete URLs.
Local file paths may not be handled correctly.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
EWS
Committed 297852@main (3475db04463b): <https://commits.webkit.org/297852@main>
Reviewed commits have been landed. Closing PR #48039 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/156674165>