diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-03 04:26:52 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-03 04:26:52 +0000 |
commit | c80b8ee2e4a157c905c4ac19b97ac78eb4253b6c (patch) | |
tree | a6bb541a20fd4a2a329ebd8c66b185e65beb4c8d /chrome/test/data/extensions | |
parent | fd4f2300ec01e4dbe66c9e91c5d9796db1810641 (diff) | |
download | chromium_src-c80b8ee2e4a157c905c4ac19b97ac78eb4253b6c.zip chromium_src-c80b8ee2e4a157c905c4ac19b97ac78eb4253b6c.tar.gz chromium_src-c80b8ee2e4a157c905c4ac19b97ac78eb4253b6c.tar.bz2 |
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
Diffstat (limited to 'chrome/test/data/extensions')
2 files changed, 12 insertions, 0 deletions
diff --git a/chrome/test/data/extensions/api_test/bindings/exception_in_handler_should_not_crash/manifest.json b/chrome/test/data/extensions/api_test/bindings/exception_in_handler_should_not_crash/manifest.json new file mode 100644 index 0000000..a0f125e --- /dev/null +++ b/chrome/test/data/extensions/api_test/bindings/exception_in_handler_should_not_crash/manifest.json @@ -0,0 +1,4 @@ +{ + "name": "bug106201", + "version": "1" +} diff --git a/chrome/test/data/extensions/api_test/bindings/exception_in_handler_should_not_crash/page.html b/chrome/test/data/extensions/api_test/bindings/exception_in_handler_should_not_crash/page.html new file mode 100644 index 0000000..4377e75 --- /dev/null +++ b/chrome/test/data/extensions/api_test/bindings/exception_in_handler_should_not_crash/page.html @@ -0,0 +1,8 @@ +<script> +chrome.tabs.create({}, function() { + throw new Error("tada"); +}); +chrome.tabs.create({}, function() { + chrome.test.notifyPass(); +}); +</script> |