DescriptionDelay unregistering handlers when a document is detached
When a document is detached, we need to unregister all event targets
within that document. Currently that is done too early, making it
possible for new handlers to get added into the registry before the
document is fully detached. This results in stale handlers getting left
in the registry, causing a crash an arbitrary amount of time later once
the registry is modified again.
This patch fixes the problem by clearing the registry immediately before
the document is actually detached, making it impossible for any new
handlers to be introduced.
BUG=393154
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178865
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|