[Webkit-unassigned] [Bug 29489] New: [Qt] WebKit bug resizing a plugin with JavaScript

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 18 08:58:38 PDT 2009


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

           Summary: [Qt] WebKit bug resizing a plugin with JavaScript
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: Mac OS X 10.5
            Status: NEW
          Keywords: Qt
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: vestbo at webkit.org


This bug report originated from issue QTBUG-3503
http://bugreports.qt.nokia.com/browse/QTBUG-3503

--- Description ---

The attached test cases will show two WebKit bugs. Tests have been
performed with both Qt 4.5.0-beta1 and the latest available snapshot
(20090130).


Test 1: tst_QWebPage::resizeJS()

This will add both a <img> and a <object> tag to the web page, the
latter used to embed a QWidget.

The test shows that WebKit won't allow changing the width or height
attributes of the <object> tag using JavaScript, while it will allow
to change other attributes (or the image size).


Test 2: tst_QWebPage::resizeWidgetNoRepaint() and
tst_QWebPage::resizeWidgetWithRepaint()

The tests will embed a QWidget as in the previous test but resize the 
QWidget.

Both will actually run the same code, except the latter adds a call to
QWebView::repaint().

The tests show that the <object> width and height are updated
correctly right after the widget is resized but that a paint event
will cause the widget size to be reset back to the initial size.

Looking at RenderWidget::paint() in webcore\rendering\renderwidget.cpp
I can see that m_widget->move() is being executed. This will,
unfortunately, use the size stored in WebCore::Widget::IntRect, which
is no longer the correct size.

-- 
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