[Webkit-unassigned] [Bug 164268] New: Web Inspector: Fix double remove of ResourceCollection if type changes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 1 00:48:18 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=164268
Bug ID: 164268
Summary: Web Inspector: Fix double remove of ResourceCollection
if type changes
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dcrousso+webkit at gmail.com
CC: bburg at apple.com, joepeck at webkit.org,
mattbaker at apple.com, nvasilyev at apple.com,
timothy at apple.com, webkit-bug-importer at group.apple.com
If a ResourceCollection is created without a type, and a Resource object is added to it, a sub-collection (also a ResourceCollection) is created for that specific type and stored in a Map. If the type on that Resource changes, the `WebInspector.Resource.Event.TypeDidChange` event listeners for both the "parent" collection and the sub-collection will be fired, and both attempt to remove the resource from the sub-collection of that type:
- The "parent" tries to add it to the sub-collection of the new type (creating one if it does not exist) and remove it from the sub-collection of the old type
- The sub-collection of the old type tries to remove it from itself since it has a specified type, and changing types means that it no longer matches
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161101/01808def/attachment.html>
More information about the webkit-unassigned
mailing list