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

Issue 2496853003: Adjust leak detector expectations for IntersectionObserver

Created:
4 years, 1 month ago by Sami
Modified:
4 years, 1 month ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, jam, einbinder+watch-test-runner_chromium.org, blink-reviews, darin-cc_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adjust leak detector expectations for IntersectionObserver If the root document registers an intersection observer, an IntersectionObserverController (i.e., an ActiveDOMObject) will be created for that document. Since the object also holds a reference to the document, it will not be collected as long as the root document is live. This can cause the leak detector to falsely conclude that a new active DOM object is being leaked. This patch avoids the problem by increasing the number of expected active DOM objects in the leak detector. BUG=661182

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M content/shell/renderer/layout_test/leak_detector.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/LeakExpectations View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 15 (10 generated)
Sami
PTAL.
4 years, 1 month ago (2016-11-11 15:23:42 UTC) #5
hajimehoshi
On 2016/11/11 15:23:42, Sami wrote: > PTAL. This seems to affect all leak-detecting tests. Have ...
4 years, 1 month ago (2016-11-14 04:42:31 UTC) #11
sof
that's a good&valid point, unconditionally incrementing the count might hide a single ActiveDOMObject leak elsewhere ...
4 years, 1 month ago (2016-11-14 10:59:08 UTC) #13
hajimehoshi
Sorry but I'm not fully understand the situation. The leak detector compares the numbers of ...
4 years, 1 month ago (2016-11-14 11:50:33 UTC) #14
hajimehoshi
4 years, 1 month ago (2016-11-14 11:51:29 UTC) #15
s/I'm not fully understand/I don't fully understand/

Powered by Google App Engine
This is Rietveld 408576698