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

Unified Diff: chrome/browser/resources/chromeos/login/login_shared.js

Issue 2741673003: cros: Dump login/lock/oobe JS error stack traces to logs. (Closed)
Patch Set: Initial upload Created 3 years, 9 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/login_shared.js
diff --git a/chrome/browser/resources/chromeos/login/login_shared.js b/chrome/browser/resources/chromeos/login/login_shared.js
index 160da795f67822e8353ca0f0d9de9683e5676fae..314c671eb3a639b26024e92e530807b18cae6116 100644
--- a/chrome/browser/resources/chromeos/login/login_shared.js
+++ b/chrome/browser/resources/chromeos/login/login_shared.js
@@ -441,5 +441,10 @@ disableTextSelectAndDrag(function(e) {
document.addEventListener('DOMContentLoaded', function() {
Oobe.initialize();
});
+
+ // Install a global error handler so stack traces are included in logs.
+ window.onerror = function(message, file, line, column, error) {
+ console.error(error.stack);
+ }
})();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698