Commit 842fb88
committed
[M74][Extensions] Gracefully handle unknown ids in ExtensionHost::OnEventAck
ExtensionHost::OnEventAck receives a message from a renderer that it
received and dispatched an event to the extension. Currently, we kill
the renderer (for sending a bad message) if it sends an event ID that
wasn't recorded. However, it seems there are some cases in which this
can happen even if the renderer isn't compromised or corrupted; some
hypotheses for these are described in the linked bug.
For now, since we are seeing evidence of this happening when the
renderer shouldn't be killed, relax the kill to instead be a graceful
early-out. Keep the other bad message kill for sending from a
non-background page, since that should still never happen.
TBR=rdevlin.cronin@chromium.org
(cherry picked from commit a81c4ea4d763da0f99bb0762fe5b6e6191feea45)
Bug: 939279
Change-Id: I93cb34a1a67c1a3575c5fda0b5c90b9d4f9da6f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1509363
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: Istiaque Ahmed <lazyboy@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#638885}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1518464
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/branch-heads/3729@{#49}
Cr-Branched-From: d4a8972-refs/heads/master@{#638880}1 parent 97bfcb1 commit 842fb88
1 file changed
+17
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
| 339 | + | |
341 | 340 | | |
342 | 341 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
| 342 | + | |
| 343 | + | |
352 | 344 | | |
353 | 345 | | |
354 | 346 | | |
355 | 347 | | |
356 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
357 | 363 | | |
358 | 364 | | |
359 | 365 | | |
| |||
0 commit comments