Missing null-check of parent renderer in WebCore::HTMLEmbedElement::rendererIsNeeded()
authorreni@webkit.org <reni@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Aug 2013 17:20:28 +0000 (17:20 +0000)
committerreni@webkit.org <reni@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Aug 2013 17:20:28 +0000 (17:20 +0000)
commit5fbcbe92f50a7883503147793a6bd2a9f08ba6d5
treea2101304234d35f1c5ad38786dc9a729b800fbbf
parenta3abd7a78ebe8b63cbf225d8ed03c1a118ac5fef
Missing null-check of parent renderer in WebCore::HTMLEmbedElement::rendererIsNeeded()
https://bugs.webkit.org/show_bug.cgi?id=120343

Reviewed by Darin Adler.

Source/WebCore:

Null-check the parent renderer of HTMLEmbedElement in WebCore::HTMLEmbedElement::rendererIsNeeded()
and early return.

Test: fast/html/HTMLEmbedElement_without_parent_renderer_assert_crash.html

* html/HTMLEmbedElement.cpp:
(WebCore::HTMLEmbedElement::rendererIsNeeded):

LayoutTests:

Test for the handling of null parent renderer.

* fast/html/HTMLEmbedElement_without_parent_renderer_assert_crash-expected.txt: Added.
* fast/html/HTMLEmbedElement_without_parent_renderer_assert_crash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@154698 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/html/HTMLEmbedElement_without_parent_renderer_assert_crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/html/HTMLEmbedElement_without_parent_renderer_assert_crash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLEmbedElement.cpp