import changes from `dev' branch of rmottola/Arctic-Fox:

- Bug 967494 - "Preference Composition/Spelling/Language is ignored, and changing spellcheck language in one composition window affects all open and new compositions" [r=ehsan] Bug 1157421 - Fix typo "suggesteed". r=ehsan (d48b61df9)
- namespaces (c9e3edbf1)
- Bug 1167409 - 3/4 - Change ScriptLoadRequeest::mLoading to mProgress. r=jandem (34377ba15)
- Bug 1104732 - having deferred scripts shouldn't cause async scripts to delay domcontentloaded, r?smaug (f6b3a5ad9)
- Bug 1138395 - Optimize nsDocument::mExpandoAndGeneration.expando out from the cc graphs when possible, r=mccr8 (d944130ab)
- Bug 874838 - Make CreateElem return Element. r=khuey (ac65a35cf)
- Bug 1194619 - fix comment r=dholbert (017a488a2)
- Bug 1137494 - Change the type given to type validation check. r=jgilbert (05885cc7c)
- Bug 1106138 - Remove the early unpremultiply in WebGLContext::SurfaceFromElementResultToImageSurface, and let the texel conversion code handle it instead. r=jgilbert (b8010b16b)
- Bug 1185815 - Hoist generation increment. r=jgilbert (f6a276b5e)
- Bug 1175931 - TexImageFromVideoElement uses GL_HALF_FLOAT if it does not support GL_HALF_FLOAT_OES which would be the case on non-ANGLE systems. Using GL_HALF_FLOAT_OES on a non OES system would result in an error when using TexImage2D. r=jgilbert (d692281f1)
- Bug 1184534 - Add support for target size retrieval to GLX backend. r=jgilbert (0e5ba1f8e)
- bug 1174705 - add GLContext::GetDefaultFramebuffer. r=jgilbert (99c0e70aa)
- Bug 1179935, introduce complex viewport projections to Compositor, remove PrepareViewport; r=mstange (1753d65d3)
- Bug 1184534 - Fetch viewport size from context in CompositorOGL, discard if changed during composition. r=nical (4f57bc4ed)
- Bug 1187440 - Implement GLX shared surfaces on the OpenGL compositor. r=jgilbert,nical (4844e96ce)
- Bug 1033375 - Nudge simple linear gradients with hard stops to half-pixel gradient. r=nical (331ddd4fa)
- Bug 1185636 - Remove hard stop workaround for Cairo due to regressions. r=jrmuizel (ccefe7abc)
- Bug 1177807 - Mark cairo surface dirty in ReleaseBits. r=jrmuizel (ae9d508b9)
- Bug 1170390 - Detect 16bpp cairo xlib surface format. r=jrmuizel (25857ae30)
- Bug 1019063 - Check for ::CreateDCW failing when printing. r=dvander (7f54ba8d2)
- Bug 1170390 - Add gfxASurface::GetSurfaceFormat for retrieving precise surface format where necessary. r=jrmuizel (f70d11b29)
- Bug 1155626 - Don't assume that Factory::GetD2D1Device returns a non-null device and add some gfxCriticalLog. r=Bas (0c896a368)
- Bug 1182209 - Additional info with some critical errors. r=mchang CLOSED TREE (f4841baec)
This commit is contained in:
2021-12-28 09:45:42 +08:00
parent 23896f6de1
commit e8f234939e
67 changed files with 856 additions and 312 deletions
@@ -0,0 +1,14 @@
var timer = null;
function handleRequest(request, response)
{
response.processAsync();
response.setHeader("Content-Type", "application/javascript", false);
response.write("state = 'mid-async';\n");
timer = Components.classes["@mozilla.org/timer;1"].createInstance(Components.interfaces.nsITimer);
timer.initWithCallback(function() {
response.write("state = 'async loaded';\n");
response.finish();
}, 5 * 1000 /* milliseconds */, timer.TYPE_ONE_SHOT);
}
@@ -0,0 +1,3 @@
is(document.readyState, "interactive", "readyState should be interactive during defer.");
state = "defer";
@@ -128,6 +128,11 @@ support-files =
[test_bug715739.html]
[test_bug716579.html]
[test_bug717180.html]
[test_bug1104732.html]
support-files =
file_defer_bug1104732.js
file_async_bug1104732.sjs
[test_compatmode.html]
[test_html5_tree_construction.html]
skip-if = toolkit == 'android' #TIMED_OUT
@@ -0,0 +1,50 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1104732
-->
<head>
<meta charset="utf-8">
<title>Test for Bug 1104732</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
/** Test for Bug 1104732 **/
// Expected order of the values of the "state" variable:
// Test starting
// defer
// DOMContentLoaded
// async loaded
// load
var state = "Test starting";
SimpleTest.waitForExplicitFinish();
is(document.readyState, "loading", "Document should have been loading.");
document.addEventListener("DOMContentLoaded", function () {
is(document.readyState, "interactive", "readyState should be interactive during DOMContentLoaded.");
is(state, "defer", "Bad state upon DOMContentLoaded");
state = "DOMContentLoaded";
});
window.addEventListener("load", function () {
is(document.readyState, "complete", "readyState should be complete during load.");
is(state, "async loaded", "Bad state upon load")
state = "load";
SimpleTest.finish();
});
</script>
<script defer src="file_defer_bug1104732.js"></script>
<script async src="file_async_bug1104732.sjs"></script>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1104732">Mozilla Bug 1104732</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
</pre>
</body>
</html>