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(
}
bool ChromeExtensionsClient::ShouldSuppressFatalErrors() const {
// Suppress fatal on all release branches.
return GetCurrentChannel() > chrome::VersionInfo::CHANNEL_CANARY;
// Suppress fatal everywhere until the cause of bugs like http://crbug/471599
// are fixed. This would typically be:
// return GetCurrentChannel() > chrome::VersionInfo::CHANNEL_DEV;
return true;
}
std::string ChromeExtensionsClient::GetWebstoreBaseURL() const {
......
......@@ -31,16 +31,13 @@ const char* kModuleName = "module_name";
const char* kModuleField = "module_field";
const char* kModulesField = "modules";
// Logs a fatal error for the calling context, with some added metadata about
// the context:
// Logs an error for the calling context in preparation for potentially
// crashing the renderer, with some added metadata about the context:
// - Its type (blessed, unblessed, etc).
// - Whether it's valid.
// - The extension ID, if one exists.
//
// This will only actual be fatal in in dev/canary, since in too many cases
// 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.
// Crashing won't happen in stable/beta releases, but is encouraged to happen
// in the less stable released to catch errors early.
void Fatal(ScriptContext* context, const std::string& message) {
// Prepend some context metadata.
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