commit | c80b8ee2e4a157c905c4ac19b97ac78eb4253b6c | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Sat Dec 03 04:26:52 2011 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Sat Dec 03 04:26:52 2011 |
tree | a6bb541a20fd4a2a329ebd8c66b185e65beb4c8d | |
parent | fd4f2300ec01e4dbe66c9e91c5d9796db1810641 [diff] [blame] |
Silently swallow exceptions in extension bindings callbacks. There are better ways to handle this, but I want a really simple patch for merge. BUG=106201 TEST=http://code.google.com/p/chromium/issues/detail?id=100401#c18 Review URL: http://codereview.chromium.org/8786008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112869 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_bindings_apitest.cc b/chrome/browser/extensions/extension_bindings_apitest.cc new file mode 100644 index 0000000..8d5bf0a --- /dev/null +++ b/chrome/browser/extensions/extension_bindings_apitest.cc
@@ -0,0 +1,13 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Contains holistic tests of the bindings infrastructure + +#include "chrome/browser/extensions/extension_apitest.h" + +IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ExceptionInHandlerShouldNotCrash) { + ASSERT_TRUE(RunExtensionSubtest( + "bindings/exception_in_handler_should_not_crash", + "page.html")) << message_; +}