Too large plugins are crashing.
authorrgabor@webkit.org <rgabor@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Dec 2014 18:40:20 +0000 (18:40 +0000)
committerrgabor@webkit.org <rgabor@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 Dec 2014 18:40:20 +0000 (18:40 +0000)
commit53dc240ab645bd464ba16a6b034a0d70ba5ddf80
tree22ed985156df4c0affb2b09e4cf3b6ffcc8eeeba
parent05aeaa7e03223ea07f8f24b190a25b1ea5d5e0f1
Too large plugins are crashing.
https://bugs.webkit.org/show_bug.cgi?id=139856

Reviewed by Darin Adler.

Source/WebKit2:

* WebProcess/Plugins/PluginProxy.cpp:
(WebKit::PluginProxy::updateBackingStore): Return false if backingStore cannot be allocated.

LayoutTests:

Add layout test to cover this crash.

* plugins/large-plugin-crash-expected.txt: Added.
* plugins/large-plugin-crash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@177824 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/plugins/large-plugin-crash-expected.txt [new file with mode: 0644]
LayoutTests/plugins/large-plugin-crash.html [new file with mode: 0644]
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/Plugins/PluginProxy.cpp