[Webkit-unassigned] [Bug 67308] [Qt] TouchWebView crashes with segmentation fault

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 31 12:58:02 PDT 2011


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





--- Comment #4 from Alexis Menard <alexis.menard at openbossa.org>  2011-08-31 12:58:03 PST ---
(From update of attachment 105809)
View in context: https://bugs.webkit.org/attachment.cgi?id=105809&action=review

This is wrong. The code assume that availableWidth and availableHeight are positive. The problem is not from the assert, it is there for a reason. I believe we can't remove it. Now perhaps the best way is to delayed the updateViewportConstraints call or not call it at all if one of the value is 0. Anyway you patch miss a test case.

> Source/WebCore/ChangeLog:8
> +        If you instantiate TouchWebView element with height and width in a qml file and load a url it fails with segmentation fault. The ASSERTION in ViewportArguments.cpp under computeViewportAttributes seems to be wrong. During first round updateViewportConstraints has non-zero width and 0 as height. As a result availableSize is set to (width,0). Height gets set by subsequent call to setHeight. However, the ASSERT in computeViewportAttributes expects non-zero values for both height and width. Due to sequential nature of setWidth and setHeight call, this ASSERT is not satisfied. This patch fixes the problem by removing the assert. 

Lines are two long. Wrap them.

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