Details
Description
During porting of Sigil away from QtWebKit to QtWebEngine we noticed the following bug:
After properly loading a QWebEngineView with an xhtml page and waiting for loadFinished (okay = true), the following code sequence always returns a null string for selectedText().
m_Preview->triggerPageAction(QWebEnginePage::SelectAll);
m_Preview->selectedText();
If I instead use triggerPageAction(QWebEnginePage::Copy) after the SelectAll, the clipboard shows the expected text properly.
So selectedText() is not properly being set by the SelectAll action.
There are many similar bugs to this in the QTBUG database that seems to have been fixed in 5.10 timeframe but this bug has not or somehow crept back in.
Attachments
Issue Links
- relates to
-
QTBUG-76666 The "Copy" WebAction should be [en|dis]abled whenever selectionChanged() is emitted.
- Closed
-
QTBUG-74446 Focus and selection related test failures
- Closed
-
QTBUG-74718 tst_QWebEnginePage::runJavaScriptFromSlot() is flaky
- Closed
For Gerrit Dashboard: QTBUG-75505 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
261743,9 | Disable edit actions when content has no focused frame | 5.12 | qt/qtwebengine | Status: MERGED | +2 | 0 |