Changeset 54228 in webkit
- Timestamp:
- Feb 2, 2010 4:59:58 AM (14 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/Api/qwebpage.cpp
r53956 r54228 106 106 #include <QSysInfo> 107 107 #include <QTextCharFormat> 108 #include <QTextDocument> 108 109 #include <QNetworkAccessManager> 109 110 #include <QNetworkRequest> … … 1872 1873 Q_UNUSED(frame) 1873 1874 #ifndef QT_NO_MESSAGEBOX 1874 QMessageBox::information(view(), tr("JavaScript Alert - %1").arg(mainFrame()->url().host()), msg, QMessageBox::Ok);1875 QMessageBox::information(view(), tr("JavaScript Alert - %1").arg(mainFrame()->url().host()), Qt::escape(msg), QMessageBox::Ok); 1875 1876 #endif 1876 1877 } … … 1888 1889 return true; 1889 1890 #else 1890 return QMessageBox::Yes == QMessageBox::information(view(), tr("JavaScript Confirm - %1").arg(mainFrame()->url().host()), msg, QMessageBox::Yes, QMessageBox::No);1891 return QMessageBox::Yes == QMessageBox::information(view(), tr("JavaScript Confirm - %1").arg(mainFrame()->url().host()), Qt::escape(msg), QMessageBox::Yes, QMessageBox::No); 1891 1892 #endif 1892 1893 } … … 1907 1908 bool ok = false; 1908 1909 #ifndef QT_NO_INPUTDIALOG 1909 QString x = QInputDialog::getText(view(), tr("JavaScript Prompt - %1").arg(mainFrame()->url().host()), msg, QLineEdit::Normal, defaultValue, &ok);1910 QString x = QInputDialog::getText(view(), tr("JavaScript Prompt - %1").arg(mainFrame()->url().host()), Qt::escape(msg), QLineEdit::Normal, defaultValue, &ok); 1910 1911 if (ok && result) 1911 1912 *result = x; -
trunk/WebKit/qt/ChangeLog
r54222 r54228 1 2010-02-02 Andreas Kling <andreas.kling@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Display HTML tags verbatim in JS alert/confirm/prompt boxes 6 7 https://bugs.webkit.org/show_bug.cgi?id=34429 8 9 * Api/qwebpage.cpp: 10 (QWebPage::javaScriptAlert): 11 (QWebPage::javaScriptConfirm): 12 (QWebPage::javaScriptPrompt): 13 1 14 2010-02-02 Noam Rosenthal <noam.rosenthal@nokia.com> 2 15
Note: See TracChangeset
for help on using the changeset viewer.