Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(616)

Issue 415203003: Delay unregistering handlers when a document is detached (Closed)

Created:
6 years, 4 months ago by Sami
Modified:
6 years, 4 months ago
Reviewers:
Rick Byers
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Project:
blink
Visibility:
Public.

Description

Delay 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M Source/core/dom/Document.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/page/Page.cpp View 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Sami
Hi Rick, here's a crasher fix for you to look at. Unfortunately I haven't found ...
6 years, 4 months ago (2014-07-24 18:24:25 UTC) #1
Rick Byers
Wow, I'm amazed that this fix helps the situation. It's not like we'd be handling ...
6 years, 4 months ago (2014-07-24 19:42:16 UTC) #2
Sami
The CQ bit was checked by skyostil@chromium.org
6 years, 4 months ago (2014-07-24 19:54:05 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/415203003/1
6 years, 4 months ago (2014-07-24 19:55:09 UTC) #4
commit-bot: I haz the power
6 years, 4 months ago (2014-07-24 19:58:34 UTC) #5
Message was sent while issue was closed.
Change committed as 178865

Powered by Google App Engine
This is Rietveld 408576698