Null dereference loading Blink layout test fast/forms/color/input-color-onchange...
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Oct 2015 16:52:29 +0000 (16:52 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Oct 2015 16:52:29 +0000 (16:52 +0000)
commit9d32f06cb9be1bdd590311c6a3b68a6133bc7726
tree31c1723e8ac6e64b427e340b75cc4441598bd92f
parent03b976ee22152ef4ecdef12cf4813c64f6e55090
Null dereference loading Blink layout test fast/forms/color/input-color-onchange-event.html
https://bugs.webkit.org/show_bug.cgi?id=150192
<rdar://problem/23135050>

Reviewed by Darin Adler.

Source/WebCore:

Calling internals.selectColorInColorChooser() with a non-Element would
cause a null dereference. This is because in such case, the implementation
method is passed a null pointer and we would fail to null-check it. This
patch now does the null-check.

No new tests, existing test was updated.

* testing/Internals.cpp:
(WebCore::Internals::selectColorInColorChooser):

LayoutTests:

Import more checks from the corresponding Blink test.

* fast/forms/color/input-color-onchange-event-expected.txt:
* fast/forms/color/input-color-onchange-event.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191294 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/color/input-color-onchange-event-expected.txt
LayoutTests/fast/forms/color/input-color-onchange-event.html
Source/WebCore/ChangeLog
Source/WebCore/testing/Internals.cpp