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

Issue 257503003: Oilpan: Enable Oilpan by default in modules/encryptedmedia (Closed)

Created:
6 years, 8 months ago by haraken
Modified:
6 years, 6 months ago
CC:
blink-reviews, feature-media-reviews_chromium.org, philipj_slow, eric.carlson_apple.com, jrummell, ddorwin
Visibility:
Public.

Description

Oilpan: Enable Oilpan by default in modules/encryptedmedia This CL changes generated bindings so that both toV8(RawPtr<X>) and toV8(X*) are generated. Otherwise, if someone uses RawPtr<X> instead of X* in the code base, it can be bound to unexpected toV8() and a wrong wrapper can be returned to V8. For more details, see my comment in the patch set 3. BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175248

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 1

Patch Set 11 : #

Patch Set 12 : #

Total comments: 1

Patch Set 13 : #

Patch Set 14 : #

Total comments: 1

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -56 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
M Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -5 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +5 lines, -5 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -4 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +7 lines, -14 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +9 lines, -25 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/Timer.h View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 79 (0 generated)
haraken
PTAL https://codereview.chromium.org/257503003/diff/40001/Source/bindings/templates/interface.h File Source/bindings/templates/interface.h (left): https://codereview.chromium.org/257503003/diff/40001/Source/bindings/templates/interface.h#oldcode257 Source/bindings/templates/interface.h:257: {% if gc_type != 'GarbageCollectedObject' %} It took ...
6 years, 8 months ago (2014-04-25 09:47:32 UTC) #1
Mads Ager (chromium)
LGTM https://codereview.chromium.org/257503003/diff/40001/Source/bindings/templates/interface.h File Source/bindings/templates/interface.h (left): https://codereview.chromium.org/257503003/diff/40001/Source/bindings/templates/interface.h#oldcode257 Source/bindings/templates/interface.h:257: {% if gc_type != 'GarbageCollectedObject' %} On 2014/04/25 ...
6 years, 7 months ago (2014-04-28 11:02:31 UTC) #2
haraken
On 2014/04/28 11:02:31, Mads Ager (chromium) wrote: > LGTM > > https://codereview.chromium.org/257503003/diff/40001/Source/bindings/templates/interface.h > File Source/bindings/templates/interface.h ...
6 years, 7 months ago (2014-04-28 11:06:17 UTC) #3
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 7 months ago (2014-04-28 11:06:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/257503003/40001
6 years, 7 months ago (2014-04-28 11:06:52 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 11:07:04 UTC) #6
commit-bot: I haz the power
Failed to apply patch for Source/modules/encryptedmedia/MediaKeySession.idl: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-04-28 11:07:05 UTC) #7
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 7 months ago (2014-04-28 11:11:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/257503003/60001
6 years, 7 months ago (2014-04-28 11:11:47 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 11:55:26 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 7 months ago (2014-04-28 11:55:27 UTC) #11
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 7 months ago (2014-04-28 12:01:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/257503003/60001
6 years, 7 months ago (2014-04-28 12:01:22 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 12:45:46 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 7 months ago (2014-04-28 12:45:47 UTC) #15
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 7 months ago (2014-05-12 06:36:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/257503003/60001
6 years, 7 months ago (2014-05-12 06:36:28 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-12 06:36:38 UTC) #18
commit-bot: I haz the power
Failed to apply patch for Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-12 06:36:38 UTC) #19
haraken
I didn't notice that this CL hasn't yet landed. Landing this CL now, since it's ...
6 years, 7 months ago (2014-05-12 07:20:40 UTC) #20
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 7 months ago (2014-05-12 07:20:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/257503003/80001
6 years, 7 months ago (2014-05-12 07:20:54 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-12 08:29:42 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-12 08:58:42 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/5628)
6 years, 7 months ago (2014-05-12 08:58:42 UTC) #25
haraken
tkent-san: Would you take a look at platform/? I guess we need to land this ...
6 years, 7 months ago (2014-05-12 09:32:37 UTC) #26
haraken
tkent-san@: ping? Would you take a look at platform/ ?
6 years, 7 months ago (2014-05-13 08:02:40 UTC) #27
tkent
lgtm
6 years, 7 months ago (2014-05-13 08:10:46 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-13 08:50:13 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-13 09:30:09 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/6552)
6 years, 7 months ago (2014-05-13 09:30:10 UTC) #31
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 7 months ago (2014-05-13 09:41:34 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/257503003/140001
6 years, 7 months ago (2014-05-13 09:41:39 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-13 10:03:43 UTC) #34
tkent
On 2014/05/13 10:03:43, I haz the power (commit-bot) wrote: > FYI, CQ is re-trying this ...
6 years, 7 months ago (2014-05-13 10:41:33 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-13 10:45:43 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/6557)
6 years, 7 months ago (2014-05-13 10:45:44 UTC) #37
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 7 months ago (2014-05-13 10:46:14 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/257503003/140001
6 years, 7 months ago (2014-05-13 10:46:22 UTC) #39
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-13 11:25:03 UTC) #40
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-13 12:02:37 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/6564)
6 years, 7 months ago (2014-05-13 12:02:38 UTC) #42
haraken
It looks like encrypted-media-lifetime-mediakeys.html is failing only on the mac_rel bot. I'm taking a look.
6 years, 7 months ago (2014-05-13 12:19:53 UTC) #43
haraken
On 2014/05/13 12:19:53, haraken wrote: > It looks like encrypted-media-lifetime-mediakeys.html is failing only on the ...
6 years, 6 months ago (2014-05-27 09:30:27 UTC) #44
sof
On 2014/05/27 09:30:27, haraken wrote: > On 2014/05/13 12:19:53, haraken wrote: > > It looks ...
6 years, 6 months ago (2014-05-27 09:46:58 UTC) #45
Mads Ager (chromium)
On Tue, May 27, 2014 at 11:46 AM, <sigbjornf@opera.com> wrote: > On 2014/05/27 09:30:27, haraken ...
6 years, 6 months ago (2014-05-27 09:50:58 UTC) #46
haraken
When I rewrite the test using asyncGC, it starts failing in my local linux :) ...
6 years, 6 months ago (2014-05-27 12:27:41 UTC) #47
haraken
https://codereview.chromium.org/257503003/diff/180001/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys.html File LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys.html (right): https://codereview.chromium.org/257503003/diff/180001/LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys.html#newcode71 LayoutTests/media/encrypted-media/encrypted-media-lifetime-mediakeys.html:71: gc(); Hmm, I rewrote the test using asyncGC(), but ...
6 years, 6 months ago (2014-05-27 14:51:16 UTC) #48
haraken
Here is a minimized test case. Investigating. ================================================ jsTestIsAsync = true; step1(); var mediaKeys; var ...
6 years, 6 months ago (2014-05-28 05:31:26 UTC) #49
haraken
OK, I finally found the cause. In short, the test is relying on being executed ...
6 years, 6 months ago (2014-05-28 07:06:34 UTC) #50
Mads Ager (chromium)
On 2014/05/28 07:06:34, haraken wrote: > OK, I finally found the cause. In short, the ...
6 years, 6 months ago (2014-05-28 07:55:09 UTC) #51
haraken
On 2014/05/28 07:55:09, Mads Ager (chromium) wrote: > On 2014/05/28 07:06:34, haraken wrote: > > ...
6 years, 6 months ago (2014-05-28 11:23:45 UTC) #52
haraken
In the patch set 14, I added [Pass Failure] to the TestExpectation at the moment. ...
6 years, 6 months ago (2014-05-28 11:40:11 UTC) #53
sof
https://codereview.chromium.org/257503003/diff/240001/Source/modules/encryptedmedia/MediaKeys.h File Source/modules/encryptedmedia/MediaKeys.h (right): https://codereview.chromium.org/257503003/diff/240001/Source/modules/encryptedmedia/MediaKeys.h#newcode78 Source/modules/encryptedmedia/MediaKeys.h:78: HTMLMediaElement* m_mediaElement; Untraced and unused; shall we just remove ...
6 years, 6 months ago (2014-05-28 14:59:13 UTC) #54
haraken
On 2014/05/28 14:59:13, sof wrote: > https://codereview.chromium.org/257503003/diff/240001/Source/modules/encryptedmedia/MediaKeys.h > File Source/modules/encryptedmedia/MediaKeys.h (right): > > https://codereview.chromium.org/257503003/diff/240001/Source/modules/encryptedmedia/MediaKeys.h#newcode78 > ...
6 years, 6 months ago (2014-05-29 00:45:44 UTC) #55
sof
On 2014/05/29 00:45:44, haraken wrote: > On 2014/05/28 14:59:13, sof wrote: > > > https://codereview.chromium.org/257503003/diff/240001/Source/modules/encryptedmedia/MediaKeys.h ...
6 years, 6 months ago (2014-05-29 08:59:47 UTC) #56
haraken
On 2014/05/29 08:59:47, sof wrote: > On 2014/05/29 00:45:44, haraken wrote: > > On 2014/05/28 ...
6 years, 6 months ago (2014-05-29 09:42:08 UTC) #57
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 6 months ago (2014-05-29 09:42:14 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/257503003/260001
6 years, 6 months ago (2014-05-29 09:43:08 UTC) #59
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-29 09:43:27 UTC) #60
commit-bot: I haz the power
Failed to apply patch for Source/modules/encryptedmedia/MediaKeySession.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 6 months ago (2014-05-29 09:43:28 UTC) #61
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 6 months ago (2014-05-29 10:49:18 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/257503003/280001
6 years, 6 months ago (2014-05-29 10:51:12 UTC) #63
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 6 months ago (2014-05-29 12:26:13 UTC) #64
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-29 12:49:53 UTC) #65
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/21428)
6 years, 6 months ago (2014-05-29 12:49:54 UTC) #66
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 6 months ago (2014-06-02 01:23:36 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/257503003/320001
6 years, 6 months ago (2014-06-02 01:23:45 UTC) #68
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-06-02 02:11:49 UTC) #69
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-02 02:12:17 UTC) #70
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/12746)
6 years, 6 months ago (2014-06-02 02:12:18 UTC) #71
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 6 months ago (2014-06-02 02:28:30 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/257503003/320001
6 years, 6 months ago (2014-06-02 02:28:39 UTC) #73
commit-bot: I haz the power
Change committed as 175248
6 years, 6 months ago (2014-06-02 03:24:52 UTC) #74
haraken
acolwell@: Not related to Oilpan, I have a question about lifetime of MediaKeySession. I found ...
6 years, 6 months ago (2014-06-04 01:15:11 UTC) #75
acolwell GONE FROM CHROMIUM
On 2014/06/04 01:15:11, haraken wrote: > acolwell@: Not related to Oilpan, I have a question ...
6 years, 6 months ago (2014-06-04 15:56:33 UTC) #76
jrummell
My understanding is the same as acolwell@'s. The event timer fires, and should dispatch the ...
6 years, 6 months ago (2014-06-04 19:23:20 UTC) #77
haraken
> My understanding is the same as acolwell@'s. The event timer fires, and > should ...
6 years, 6 months ago (2014-06-05 02:46:58 UTC) #78
acolwell GONE FROM CHROMIUM
6 years, 6 months ago (2014-06-05 04:28:01 UTC) #79
Message was sent while issue was closed.
On 2014/06/05 02:46:58, haraken wrote:
> > My understanding is the same as acolwell@'s. The event timer fires, and
> > should dispatch the event. If there are no listeners available (in your
> > example) the event is freed.
> > 
> > I think what is happening in your example is that after step 6, the blink
> > thread has the event timer firing queued up after GC. So when GC runs, the
> > event is still pending, and m_asyncEventQueue still has an entry,
> > preventing it from being collected. If step2 does asyncGC(step3), step3()
> > is the test, does that work as it should give time for the event timer to
> > be handled?
> 
> Thanks jrummell@! I tried it but unfortunately it didn't work. Specifically,
the
> following test didn't work.
> 
> function step1() {
>   mediaKeys = new MediaKeys("org.w3.clearkey");
>   mediaKeys.createSession("video/webm", new Uint8Array([0]));
>   shouldBe('numActiveDOMObjectsCreated()', '1');
>   mediaKeys = null;
>   setTimeout(step2, 100);  // asyncGC(step2) didn't work either.
> }
> 
> function step2() {
>   asyncGC(step3);
> }
> 
> function step3() {
>   shouldBe('numActiveDOMObjectsCreated()', '0');  // This fails. The actual
> value is 1.
> }
> 
> As far as I read MediaKeySession.cpp, there is no call path other than
> MediaKeySession::stop() that pops events from m_asyncEventQueue. So I guess
that
> events queued in the m_asyncEventQueue won't be popped until the
> ExeuctionContext stops. (Looks like MediaKeySession::actionTimerFired() does
> nothing for m_asyncEventQueue.)

haraken: m_asyncEventQueue is a GenericEventQueue.
GenericEventQueue::timerFired() is where the events get popped. The timer gets
scheduled in GenericEventQueue::enqueueEvent(). Is it possible that something
else is somehow cancelling the timer in the GenericEventQueue?

Powered by Google App Engine
This is Rietveld 408576698