[Webkit-unassigned] [Bug 27296] New: [Qt] Style changes to webpage by javascript triggered by signals don't take effect immediately

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 15 06:40:49 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27296

           Summary: [Qt] Style changes to webpage by javascript triggered
                    by signals don't take effect immediately
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ori at avtalion.name


Created an attachment (id=32781)
 --> (https://bugs.webkit.org/attachment.cgi?id=32781)
Test-case - Qt project

Tested with r45855 of QtWebKit with Qt 4.5.2.

1. Create a QWebView and add a QObject to its javascript.
2. Connect a javascript function to a signal on QObject.
3. Emit the signal, and have the handler makes a change to the document's
background color.

Results:
The color changes to the page will not take effect until one of the following:
*) Hover over the widget with the mouse cursor.
*) Make a dom manipulation to the document (before or after the css change).
*) Cause an alert.

The attached test-case (a qt project) has a button and a webview.
clicking on the button prints a message to stdout (via the javascript object)
and should cause the webview to turn blue.

It doesn't turn blue until hovering over it with the mouse.

In the source code, the handler function has two comments with dom
manipulations before and after the css change.
Uncommenting any of them will cause the color to change immediately without a
mouse hover.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list