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

Issue 332013: Add a regression test for the PluginChannel::CleanUp. My earlier speculative... (Closed)

Created:
11 years, 2 months ago by jam
Modified:
9 years, 7 months ago
Reviewers:
ananta
CC:
chromium-reviews_googlegroups.com, darin (slow to review), pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add a regression test for the PluginChannel::CleanUp. My earlier speculative fix was correct. I tracked this down to my earlier change to not leak NPObjects on channel shutdown (which now happens a lot more often because of sudden termination for tab close). Since we now call an NPObject's deallocate function, it's possible that it leads to an NPObjectProxy being deleted, in which case we would delete an object in the listener's array while we're looping across it. BUG=25439 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29982

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -1 line) Patch
A chrome/test/data/npapi/npobject_released_on_destruction.html View 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/test/ui/npapi_uitest.cc View 1 2 chunks +16 lines, -0 lines 0 comments Download
M webkit/tools/npapi_layout_test_plugin/TestObject.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/tools/npapi_layout_test_plugin/TestObject.cpp View 1 4 chunks +24 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
jam
11 years, 2 months ago (2009-10-23 19:30:02 UTC) #1
iyengar
Hi John I was unable to review TestObject.h/.cc due to broken link errors. Could you ...
11 years, 2 months ago (2009-10-23 23:48:42 UTC) #2
jam
Strange, I just re-uploaded.
11 years, 2 months ago (2009-10-24 00:19:48 UTC) #3
ananta
11 years, 2 months ago (2009-10-24 00:33:59 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698