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

Issue 228133002: Fix crash if utterance is garbage-collected before speech ends. (Closed)

Created:
6 years, 8 months ago by dmazzoni
Modified:
6 years, 8 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix crash if utterance is garbage-collected before speech ends. BUG=359130, 348863 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171077

Patch Set 1 #

Total comments: 1

Patch Set 2 : Switch to RefPtrWillBeRawPtr #

Total comments: 1

Patch Set 3 : Added comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -3 lines) Patch
A LayoutTests/fast/speechsynthesis/speech-synthesis-gc-utterance-crash.html View 1 chunk +33 lines, -0 lines 0 comments Download
A + LayoutTests/fast/speechsynthesis/speech-synthesis-gc-utterance-crash-expected.txt View 1 chunk +1 line, -3 lines 0 comments Download
M Source/modules/speech/SpeechSynthesis.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
dmazzoni
6 years, 8 months ago (2014-04-08 06:48:07 UTC) #1
sof
https://codereview.chromium.org/228133002/diff/1/Source/modules/speech/SpeechSynthesis.cpp File Source/modules/speech/SpeechSynthesis.cpp (right): https://codereview.chromium.org/228133002/diff/1/Source/modules/speech/SpeechSynthesis.cpp#newcode157 Source/modules/speech/SpeechSynthesis.cpp:157: RefPtr<SpeechSynthesisUtterance> saveFirstUtterance; Wouldn't RefPtrWillBeRawPtr<SpeechSynthesisUtterance> protect(utterance); be equivalent? i.e., protect ...
6 years, 8 months ago (2014-04-08 08:16:04 UTC) #2
dmazzoni
On 2014/04/08 08:16:04, sof wrote: > https://codereview.chromium.org/228133002/diff/1/Source/modules/speech/SpeechSynthesis.cpp > File Source/modules/speech/SpeechSynthesis.cpp (right): > > https://codereview.chromium.org/228133002/diff/1/Source/modules/speech/SpeechSynthesis.cpp#newcode157 > ...
6 years, 8 months ago (2014-04-08 17:35:50 UTC) #3
sof
On 2014/04/08 17:35:50, dmazzoni wrote: > On 2014/04/08 08:16:04, sof wrote: > > > https://codereview.chromium.org/228133002/diff/1/Source/modules/speech/SpeechSynthesis.cpp ...
6 years, 8 months ago (2014-04-08 17:52:10 UTC) #4
dmazzoni
On 2014/04/08 17:52:10, sof wrote: > Thanks, looks safe to me now - abarth to ...
6 years, 8 months ago (2014-04-08 17:54:11 UTC) #5
eseidel
https://codereview.chromium.org/228133002/diff/20001/Source/modules/speech/SpeechSynthesis.cpp File Source/modules/speech/SpeechSynthesis.cpp (right): https://codereview.chromium.org/228133002/diff/20001/Source/modules/speech/SpeechSynthesis.cpp#newcode161 Source/modules/speech/SpeechSynthesis.cpp:161: m_utteranceQueue.removeFirst(); How did this work before if "utterance" can ...
6 years, 8 months ago (2014-04-08 17:56:33 UTC) #6
dmazzoni
On Tue, Apr 8, 2014 at 10:56 AM, <eseidel@chromium.org> wrote: > > https://codereview.chromium.org/228133002/diff/20001/ > Source/modules/speech/SpeechSynthesis.cpp ...
6 years, 8 months ago (2014-04-08 18:02:58 UTC) #7
eseidel
lgtm. I would just add a comment to the protector. something like: // m_uteranceQueue may ...
6 years, 8 months ago (2014-04-08 18:04:59 UTC) #8
dmazzoni
On 2014/04/08 18:04:59, eseidel wrote: > lgtm. I would just add a comment to the ...
6 years, 8 months ago (2014-04-08 18:15:11 UTC) #9
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 8 months ago (2014-04-08 18:15:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/228133002/30001
6 years, 8 months ago (2014-04-08 18:15:25 UTC) #11
commit-bot: I haz the power
6 years, 8 months ago (2014-04-08 19:21:36 UTC) #12
Message was sent while issue was closed.
Change committed as 171077

Powered by Google App Engine
This is Rietveld 408576698