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

Issue 8934008: chrome.webRequest.*.removeListener removes callbacks that were registered multiple times (Closed)

Created:
9 years ago by battre
Modified:
9 years ago
Reviewers:
Matt Perry
CC:
chromium-reviews, jstritar+watch_chromium.org, brettw-cc_chromium.org, mihaip+watch_chromium.org, Aaron Boodman, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

chrome.webRequest.*.removeListener removes callbacks that were registered multiple times Because - chrome.webRequest.*.addListener can be called multiple times with the same callback function, and - chrome.webRequest.*.removeListener does not consider the filters and extraInfoSpec for removing a listener, calling removeListener should remove all listeners that are registered for one callback. BUG=107368 TEST=no Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114446

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -11 lines) Patch
M chrome/renderer/resources/extensions/schema_generated_bindings.js View 1 chunk +9 lines, -11 lines 0 comments Download
M chrome/test/data/extensions/api_test/webrequest/test_api.js View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
battre
Hi Matt, what do you think of this approach? Should we do this or make ...
9 years ago (2011-12-13 18:46:17 UTC) #1
Matt Perry
LGTM. I expect removeListener to be used very rarely, and even less frequently for removeListener(cb) ...
9 years ago (2011-12-13 20:29:59 UTC) #2
battre
On 2011/12/13 20:29:59, Matt Perry wrote: > LGTM. I expect removeListener to be used very ...
9 years ago (2011-12-13 21:48:21 UTC) #3
commit-bot: I haz the power
No LGTM from valid reviewers yet.
9 years ago (2011-12-14 12:08:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/8934008/1
9 years ago (2011-12-14 14:45:26 UTC) #5
commit-bot: I haz the power
9 years ago (2011-12-14 17:17:25 UTC) #6
Change committed as 114446

Powered by Google App Engine
This is Rietveld 408576698