summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-04 23:56:18 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-04 23:56:18 +0000
commit265ea6c73dffab17fcb04d7d5b4a1f83c7eef00c (patch)
tree1aee57898d7d9ccd2eba0a8f5c0a7ddee981a2ea /webkit
parentb018fdfe1af95b1460b52bb491385cf453518fd6 (diff)
downloadchromium_src-265ea6c73dffab17fcb04d7d5b4a1f83c7eef00c.zip
chromium_src-265ea6c73dffab17fcb04d7d5b4a1f83c7eef00c.tar.gz
chromium_src-265ea6c73dffab17fcb04d7d5b4a1f83c7eef00c.tar.bz2
Linux: fix layout test crashes.
Linux's lack of support for web workers in test_shell was causing, at least, LayoutTests/fast/js/instanceof-operator.html to crash. http://codereview.chromium.org/160612 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/test_webworker_helper.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_webworker_helper.cc b/webkit/tools/test_shell/test_webworker_helper.cc
index 9620c1e..56eabeb 100644
--- a/webkit/tools/test_shell/test_webworker_helper.cc
+++ b/webkit/tools/test_shell/test_webworker_helper.cc
@@ -29,6 +29,8 @@ static TestWebWorkerHelper* g_helper;
WebWorker* TestWebWorkerHelper::CreateWebWorker(WebWorkerClient* client) {
if (!g_helper)
g_helper = new TestWebWorkerHelper();
+ if (!g_helper->CreateWebWorker_)
+ return NULL;
g_helper->worker_count_++;
return g_helper->CreateWebWorker_(client, g_helper);
}