REGRESSION(r114862-r114886): Fix a crash by switching the input type to hidden.
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jul 2012 03:18:15 +0000 (03:18 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jul 2012 03:18:15 +0000 (03:18 +0000)
commit76345e5d47b07f68fdef6020285ed900351da84e
treef3552e72242324d9cfd428336e209da59885944c
parentc6ec20cda94491e4c67dc78cedaa23e0f9daf3e3
REGRESSION(r114862-r114886): Fix a crash by switching the input type to hidden.
https://bugs.webkit.org/show_bug.cgi?id=90774

Reviewed by Andreas Kling.

Source/WebCore:

Test: fast/forms/hidden/change-type-to-hidden-after-updating-value.html

* dom/Element.cpp:
(WebCore::Element::setAttributeInternal):
Pass a copy of the existing Attribute object.

LayoutTests:

* fast/forms/hidden/change-type-to-hidden-after-updating-value.html: Added.
* fast/forms/hidden/change-type-to-hidden-after-updating-value-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@122188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/hidden/change-type-to-hidden-after-updating-value-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/hidden/change-type-to-hidden-after-updating-value.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/dom/Element.cpp