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

Issue 1413033012: Fix crashes in AutomationInternalCustomBindings due to no v8 context. (Closed)

Created:
5 years, 1 month ago by dmazzoni
Modified:
5 years, 1 month ago
Reviewers:
David Tseng
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crashes in AutomationInternalCustomBindings due to no v8 context. Add null check so we don't try to make v8 calls when there's no v8 context. Also speed up the destuctor by avoiding callbacks during destruction altogether. BUG=550624 Committed: https://crrev.com/260a9f33787520e3d1467058cf57178d6aa1950b Cr-Commit-Position: refs/heads/master@{#358644}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Override Invalidate instead #

Patch Set 3 : Call inherited method from AutomationInternalCustomBindings::Invalidate #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M chrome/renderer/extensions/automation_internal_custom_bindings.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/automation_internal_custom_bindings.cc View 1 2 1 chunk +14 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (5 generated)
dmazzoni
5 years, 1 month ago (2015-11-02 23:41:02 UTC) #2
David Tseng
https://codereview.chromium.org/1413033012/diff/1/chrome/renderer/extensions/automation_internal_custom_bindings.cc File chrome/renderer/extensions/automation_internal_custom_bindings.cc (right): https://codereview.chromium.org/1413033012/diff/1/chrome/renderer/extensions/automation_internal_custom_bindings.cc#newcode137 chrome/renderer/extensions/automation_internal_custom_bindings.cc:137: if (message_filter_) Perhaps this class needs to override Invalidate ...
5 years, 1 month ago (2015-11-03 18:37:44 UTC) #3
dmazzoni
https://codereview.chromium.org/1413033012/diff/1/chrome/renderer/extensions/automation_internal_custom_bindings.cc File chrome/renderer/extensions/automation_internal_custom_bindings.cc (right): https://codereview.chromium.org/1413033012/diff/1/chrome/renderer/extensions/automation_internal_custom_bindings.cc#newcode137 chrome/renderer/extensions/automation_internal_custom_bindings.cc:137: if (message_filter_) On 2015/11/03 18:37:44, David Tseng wrote: > ...
5 years, 1 month ago (2015-11-06 22:49:58 UTC) #4
David Tseng
lgtm
5 years, 1 month ago (2015-11-07 00:11:31 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413033012/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413033012/20001
5 years, 1 month ago (2015-11-07 00:48:55 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/137512)
5 years, 1 month ago (2015-11-07 01:14:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413033012/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413033012/40001
5 years, 1 month ago (2015-11-09 20:01:16 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-09 20:50:40 UTC) #13
commit-bot: I haz the power
5 years, 1 month ago (2015-11-09 20:51:42 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/260a9f33787520e3d1467058cf57178d6aa1950b
Cr-Commit-Position: refs/heads/master@{#358644}

Powered by Google App Engine
This is Rietveld 408576698