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

Issue 3031009: A different approach to avoid crashes in buggy 3rd party BHOs. (Closed)

Created:
10 years, 5 months ago by tommi (sloooow) - chröme
Modified:
9 years, 7 months ago
Reviewers:
amit, stoyan
CC:
chromium-reviews, amit
Visibility:
Public.

Description

A different approach to avoid crashes in buggy 3rd party BHOs.This time we're more preceise and only target the buggy components.Behaviour for components that handle browser events correctly, is unchanged even in the presence of buggy DLLs.The core class here is the BuggyBhoTls class and here's the comment for that class: // Construct an instance of this class on the stack when firing web browser // events that can be sent to buggy BHOs. This class will intercept those // BHOs (see list in cc file) and ignore notifications to those components // for as long as the BuggyBhoTls instance on the stack lives. TEST=A better fix for bug 44463 but also fixes bug 49373 and a number of crashes that haven't been associated with bug reports yet. BUG=44463, 49373 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53194

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 4

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -68 lines) Patch
M chrome_frame/bind_context_info.cc View 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
A chrome_frame/buggy_bho_handling.h View 2 1 chunk +86 lines, -0 lines 0 comments Download
A chrome_frame/buggy_bho_handling.cc View 2 3 4 5 6 1 chunk +199 lines, -0 lines 0 comments Download
M chrome_frame/chrome_active_document.cc View 1 2 3 4 5 6 6 chunks +12 lines, -65 lines 0 comments Download
M chrome_frame/chrome_frame.gyp View 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome_frame/utils.h View 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome_frame/utils.cc View 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome_frame/vtable_patch_manager.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
tommi (sloooow) - chröme
10 years, 5 months ago (2010-07-20 20:08:07 UTC) #1
amit
[+ stoyan] lgtm
10 years, 5 months ago (2010-07-20 20:44:07 UTC) #2
stoyan
http://codereview.chromium.org/3031009/diff/34001/20003 File chrome_frame/buggy_bho_handling.cc (right): http://codereview.chromium.org/3031009/diff/34001/20003#newcode110 chrome_frame/buggy_bho_handling.cc:110: if (!::VirtualProtect(invoke, sizeof(PROC), PAGE_EXECUTE_READWRITE, &flags)) You need critical section ...
10 years, 5 months ago (2010-07-20 21:44:55 UTC) #3
tommi (sloooow) - chröme
http://codereview.chromium.org/3031009/diff/34001/20003 File chrome_frame/buggy_bho_handling.cc (right): http://codereview.chromium.org/3031009/diff/34001/20003#newcode110 chrome_frame/buggy_bho_handling.cc:110: if (!::VirtualProtect(invoke, sizeof(PROC), PAGE_EXECUTE_READWRITE, &flags)) On 2010/07/20 21:44:55, stoyan ...
10 years, 5 months ago (2010-07-21 14:59:55 UTC) #4
stoyan
10 years, 5 months ago (2010-07-21 16:03:14 UTC) #5
lgtm

Powered by Google App Engine
This is Rietveld 408576698