Last Comment Bug 966374 - Race condition in AddonRepository.cancelSearch()
: Race condition in AddonRepository.cancelSearch()
Status: NEW
:
Product: Toolkit
Classification: Components
Component: Add-ons Manager (show other bugs)
: unspecified
: All All
-- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
: Andy McKay [:andym]
Mentors:
Depends on:
Blocks: 772484
  Show dependency treegraph
 
Reported: 2014-01-31 10:39 PST by :Irving Reid (No longer working on Firefox)
Modified: 2014-01-31 10:39 PST (History)
0 users
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description User image :Irving Reid (No longer working on Firefox) 2014-01-31 10:39:17 PST
AddonRepository._repopulateCacheInternal(), and possibly several other internal and external AddonRepository APIs, perform callback-based async steps (e.g. AddonManager.getAddonsByIDs()) before issuing the actual XHR request and setting the AddonRepository._searching flag.

If an AddonRepository.cancelSearch() call comes in during the async steps before the XHR starts, it has no effect and the search will still be performed.

Note You need to log in before you can comment on or make changes to this bug.