Bug 45499 - [Qt] action(QWebPage::ToggleUnderline) does not work as expected
Summary: [Qt] action(QWebPage::ToggleUnderline) does not work as expected
Status: RESOLVED DUPLICATE of bug 42248
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2010-09-09 15:35 PDT by Mid'
Modified: 2011-01-30 06:27 PST (History)
1 user (show)

See Also:


Attachments
C++ source to show the bug (3.39 KB, application/zip)
2010-09-09 15:35 PDT, Mid'
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mid' 2010-09-09 15:35:50 PDT
Created attachment 67104 [details]
C++ source to show the bug

The attached source files exhibit an "underline bug" in QtWebKit's webview / webpage.

To extract, compile and run:
$ unzip webview_underline.zip && cd webview_underline && qmake && make && ./webview_underline

...but of course you should do this on a test machine or inspect the source before launching... :-)

In the "HTML Editor", type some text.
Then, click once on the "!underline" button.
Type again some text. Only the first character is underlined. Expected: all characters typed after the click should be underlined.
Click again on "!underline", the previously typed characters are, now, underlined, and mode is set to "normal" (i.e. not underlined).

Weird behavior occurs if you try to move text cursor into already typed text, and click on "!underline" button.

Tested on last commit at the time of writing: 524379030503600bbca1a8e2b5889b91b0798203
Comment 1 Mid' 2010-09-11 08:42:00 PDT
the « Weird behavior occurs if you try to move text cursor into already typed text, and click on "!underline" button » problem may be related to bug 27818
Comment 2 Mid' 2010-09-11 10:36:16 PDT
Additional info:

Other bug related to the same source code:

Click once on the "!underline" button to toggle underline. Do not move text cursor. Click again on it.

Expected: Underline should be disabled.

What we get: Underline is still enabled.
Comment 3 Benjamin Poulain 2011-01-30 06:19:06 PST
Please follow http://trac.webkit.org/wiki/QtWebKitBugs when reporing bugs here.

When bugs are reported without the Qt keyword, they can be lost in the constant flow of new WebKit bugs (that is what happened in this case). We are improving the tools.
Comment 4 Benjamin Poulain 2011-01-30 06:27:12 PST
I cannot reproduce. I think it is a duplicate of https://bugs.webkit.org/show_bug.cgi?id=42248
Do you have the issue with raster?

*** This bug has been marked as a duplicate of bug 42248 ***