Bug 52707 - Web Inspector: [Extensions API] delete pending callback from callback map before invoking it
Summary: Web Inspector: [Extensions API] delete pending callback from callback map bef...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Andrey Kosyakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-19 02:49 PST by Andrey Kosyakov
Modified: 2011-01-19 23:42 PST (History)
2 users (show)

See Also:


Attachments
patch (1.28 KB, patch)
2011-01-19 02:56 PST, Andrey Kosyakov
pfeldman: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Kosyakov 2011-01-19 02:49:40 PST
ExtensionAPI.js currently invokes callback before removing it from the map of pending callbacks. Under certain circumstances this may lead to callback being invoked multiple times.
Comment 1 Andrey Kosyakov 2011-01-19 02:56:20 PST
Created attachment 79407 [details]
patch
Comment 2 Andrey Kosyakov 2011-01-19 23:42:35 PST
Manually committed r76109: http://trac.webkit.org/changeset/76109