Revision 8de72ea1dd06f888b17ae3e4a479ae0ee27957e5 authored by moz-wptsync-bot on 16 March 2018, 17:19:41 UTC, committed by moz-wptsync-bot on 16 March 2018, 17:19:41 UTC
We flushed the style of the original doc, but not layout, and thus the iframe resize wasn't noticed, and the style flush on the child presShell wasn't sufficient. Do a style flush on the child document instead, so that it flushes layout on the parent document too if needed. bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1443492 gecko-commit: 9cbafe1855ccac5fd2f0c2e549e830a66a72f84f gecko-integration-branch: mozilla-inbound gecko-reviewers: dbaron
1 parent bb066ef
mediasource-appendbuffer-quota-exceeded.html
<!DOCTYPE html>
<!-- Copyright © 2016 Chromium authors and World Wide Web Consortium, (Massachusetts Institute of Technology, ERCIM, Keio University, Beihang). -->
<meta charset="utf-8">
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="mediasource-util.js"></script>
<script>
var subType = MediaSourceUtil.getSubType(MediaSourceUtil.AUDIO_ONLY_TYPE);
var manifestFilenameAudio = subType + "/test-a-128k-44100Hz-1ch-manifest.json";
// Fill up a given SourceBuffer by appending data repeatedly via doAppendDataFunc until
// an exception is thrown. The thrown exception is passed to onCaughtExceptionCallback.
function fillUpSourceBuffer(test, sourceBuffer, doAppendDataFunc, onCaughtExceptionCallback) {
// We are appending data repeatedly in sequence mode, there should be no gaps.
assert_false(sourceBuffer.buffered.length > 1, "unexpected gap in buffered ranges.");
try {
doAppendDataFunc();
} catch(ex) {
onCaughtExceptionCallback(ex);
}
test.expectEvent(sourceBuffer, 'updateend', 'append ended.');
test.waitForExpectedEvents(function() { fillUpSourceBuffer(test, sourceBuffer, doAppendDataFunc, onCaughtExceptionCallback); });
}
mediasource_test(function(test, mediaElement, mediaSource)
{
mediaElement.addEventListener("error", test.unreached_func("Unexpected event 'error'"));
MediaSourceUtil.fetchManifestAndData(test, manifestFilenameAudio, function(typeAudio, dataAudio)
{
var sourceBuffer = mediaSource.addSourceBuffer(typeAudio);
sourceBuffer.mode = 'sequence';
fillUpSourceBuffer(test, sourceBuffer,
function () { // doAppendDataFunc
sourceBuffer.appendBuffer(dataAudio);
},
function (ex) { // onCaughtExceptionCallback
assert_equals(ex.name, 'QuotaExceededError');
test.done();
});
});
}, 'Appending data repeatedly should fill up the buffer and throw a QuotaExceededError when buffer is full.');
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...