forked from mirrors/gecko-dev
There is no way this ever properly worked, as we always passed null for `aFrameState`. So it'd only work if we reframed the document element or such... Which is not amazing. For simpler test-cases, when we don't construct the scrollframe via PresShell::Initialize, but via the regular frame constructor updates (ContentAppended, etc...), those end up working because we go through lazy frame construction, which ends up in RecreateFramesForContent, which passes mTempFrameTreeState. Differential Revision: https://phabricator.services.mozilla.com/D59569 --HG-- extra : moz-landing-system : lando
16 lines
510 B
JavaScript
16 lines
510 B
JavaScript
// Make sure our timer stays alive.
|
|
let gTimer;
|
|
|
|
function handleRequest(request, response)
|
|
{
|
|
response.setHeader("Content-Type", "text/css", false);
|
|
response.setStatusLine("1.1", 200, "OK");
|
|
response.processAsync();
|
|
|
|
gTimer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
|
|
// Wait for 1s before responding; this should usually make sure this load comes in last.
|
|
gTimer.init(() => {
|
|
response.write("body { color: lime }");
|
|
response.finish();
|
|
}, 1000, Ci.nsITimer.TYPE_ONE_SHOT);
|
|
}
|