WebSearchableFormData crashes when given a detached HTMLFormElement
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Aug 2011 04:32:42 +0000 (04:32 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Aug 2011 04:32:42 +0000 (04:32 +0000)
commitb5845cfe571af83ee360b6638a81b6abc054ea65
tree10efa126471ad3f830a4b5e8823fe2a57cb55959
parentf6162c0300b3b331622319cdaa8efef252ac9050
WebSearchableFormData crashes when given a detached HTMLFormElement
https://bugs.webkit.org/show_bug.cgi?id=66831

Reviewed by Dimitri Glazkov.

We need to null-check the Frame.

* src/WebSearchableFormData.cpp:
(HTMLNames::GetFormEncoding):
* tests/WebFrameTest.cpp:
(WebKit::TEST_F):
* tests/data/form.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@93692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/WebSearchableFormData.cpp
Source/WebKit/chromium/tests/WebFrameTest.cpp
Source/WebKit/chromium/tests/data/form.html [new file with mode: 0644]