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

Issue 9693048: Make sure ports are closed when they're no longer used. (Closed)

Created:
8 years, 9 months ago by jochen (gone - plz use gerrit)
Modified:
8 years, 9 months ago
Reviewers:
Matt Perry
CC:
chromium-reviews, Aaron Boodman, darin-cc_chromium.org, mihaip+watch_chromium.org, brettw-cc_chromium.org, levin, Michael Starzinger
Visibility:
Public.

Description

Make sure ports are closed when they're no longer used. It appears to be a common pattern that extensions don't invoke the responseCallback, and so the port objects leak. Register a callback that triggers when the responseCallback is finalized to free up these resources. BUG=114738, 93566 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126884

Patch Set 1 #

Total comments: 2

Patch Set 2 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -13 lines) Patch
M chrome/common/extensions/docs/messaging.html View 1 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/common/extensions/docs/static/messaging.html View 1 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/renderer/extensions/miscellaneous_bindings.cc View 1 2 chunks +31 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/miscellaneous_bindings.js View 1 3 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
jochen (gone - plz use gerrit)
plz review
8 years, 9 months ago (2012-03-13 16:41:22 UTC) #1
Matt Perry
Awesome, thanks! Can you also update the docs here (http://code.google.com/chrome/extensions/trunk/messaging.html )? Currently it reads "The ...
8 years, 9 months ago (2012-03-13 19:54:39 UTC) #2
jochen (gone - plz use gerrit)
all done
8 years, 9 months ago (2012-03-14 09:20:05 UTC) #3
Matt Perry
lgtm
8 years, 9 months ago (2012-03-14 23:22:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jochen@chromium.org/9693048/6001
8 years, 9 months ago (2012-03-15 08:25:38 UTC) #5
commit-bot: I haz the power
8 years, 9 months ago (2012-03-15 10:43:23 UTC) #6
Change committed as 126884

Powered by Google App Engine
This is Rietveld 408576698