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-endofstream-invaliderror.html
<!DOCTYPE html>
<!-- Copyright © 2016 Chromium authors and World Wide Web Consortium, (Massachusetts Institute of Technology, ERCIM, Keio University, Beihang). -->
<html>
<head>
<title>Invalid MediaSource.endOfStream() parameter test cases.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="mediasource-util.js"></script>
</head>
<body>
<div id="log"></div>
<script>
mediasource_test(function(test, mediaElement, mediaSource)
{
mediaElement.addEventListener('error', test.unreached_func("Unexpected event 'error'"));
assert_equals(mediaSource.readyState, 'open');
assert_throws(new TypeError(),
function() { mediaSource.endOfStream('garbage'); },
'endOfStream(\'garbage\') throws TypeError');
assert_equals(mediaSource.readyState, 'open');
test.done();
}, 'Test MediaSource.endOfStream() with invalid non-empty error string.');
mediasource_test(function(test, mediaElement, mediaSource)
{
mediaElement.addEventListener('error', test.unreached_func("Unexpected event 'error'"));
assert_equals(mediaSource.readyState, 'open');
assert_throws(new TypeError(),
function() { mediaSource.endOfStream(''); },
'endOfStream(\'\') throws TypeError');
assert_equals(mediaSource.readyState, 'open');
test.done();
}, 'Test MediaSource.endOfStream() with invalid empty error string.');
mediasource_test(function(test, mediaElement, mediaSource)
{
mediaElement.addEventListener('error', test.unreached_func("Unexpected event 'error'"));
assert_equals(mediaSource.readyState, 'open');
assert_throws(new TypeError(),
function() { mediaSource.endOfStream(null); },
'endOfStream(null) throws TypeError');
assert_equals(mediaSource.readyState, 'open');
test.done();
}, 'Test MediaSource.endOfStream() with invalid null error parameter.');
</script>
</body>
</html>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...