[PyQt] Bug with empty string in QWebPage::javaScriptPrompt

Florian Bruhin me at the-compiler.org
Sat Jun 14 21:56:28 BST 2014


* Florian Bruhin <me at the-compiler.org> [2014-06-14 21:59:02 +0200]:
> I think I found a bug with QWebPage::javaScriptPrompt using
> Qt/PyQt 5.2.1, Qt runtime 5.3.0 and Python 3.4.
> 
> When overriding QWebPage::javaScriptPrompt and returning an empty
> string, javascript gets some random RAM content back it seems. This
> also might be a security issue...
> 
> When I run super().javaScriptPrompt, (True, '') is returned when I
> enter an empty string in the dialog as well, so what I return seems to
> be correct.

I also just noticed I get an empty string in JS if I *do* return any
string.

Also just tried in Qt 5.2.1, same issue there.

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
             GPG 0xFD55A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140614/dd85b79b/attachment.sig>


More information about the PyQt mailing list