Commit ec0e3aa3 authored by kalman's avatar kalman Committed by Commit bot

Suppress all CHECK failures on extension renderer JS exceptions.

These will be added back once the cause of the crashes is fixed.

BUG=471599
R=adamk@chromium.org

Review URL: https://codereview.chromium.org/1114653002

Cr-Commit-Position: refs/heads/master@{#327369}
parent eeb5075c
...@@ -299,8 +299,10 @@ void ChromeExtensionsClient::RegisterAPISchemaResources( ...@@ -299,8 +299,10 @@ void ChromeExtensionsClient::RegisterAPISchemaResources(
} }
bool ChromeExtensionsClient::ShouldSuppressFatalErrors() const { bool ChromeExtensionsClient::ShouldSuppressFatalErrors() const {
// Suppress fatal on all release branches. // Suppress fatal everywhere until the cause of bugs like http://crbug/471599
return GetCurrentChannel() > chrome::VersionInfo::CHANNEL_CANARY; // are fixed. This would typically be:
// return GetCurrentChannel() > chrome::VersionInfo::CHANNEL_DEV;
return true;
} }
std::string ChromeExtensionsClient::GetWebstoreBaseURL() const { std::string ChromeExtensionsClient::GetWebstoreBaseURL() const {
......
...@@ -31,16 +31,13 @@ const char* kModuleName = "module_name"; ...@@ -31,16 +31,13 @@ const char* kModuleName = "module_name";
const char* kModuleField = "module_field"; const char* kModuleField = "module_field";
const char* kModulesField = "modules"; const char* kModulesField = "modules";
// Logs a fatal error for the calling context, with some added metadata about // Logs an error for the calling context in preparation for potentially
// the context: // crashing the renderer, with some added metadata about the context:
// - Its type (blessed, unblessed, etc). // - Its type (blessed, unblessed, etc).
// - Whether it's valid. // - Whether it's valid.
// - The extension ID, if one exists. // - The extension ID, if one exists.
// // Crashing won't happen in stable/beta releases, but is encouraged to happen
// This will only actual be fatal in in dev/canary, since in too many cases // in the less stable released to catch errors early.
// we're at the mercy of the extension or web page's environment. They can mess
// up our JS in unexpected ways. Hopefully dev/canary channel will pick up such
// problems, but given the wider variety on stable/beta it's impossible to know.
void Fatal(ScriptContext* context, const std::string& message) { void Fatal(ScriptContext* context, const std::string& message) {
// Prepend some context metadata. // Prepend some context metadata.
std::string full_message = "("; std::string full_message = "(";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment