WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
47164
QWebPage::javascriptprompt does not wrap long text
https://bugs.webkit.org/show_bug.cgi?id=47164
Summary
QWebPage::javascriptprompt does not wrap long text
bhavya.s-g
Reported
2010-10-04 22:59:26 PDT
When a long text eg: "This is a really long text, that should be well readable and wrapped in a nice way! Click any button." is used as a text in the prompt, it gets truncated; only partial message is shown in the prompt. However the same thing works fine for QWebPage::javascriptConfirm. NOTE: THIS IS BLOCKING THE "INTEROPERABILITY TEST" OF OUR CUSTOMER. HENCE MARKING IT AS A BLOCKER
Attachments
Add attachment
proposed patch, testcase, etc.
Mahesh Kulkarni
Comment 1
2010-10-08 02:37:29 PDT
Below example on chrome/safari/mozilla browser wraps label text of input box. But in QtWebkit it does not. <html><body><script> prompt("some really long text example! some really long text example! some really long text example! some really long text example! some really long text example! some really long text example! some really long text example! some really long text example! some really long text example!"); </script></body></html> Problem is with QInputDialog of Qt class which is used by QWebPage::javascriptPrompt() function. QInputDialog owns QLabel which by default has "no word wrap" enabled. No straight way to access QLabel from this dialog to set this property (QLabel::setWordWrap). This should be fixed by qt4.7 either by setting wordwrap for qinputdialog or providing API to set it.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug