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

Issue 805263004: Oilpan: cancel MIDI permission request when prefinalizing (Closed)

Created:
6 years ago by sof
Modified:
6 years ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: cancel MIDI permission request when prefinalizing Cancelling an access permission request during finalization is a little bit too late for the now-GCed MIDIAccessInitializer object. Arrange or a prefinalizer to handle it instead. R=haraken BUG=420515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187515

Patch Set 1 #

Total comments: 6

Patch Set 2 : use a pre-finalizer instead #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -10 lines) Patch
M Source/modules/webmidi/MIDIAccessInitializer.h View 1 2 chunks +6 lines, -3 lines 1 comment Download
M Source/modules/webmidi/MIDIAccessInitializer.cpp View 1 2 chunks +12 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
sof
Please take a look. webmidi tests crash reliably with leak detection enabled.
6 years ago (2014-12-18 14:36:03 UTC) #2
haraken
https://codereview.chromium.org/805263004/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp File Source/modules/webmidi/MIDIAccessInitializer.cpp (right): https://codereview.chromium.org/805263004/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp#newcode29 Source/modules/webmidi/MIDIAccessInitializer.cpp:29: { What happens if MIDIAccessInitializer gets destructed before ActiveDOMObject::stop() ...
6 years ago (2014-12-18 14:42:46 UTC) #4
sof
https://codereview.chromium.org/805263004/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp File Source/modules/webmidi/MIDIAccessInitializer.cpp (right): https://codereview.chromium.org/805263004/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp#newcode29 Source/modules/webmidi/MIDIAccessInitializer.cpp:29: { On 2014/12/18 14:42:46, haraken wrote: > > What ...
6 years ago (2014-12-18 14:53:54 UTC) #5
haraken
https://codereview.chromium.org/805263004/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp File Source/modules/webmidi/MIDIAccessInitializer.cpp (right): https://codereview.chromium.org/805263004/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp#newcode29 Source/modules/webmidi/MIDIAccessInitializer.cpp:29: { On 2014/12/18 14:53:54, sof wrote: > On 2014/12/18 ...
6 years ago (2014-12-18 15:02:28 UTC) #6
sof
https://codereview.chromium.org/805263004/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp File Source/modules/webmidi/MIDIAccessInitializer.cpp (right): https://codereview.chromium.org/805263004/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp#newcode29 Source/modules/webmidi/MIDIAccessInitializer.cpp:29: { On 2014/12/18 15:02:28, haraken wrote: > On 2014/12/18 ...
6 years ago (2014-12-18 15:17:58 UTC) #7
haraken
https://codereview.chromium.org/805263004/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp File Source/modules/webmidi/MIDIAccessInitializer.cpp (right): https://codereview.chromium.org/805263004/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp#newcode29 Source/modules/webmidi/MIDIAccessInitializer.cpp:29: { On 2014/12/18 15:17:57, sof wrote: > On 2014/12/18 ...
6 years ago (2014-12-18 15:44:02 UTC) #8
sof
On 2014/12/18 15:44:02, haraken wrote: > https://codereview.chromium.org/805263004/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp > File Source/modules/webmidi/MIDIAccessInitializer.cpp (right): > > https://codereview.chromium.org/805263004/diff/1/Source/modules/webmidi/MIDIAccessInitializer.cpp#newcode29 > ...
6 years ago (2014-12-18 15:52:19 UTC) #9
haraken
LGTM https://codereview.chromium.org/805263004/diff/20001/Source/modules/webmidi/MIDIAccessInitializer.h File Source/modules/webmidi/MIDIAccessInitializer.h (right): https://codereview.chromium.org/805263004/diff/20001/Source/modules/webmidi/MIDIAccessInitializer.h#newcode23 Source/modules/webmidi/MIDIAccessInitializer.h:23: USING_PRE_FINALIZER(MIDIAccessInitializer, dispose); Just to confirm: The reason we ...
6 years ago (2014-12-19 03:47:16 UTC) #10
sof
On 2014/12/19 03:47:16, haraken wrote: > LGTM > > https://codereview.chromium.org/805263004/diff/20001/Source/modules/webmidi/MIDIAccessInitializer.h > File Source/modules/webmidi/MIDIAccessInitializer.h (right): > ...
6 years ago (2014-12-19 08:06:46 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/805263004/20001
6 years ago (2014-12-19 08:08:08 UTC) #13
commit-bot: I haz the power
6 years ago (2014-12-19 08:11:14 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187515

Powered by Google App Engine
This is Rietveld 408576698