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

Issue 2629783002: Upload crash reports when ExtensionFunctions generate bad messages. (Closed)

Created:
3 years, 11 months ago by lazyboy
Modified:
3 years, 11 months ago
Reviewers:
Devlin, Charlie Reis
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Upload crash reports when ExtensionFunctions generate bad messages. ExtensionFunctionDispatcher used to have its own implementation of bad message handling, which missed calling DumpWithoutCrashing(). Use extensions::bad_message namespace's functions instead, with little unfortunate deviation in logging to be consistent with the existing UMA. Note that this is not a fix for issue 642794. This CL will help tracking 642794. BUG=642794 Test=Note that we should start seeing crash reports for bad message termination of ExtensionFunctions. This should give us a clue narrow down reasons that cause crbug 642794. Review-Url: https://codereview.chromium.org/2629783002 Cr-Commit-Position: refs/heads/master@{#444183} Committed: https://chromium.googlesource.com/chromium/src/+/0605ec9d2876c3c58b3f91ba5e82ca04c6ad5828

Patch Set 1 #

Total comments: 5

Patch Set 2 : address comments #

Total comments: 11

Patch Set 3 : address comments #

Patch Set 4 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -41 lines) Patch
M extensions/browser/bad_message.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/bad_message.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_dispatcher.cc View 1 2 6 chunks +24 lines, -41 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
lazyboy
+Charlie for a TODO in bad_message.cc +Devlin for the rest, if you think this fix ...
3 years, 11 months ago (2017-01-13 01:11:51 UTC) #2
lazyboy
3 years, 11 months ago (2017-01-13 01:12:10 UTC) #4
Devlin
seems reasonable to me; a couple small comments. https://codereview.chromium.org/2629783002/diff/1/extensions/browser/extension_function_dispatcher.cc File extensions/browser/extension_function_dispatcher.cc (right): https://codereview.chromium.org/2629783002/diff/1/extensions/browser/extension_function_dispatcher.cc#newcode86 extensions/browser/extension_function_dispatcher.cc:86: // ...
3 years, 11 months ago (2017-01-13 02:45:50 UTC) #5
lazyboy
https://codereview.chromium.org/2629783002/diff/1/extensions/browser/extension_function_dispatcher.cc File extensions/browser/extension_function_dispatcher.cc (right): https://codereview.chromium.org/2629783002/diff/1/extensions/browser/extension_function_dispatcher.cc#newcode86 extensions/browser/extension_function_dispatcher.cc:86: // bug in that API's implementation on the renderer. ...
3 years, 11 months ago (2017-01-13 03:04:53 UTC) #6
Devlin
lgtm https://codereview.chromium.org/2629783002/diff/20001/extensions/browser/extension_function_dispatcher.cc File extensions/browser/extension_function_dispatcher.cc (right): https://codereview.chromium.org/2629783002/diff/20001/extensions/browser/extension_function_dispatcher.cc#newcode94 extensions/browser/extension_function_dispatcher.cc:94: T bad_message_sender, nitty nit: Let's use T* (so ...
3 years, 11 months ago (2017-01-13 16:16:17 UTC) #7
Charlie Reis
Thanks for converting this over! I like having fewer distinct ways to kill renderers. A ...
3 years, 11 months ago (2017-01-13 21:22:26 UTC) #8
lazyboy
https://codereview.chromium.org/2629783002/diff/20001/extensions/browser/bad_message.cc File extensions/browser/bad_message.cc (right): https://codereview.chromium.org/2629783002/diff/20001/extensions/browser/bad_message.cc#newcode20 extensions/browser/bad_message.cc:20: if (reason == EFD_BAD_MESSAGE) On 2017/01/13 21:22:25, Charlie Reis ...
3 years, 11 months ago (2017-01-14 01:04:43 UTC) #9
Charlie Reis
Thanks! LGTM. https://codereview.chromium.org/2629783002/diff/20001/extensions/browser/bad_message.cc File extensions/browser/bad_message.cc (right): https://codereview.chromium.org/2629783002/diff/20001/extensions/browser/bad_message.cc#newcode27 extensions/browser/bad_message.cc:27: // content::bad_message::BadMessageReason enum values overlap. On 2017/01/14 ...
3 years, 11 months ago (2017-01-15 18:08:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2629783002/50001
3 years, 11 months ago (2017-01-17 23:19:20 UTC) #17
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 23:29:28 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:50001) as
https://chromium.googlesource.com/chromium/src/+/0605ec9d2876c3c58b3f91ba5e82...

Powered by Google App Engine
This is Rietveld 408576698