See example attached.
When the QML WebEngineView URL is set to an invalid URL, it sends an extra urlChanged signal for the original URL before sending the urlChanged signal for the new URL. This only happens with an invalid (cannot be resolved) URL.
Expected result (stdout):
qml: webView.url changed http://firsturla9sdjf90j345r90jsdf90sjdf90jasdfsdf.com/
qml: webView.url changed http://secondurladfjsdf90j234a5r9jsdfsdfsdaf.com/
Actual result (stdout):
qml: webView.url changed http://firsturla9sdjf90j345r90jsdf90sjdf90jasdfsdf.com/
qml: webView.url changed http://firsturla9sdjf90j345r90jsdf90sjdf90jasdfsdf.com/
qml: webView.url changed http://secondurladfjsdf90j234a5r9jsdfsdfsdaf.com/
For Gerrit Dashboard: QTBUG-48995 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
141101,1 | Avoid to trigger extra urlChanged singnal | 5.6 | qt/qtwebengine | Status: ABANDONED | +2 | 0 |
141194,2 | Avoid triggering extra urlChanged signal | 5.5 | qt/qtwebengine | Status: ABANDONED | 0 | 0 |
147560,6 | Avoid triggering extra urlChanged signal | 5.6 | qt/qtwebengine | Status: MERGED | +2 | 0 |
148164,2 | Avoid to trigger extra urlChanged signal | dev | qt/qtwebengine | Status: ABANDONED | 0 | 0 |
285008,5 | Rework url changed logic | 5.14.1 | qt/qtwebengine | Status: MERGED | +2 | 0 |