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

Florian Bruhin me at the-compiler.org
Sun Jun 15 12:30:51 BST 2014


* Phil Thompson <phil at riverbankcomputing.com> [2014-06-15 12:24:08 +0100]:
> On 14/06/2014 8:59 pm, Florian Bruhin wrote:
> >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.
> 
> It's a code generation bug - fixed in tonight's SIP snapshot.

Is there any way I could work around it, except not overriding
javaScriptPrompt?

Also, any idea in which PyQt-version it appeared, and in which it'll
probably be gone in distribution packets? 5.4?

> Thanks,
> Phil

Thank you!

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/20140615/92061b4c/attachment.sig>


More information about the PyQt mailing list