Calendar Picker: Fix a crash by changing input type.
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 May 2012 06:13:00 +0000 (06:13 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 May 2012 06:13:00 +0000 (06:13 +0000)
commit37e24118cf735c1929e8830b04f7f45b5df1f191
treee9268f07aeb8183760d3d3cb133711fb34be81fb
parentee859281ff856346f330e4c1fa29efa1d204e01b
Calendar Picker: Fix a crash by changing input type.
https://bugs.webkit.org/show_bug.cgi?id=86007

Reviewed by Hajime Morita.

.:

* ManualTests/forms/calendar-picker-crash-by-type-change.html: Added.

Source/WebCore:

Manual test: forms/calendar-picker-crash-by-type-change.html

* html/shadow/CalendarPickerElement.cpp:
(WebCore::CalendarPickerElement::~CalendarPickerElement):
Added. Make sure the popup is closed.
* html/shadow/CalendarPickerElement.h:
(CalendarPickerElement): Add declaration of the destructor.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@116611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
ManualTests/forms/calendar-picker-crash-by-type-change.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/shadow/CalendarPickerElement.cpp
Source/WebCore/html/shadow/CalendarPickerElement.h