| Summary: | Web Inspector: Canvas: unbinding a canvas should always remove the agent as an observer | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Devin Rousso <hi> | ||||
| Component: | Web Inspector | Assignee: | Devin Rousso <hi> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | cdumez, commit-queue, esprehn+autocc, ews-watchlist, gyuyoung.kim, hi, inspector-bugzilla-changes, joepeck, mattbaker, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
|
Description
Devin Rousso
2019-03-27 15:42:58 PDT
Created attachment 366119 [details]
Patch
Comment on attachment 366119 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366119&action=review r=me > Source/WebCore/html/CanvasBase.cpp:74 > observer->canvasChanged(*this, rect); I noticed this is a widely used pattern in WebKit. Is it to safeguard against m_observers mutating during iteration? Comment on attachment 366119 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=366119&action=review >> Source/WebCore/html/CanvasBase.cpp:74 >> observer->canvasChanged(*this, rect); > > I noticed this is a widely used pattern in WebKit. Is it to safeguard against m_observers mutating during iteration? Yup! Comment on attachment 366119 [details] Patch Clearing flags on attachment: 366119 Committed r243611: <https://trac.webkit.org/changeset/243611> All reviewed patches have been landed. Closing bug. |