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

Issue 1849033002: Reject outstanding promises asynchronously when cleared (Closed)

Created:
4 years, 8 months ago by jrummell
Modified:
4 years, 8 months ago
Reviewers:
halliwell, xhwang
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reject outstanding promises asynchronously when cleared Outstanding promises may get cleared due to blink garbage collection destroying all the remaining EME objects when they are no longer referenced. However, blink doesn't like creating new objects during gc (rejection results in a DOMException being created), so post a task to reject the promise(s) later. BUG=597355 TEST=tested on cast

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -3 lines) Patch
M media/base/cdm_promise_adapter.cc View 2 chunks +16 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
halliwell
Hey John. Thanks for putting this together. The first time I ran our test with ...
4 years, 8 months ago (2016-04-01 04:26:49 UTC) #2
halliwell
On 2016/04/01 04:26:49, halliwell wrote: > Hey John. Thanks for putting this together. The first ...
4 years, 8 months ago (2016-04-01 17:55:55 UTC) #3
jrummell
PTAL. This looks like it fixes the cast issue.
4 years, 8 months ago (2016-04-01 19:54:26 UTC) #6
halliwell
On 2016/04/01 19:54:26, jrummell wrote: > PTAL. This looks like it fixes the cast issue. ...
4 years, 8 months ago (2016-04-01 21:46:09 UTC) #7
xhwang
Thanks! I few thoughts: - if any class stores the promise and GC triggers the ...
4 years, 8 months ago (2016-04-01 22:32:21 UTC) #8
jrummell
4 years, 8 months ago (2016-04-08 17:56:01 UTC) #9
Closing this in favor of https://codereview.chromium.org/1870883003/ (which
frees the media::MediaKeys object asynchronously).

Powered by Google App Engine
This is Rietveld 408576698