From f938c42021364e9ffbcd40f502d5f762c4a48ca6 Mon Sep 17 00:00:00 2001 From: Bryce Seager van Dyk Date: Thu, 24 Feb 2022 02:04:46 +0000 Subject: [PATCH] Bug 1755822 - Add test to ensure MediaTrackBuffersManager is clearing its input buffer. r=media-playback-reviewers,alwu This adds a modified version of the bipbop video 1 segment used in the MediaSource tests. This modified segment contains a large trailing 'skip' box. These trailing boxes can interfere with Gecko's ability to clear memory. A test case is added to test that Fx is correctly clearing memory after the new segment is appended several times. Prior to the fix in bug 1697476 this test would fail, but we should now handle this case better. Differential Revision: https://phabricator.services.mozilla.com/D139265 --- .../bipbop_trailing_skip_box_video1.m4s | Bin 0 -> 1023860 bytes ...pbop_trailing_skip_box_video1.m4s^headers^ | 1 + dom/media/mediasource/test/mochitest.ini | 3 + .../test/test_InputBufferIsCleared.html | 58 ++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 dom/media/mediasource/test/bipbop/bipbop_trailing_skip_box_video1.m4s create mode 100644 dom/media/mediasource/test/bipbop/bipbop_trailing_skip_box_video1.m4s^headers^ create mode 100644 dom/media/mediasource/test/test_InputBufferIsCleared.html diff --git a/dom/media/mediasource/test/bipbop/bipbop_trailing_skip_box_video1.m4s b/dom/media/mediasource/test/bipbop/bipbop_trailing_skip_box_video1.m4s new file mode 100644 index 0000000000000000000000000000000000000000..fa5d454277097f49f941f9ddd7eafe80c1db1aa6 GIT binary patch literal 1023860 zcmcG#cU)7=vp9T`(0lJ41QeAf(g{TY6$C^DL8K!{Q$VCAbdV|_MHHkL5s)HP5{eWB zr3olVLT@6W2M9TD@Oi%P_qq3X-+S*Lzjr>6-7{x*XLio)?97}!003}#`}jX}_jYgw zNN`fRd%O6Ns%O1j98Ss;fB+Ed0EBz&FC@gz-P6;Fbce~^$=TuWb`VlG z8y_#*KX{)LJoI0E0VW?O2cN&&kqU^CkJn=l0H7r&U2u`Ek$>HzZ3F=E+ke$bJOD6R zQX3ME(-Q!o|G+~@Z2SukIsA8fDC!^h`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!$k`Wq{@I8>{Nqi*4u0p%#~GWx z{JKL@$lMYMMLLxWuHMrxFs*a@;L~?s48C4{zk?-oBmBUtM9rvGkOW?||7Oe+PxKw#? z;YmeDH5{~XZrNOQ7A;GDIQr`%kJj0dXG@_sO00SFuW6YbuIcebFBcsUT)a7SYSE}d z)h-1eq_3+x>Yk~2M-{qfaFyR~y!S?i&gq{!A@{CjnLCDL%cxqdVc`yW#y#1yN=Tm1 zLPA4|Htv05*5Kfh$J;}~0!20tjScy3bl%u2#}X4-r+v~Ttl7Gmfl}+*9}eCB`IAf zTk}eGYCAZtd6!YAj=ymFg>8c;ymo(j{?(r~2=qUkH}b7-nm*cM@PX}9d!_7)P6>vu zZLc+N9+o%k;>En}+b8>VDv>!qW}N^ literal 0 HcmV?d00001 diff --git a/dom/media/mediasource/test/bipbop/bipbop_trailing_skip_box_video1.m4s^headers^ b/dom/media/mediasource/test/bipbop/bipbop_trailing_skip_box_video1.m4s^headers^ new file mode 100644 index 000000000000..4030ea1d3ddb --- /dev/null +++ b/dom/media/mediasource/test/bipbop/bipbop_trailing_skip_box_video1.m4s^headers^ @@ -0,0 +1 @@ +Cache-Control: no-store diff --git a/dom/media/mediasource/test/mochitest.ini b/dom/media/mediasource/test/mochitest.ini index 7549c3c7d971..0fbbebe081f9 100644 --- a/dom/media/mediasource/test/mochitest.ini +++ b/dom/media/mediasource/test/mochitest.ini @@ -6,6 +6,8 @@ support-files = seek_lowres.webm seek_lowres.webm^headers^ bipbop/bipbop_300-3s.webm bipbop/bipbop_300-3s.webm^headers^ bipbop/bipbop2s.mp4 bipbop/bipbop2s.mp4^headers^ + bipbop/bipbop_trailing_skip_box_video1.m4s + bipbop/bipbop_trailing_skip_box_video1.m4s^headers^ bipbop/bipbopinit.mp4 bipbop/bipbop_audioinit.mp4 bipbop/bipbop_videoinit.mp4 bipbop/bipbop1.m4s bipbop/bipbop_audio1.m4s bipbop/bipbop_video1.m4s bipbop/bipbop2.m4s bipbop/bipbop_audio2.m4s bipbop/bipbop_video2.m4s @@ -87,6 +89,7 @@ skip-if = os == 'win' # bug 1487973, [test_HaveMetadataUnbufferedSeek.html] [test_HaveMetadataUnbufferedSeek_mp4.html] [test_HEAAC_extradata.html] +[test_InputBufferIsCleared.html] [test_LiveSeekable.html] [test_LoadedDataFired_mp4.html] [test_LoadedMetadataFired.html] diff --git a/dom/media/mediasource/test/test_InputBufferIsCleared.html b/dom/media/mediasource/test/test_InputBufferIsCleared.html new file mode 100644 index 000000000000..bad9a0c558c3 --- /dev/null +++ b/dom/media/mediasource/test/test_InputBufferIsCleared.html @@ -0,0 +1,58 @@ + + + + MSE: input buffer is cleared as expected (bug 1697476) + + + + + +
+
+
+ +