summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/dispatcher.cc
diff options
context:
space:
mode:
authorkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-09 11:50:19 +0000
committerkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-09 11:50:19 +0000
commitb569b3570817d3c433003f6953c81f6a289382d2 (patch)
tree4be837def95c40d3da1acef6dad3f1d31f84fdff /extensions/renderer/dispatcher.cc
parent5e6c66eae3077756367f409d162f829a4ad9a09a (diff)
downloadchromium_src-b569b3570817d3c433003f6953c81f6a289382d2.zip
chromium_src-b569b3570817d3c433003f6953c81f6a289382d2.tar.gz
chromium_src-b569b3570817d3c433003f6953c81f6a289382d2.tar.bz2
Immediately fail extension API tests if the test code throws an exception
during a callback or event handler. The only reason this catches failures at the moment is because such tests end up timing out. BUG=370897 R=yoz@chromium.org TBR=thakis@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/265843014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269230 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/renderer/dispatcher.cc')
-rw-r--r--extensions/renderer/dispatcher.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc
index 107c227..a3014ed 100644
--- a/extensions/renderer/dispatcher.cc
+++ b/extensions/renderer/dispatcher.cc
@@ -1049,6 +1049,8 @@ void Dispatcher::PopulateSourceMap() {
source_map_.RegisterSource("sendRequest", IDR_SEND_REQUEST_JS);
source_map_.RegisterSource("setIcon", IDR_SET_ICON_JS);
source_map_.RegisterSource("test", IDR_TEST_CUSTOM_BINDINGS_JS);
+ source_map_.RegisterSource("uncaught_exception_handler",
+ IDR_UNCAUGHT_EXCEPTION_HANDLER_JS);
source_map_.RegisterSource("unload_event", IDR_UNLOAD_EVENT_JS);
source_map_.RegisterSource("utils", IDR_UTILS_JS);