Context's currentPath should check for passed type
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Feb 2013 00:28:13 +0000 (00:28 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Feb 2013 00:28:13 +0000 (00:28 +0000)
commit6a674b5ca81d8dfb0281243e554645d833f623a7
treefde7f00c03c338ee642876b00a0bdc89411867b5
parentec76dcd9a697c9c3007603ef9d1cd97d6b0847d6
Context's currentPath should check for passed type
https://bugs.webkit.org/show_bug.cgi?id=109097

Patch by Dirk Schulze <dschulze@adobe.com> on 2013-02-06
Reviewed by Dean Jackson.

Source/WebCore:

Add check for passed pointer and return earlier.

Test: fast/canvas/canvas-currentPath-crash.html

* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::setCurrentPath):

LayoutTests:

Add checks with different data types as value for canvas.currentPath.

* fast/canvas/canvas-currentPath-crash-expected.txt: Added.
* fast/canvas/canvas-currentPath-crash.html: Added.
* fast/canvas/script-tests/canvas-currentPath-crash.js: Added.
* platform/chromium/TestExpectations:
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/mac/TestExpectations:
* platform/qt/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/canvas/canvas-currentPath-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/canvas-currentPath-crash.html [new file with mode: 0644]
LayoutTests/fast/canvas/script-tests/canvas-currentPath-crash.js [new file with mode: 0644]
LayoutTests/platform/chromium/TestExpectations
LayoutTests/platform/efl/TestExpectations
LayoutTests/platform/gtk/TestExpectations
LayoutTests/platform/mac/TestExpectations
LayoutTests/platform/qt/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp