[Webkit-unassigned] [Bug 113285] document.createTouch crashes when document has no frame.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 26 02:36:15 PDT 2013


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


Takashi Sakamoto <tasak at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |abarth at webkit.org,
                   |                            |kevers at chromium.org,
                   |                            |tonikitoo at webkit.org




--- Comment #1 from Takashi Sakamoto <tasak at google.com>  2013-03-26 02:38:42 PST ---
This bug is caused by change r122286 (https://bugs.webkit.org/show_bug.cgi?id=88807).

Source/WebCore/dom/Touch.cpp:
@@Touch::Touch(Frame* frame, EventTarget* target, unsigned identifier, int screenX
    , m_rotationAngle(rotationAngle)
    , m_force(force)
{
+   float scaleFactor = frame->pageZoomFactor() * frame->frameScaleFactor();
+   float x = pageX * scaleFactor;
+   float y = pageY * scaleFactor;
+   m_absoluteLocation = roundedLayoutPoint(FloatPoint(x, y));
}

Need to check whether frame is available or not.

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