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

Issue 891263003: Keep SVGImage alive across its animation timer callback. (Closed)

Created:
5 years, 10 months ago by sof
Modified:
5 years, 10 months ago
Reviewers:
oilpan-reviews, haraken, fs
CC:
blink-reviews, krit, kouhei+svg_chromium.org, ed+blinkwatch_opera.com, f(malita), gyuyoung.kim_webkit.org, Stephen Chennney, pdr+svgwatchlist_chromium.org, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Keep SVGImage alive across its animation timer callback. An SVGImage runs the risk of being finalized while its animation callback is running. Add the required protection. The premature finalization is only a possibility with Oilpan enabled; see code comment. R=haraken,fs@opera.com BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189338

Patch Set 1 #

Total comments: 4

Patch Set 2 : a stack protection is required here #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M Source/core/svg/graphics/SVGImageChromeClient.cpp View 1 1 chunk +15 lines, -1 line 0 comments Download

Messages

Total messages: 21 (6 generated)
sof
Please take a look. Blind fix for https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Linux_Oilpan_ASAN/5340/layout-test-results/http/tests/uri/css-href-crash-log.txt
5 years, 10 months ago (2015-02-02 10:44:44 UTC) #2
haraken
https://codereview.chromium.org/891263003/diff/1/Source/core/svg/graphics/SVGImageChromeClient.cpp File Source/core/svg/graphics/SVGImageChromeClient.cpp (right): https://codereview.chromium.org/891263003/diff/1/Source/core/svg/graphics/SVGImageChromeClient.cpp#newcode89 Source/core/svg/graphics/SVGImageChromeClient.cpp:89: m_image->frameView()->page()->animator().serviceScriptedAnimations(monotonicallyIncreasingTime()); m_image is on stack and thus it's protected, ...
5 years, 10 months ago (2015-02-02 10:49:02 UTC) #4
sof
https://codereview.chromium.org/891263003/diff/1/Source/core/svg/graphics/SVGImageChromeClient.cpp File Source/core/svg/graphics/SVGImageChromeClient.cpp (right): https://codereview.chromium.org/891263003/diff/1/Source/core/svg/graphics/SVGImageChromeClient.cpp#newcode89 Source/core/svg/graphics/SVGImageChromeClient.cpp:89: m_image->frameView()->page()->animator().serviceScriptedAnimations(monotonicallyIncreasingTime()); On 2015/02/02 10:49:01, haraken wrote: > > m_image ...
5 years, 10 months ago (2015-02-02 10:51:40 UTC) #5
haraken
LGTM https://codereview.chromium.org/891263003/diff/1/Source/core/svg/graphics/SVGImageChromeClient.cpp File Source/core/svg/graphics/SVGImageChromeClient.cpp (right): https://codereview.chromium.org/891263003/diff/1/Source/core/svg/graphics/SVGImageChromeClient.cpp#newcode89 Source/core/svg/graphics/SVGImageChromeClient.cpp:89: m_image->frameView()->page()->animator().serviceScriptedAnimations(monotonicallyIncreasingTime()); On 2015/02/02 10:51:40, sof wrote: > On ...
5 years, 10 months ago (2015-02-02 10:55:42 UTC) #6
sof
On 2015/02/02 10:55:42, haraken wrote: > LGTM > > https://codereview.chromium.org/891263003/diff/1/Source/core/svg/graphics/SVGImageChromeClient.cpp > File Source/core/svg/graphics/SVGImageChromeClient.cpp (right): > ...
5 years, 10 months ago (2015-02-02 11:01:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/891263003/1
5 years, 10 months ago (2015-02-02 11:02:49 UTC) #9
fs
https://codereview.chromium.org/891263003/diff/1/Source/core/svg/graphics/SVGImageChromeClient.cpp File Source/core/svg/graphics/SVGImageChromeClient.cpp (right): https://codereview.chromium.org/891263003/diff/1/Source/core/svg/graphics/SVGImageChromeClient.cpp#newcode89 Source/core/svg/graphics/SVGImageChromeClient.cpp:89: m_image->frameView()->page()->animator().serviceScriptedAnimations(monotonicallyIncreasingTime()); On 2015/02/02 10:55:42, haraken wrote: > On 2015/02/02 ...
5 years, 10 months ago (2015-02-02 11:53:47 UTC) #11
sof
On 2015/02/02 11:53:47, fs wrote: > https://codereview.chromium.org/891263003/diff/1/Source/core/svg/graphics/SVGImageChromeClient.cpp > File Source/core/svg/graphics/SVGImageChromeClient.cpp (right): > > https://codereview.chromium.org/891263003/diff/1/Source/core/svg/graphics/SVGImageChromeClient.cpp#newcode89 > ...
5 years, 10 months ago (2015-02-02 11:56:39 UTC) #12
fs
On 2015/02/02 11:56:39, sof wrote: > On 2015/02/02 11:53:47, fs wrote: > > > https://codereview.chromium.org/891263003/diff/1/Source/core/svg/graphics/SVGImageChromeClient.cpp ...
5 years, 10 months ago (2015-02-02 12:15:32 UTC) #13
sof
On 2015/02/02 12:15:32, fs wrote: > On 2015/02/02 11:56:39, sof wrote: > > On 2015/02/02 ...
5 years, 10 months ago (2015-02-02 12:23:44 UTC) #15
sof
On 2015/02/02 12:23:44, sof wrote: > On 2015/02/02 12:15:32, fs wrote: > > On 2015/02/02 ...
5 years, 10 months ago (2015-02-02 12:46:05 UTC) #16
fs
On 2015/02/02 12:46:05, sof wrote: > On 2015/02/02 12:23:44, sof wrote: > > On 2015/02/02 ...
5 years, 10 months ago (2015-02-02 12:47:27 UTC) #17
sof
On 2015/02/02 12:47:27, fs wrote: > On 2015/02/02 12:46:05, sof wrote: > > On 2015/02/02 ...
5 years, 10 months ago (2015-02-02 12:49:31 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/891263003/20001
5 years, 10 months ago (2015-02-02 12:50:37 UTC) #20
commit-bot: I haz the power
5 years, 10 months ago (2015-02-02 14:37:06 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189338

Powered by Google App Engine
This is Rietveld 408576698