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

Issue 4957002: - Check for a NULL PluginObject at all NPAPI entry points. This fixes a crash in Chrome where ... (Closed)

Created:
10 years, 1 month ago by Tristan Schmelcher 2
Modified:
9 years, 6 months ago
Reviewers:
zhurunz1, Tim H
CC:
o3d-review_googlegroups.com
Visibility:
Public.

Description

- Check for a NULL PluginObject at all NPAPI entry points. This fixes a crash in Chrome where the browser foolishly calls NPP_SetWindow with instance->pdata == NULL. - Factor out obscene amounts of redundancy from main_<platform>.(cc|mm) into main.cc. This makes no change to the functionality, except that NP_Initialize on Linux now has HANDLE_CRASHES whereas before it did not. TEST=built on Linux, Mac, and Windows; installed and loaded O3D on each platform and made sure it worked; repeatedly loaded on Mac & Win in Chrome 8.0.552.200 and verified no crashes; inspected "svn diff" output manually and verified that the code and order of execution of that code is unchanded for each platform BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66344

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+452 lines, -461 lines) Patch
M plugin/cross/main.h View 1 2 7 chunks +41 lines, -20 lines 0 comments Download
M plugin/cross/main.cc View 1 2 9 chunks +243 lines, -19 lines 0 comments Download
M plugin/cross/plugin_logging.h View 1 chunk +1 line, -0 lines 0 comments Download
M plugin/linux/main_linux.cc View 1 2 6 chunks +73 lines, -125 lines 0 comments Download
M plugin/mac/main_mac.mm View 1 2 10 chunks +49 lines, -144 lines 0 comments Download
M plugin/win/main_win.cc View 1 2 7 chunks +45 lines, -153 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Tristan Schmelcher 2
10 years, 1 month ago (2010-11-16 21:51:50 UTC) #1
Tristan Schmelcher 2
10 years, 1 month ago (2010-11-16 21:58:00 UTC) #2
Tim H
LGTM http://codereview.chromium.org/4957002/diff/27001/plugin/cross/plugin_logging.h File plugin/cross/plugin_logging.h (right): http://codereview.chromium.org/4957002/diff/27001/plugin/cross/plugin_logging.h#newcode41 plugin/cross/plugin_logging.h:41: #include "statsreport/metrics.h" Necessary? Don't see any other changes ...
10 years, 1 month ago (2010-11-16 23:03:23 UTC) #3
Tristan Schmelcher 2
http://codereview.chromium.org/4957002/diff/27001/plugin/cross/plugin_logging.h File plugin/cross/plugin_logging.h (right): http://codereview.chromium.org/4957002/diff/27001/plugin/cross/plugin_logging.h#newcode41 plugin/cross/plugin_logging.h:41: #include "statsreport/metrics.h" On 2010/11/16 23:03:23, thaloun wrote: > Necessary? ...
10 years, 1 month ago (2010-11-16 23:05:44 UTC) #4
Tristan Schmelcher 2
10 years, 1 month ago (2010-11-17 00:23:00 UTC) #5
It looks like this may not fully fix the issue, at least on Mac, but it is
certainly an improvement and all of the changes are desirable regardless, so I'm
going to submit now and investigate further.

Powered by Google App Engine
This is Rietveld 408576698