[Webkit-unassigned] [Bug 73811] New: QWebPage select all and copy clipboard won't work with xhtml
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 5 02:42:08 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=73811
Summary: QWebPage select all and copy clipboard won't work with
xhtml
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: temeto at dr.com
Created an attachment (id=117860)
--> (https://bugs.webkit.org/attachment.cgi?id=117860&action=review)
small project to reproduce the bug on win7 Qt sdk 1.1.4
Work with the url "http://nokia.com", but not with "http://bumerang.hu/?ezaz=2_20111202"
view->setContent( msg.toLocal8Bit() );
QString cucc("Bum");
qDebug() << view->title();
view->page()->setContentEditable(true);
view->page()->triggerAction(QWebPage::SelectAll);
view->page()->triggerAction(QWebPage::Copy);
QFile fs("./after");
if (!fs.open(QIODevice::WriteOnly | QIODevice::Text))
return;
const QClipboard *clipboard = QApplication::clipboard();
QTextStream out3(&fs);
out3 << clipboard->text();
At least the title is possible to extract, that is expected to be copied.
"
This page contains the following errors:
error on line 1 at column 0: Encoding error
Below is a rendering of the page up to the first error.
"
How to avoid the encoding problem for clipboard copy action?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list