forked from mirrors/gecko-dev
The changes try to ensure we haven't really started load process of the new page, just that there is ongoing active request. history.back() will then only affect to the fragment navigation. Differential Revision: https://phabricator.services.mozilla.com/D50220 --HG-- rename : docshell/test/navigation/file_fragment_handling_during_load_frame2.html => docshell/test/navigation/file_fragment_handling_during_load_frame2.sjs extra : moz-landing-system : lando
19 lines
No EOL
452 B
JavaScript
19 lines
No EOL
452 B
JavaScript
/* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */
|
|
/* vim: set sts=2 sw=2 et tw=80 ft=javascript: */
|
|
"use strict";
|
|
|
|
function handleRequest(request, response) {
|
|
response.setHeader("Content-Type", "text/html", false);
|
|
response.setHeader("Cache-Control", "no-cache", false);
|
|
// Wait a bit.
|
|
var s = Date.now();
|
|
while (Date.now() - s < 1000);
|
|
|
|
response.write(`<!DOCTYPE HTML>
|
|
<html>
|
|
<body>
|
|
bar
|
|
</body>
|
|
</html>
|
|
`);
|
|
} |