Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5566)

Unified Diff: chrome/test/data/extensions/api_test/uncaught_exception_logging/content_script.js

Issue 678393002: Send extension console messages to the right WebFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the conditions in ByContextFinder. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/uncaught_exception_logging/content_script.js
diff --git a/chrome/test/data/extensions/api_test/uncaught_exception_logging/content_script.js b/chrome/test/data/extensions/api_test/uncaught_exception_logging/content_script.js
new file mode 100644
index 0000000000000000000000000000000000000000..cf52513a3e88b9cdf91844df3cc67a5b3e2bcbd9
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/uncaught_exception_logging/content_script.js
@@ -0,0 +1,4 @@
+chrome.runtime.onMessage.addListener(function(msg) {
+ if (msg.action == "start_test")
+ throw new Error("Exception thrown in injected script.");
+});

Powered by Google App Engine
This is Rietveld 408576698