Chromium Code Reviews
DescriptionNotification should not leak document.
The notification object was leaking the source document. The notification are
setPendingActivity() when show()-ed, but the code path to the finalize() method,
which calls unsetPendingActivity() internally, is corrupted. The dispatch*Event()
functions was skipped from WebNotification* impl, it called dispatchEvent directly.
This patch changes WebNotification to not call dispatchEvent() directly, but use
dispatch{Click,Close,Error,Show}Event() methods. This avoids code duplication.
BUG=270000
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156610
Patch Set 1 #Patch Set 2 : add test expectation #
Total comments: 4
Patch Set 3 : ActiveDOMObject / leak fix only #Patch Set 4 : update testexp #
Messages
Total messages: 19 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||