Backed out changeset 490375161b03 (bug 1405961) for failing mochitest dom/tests/mochitest/general/test_resource_timing.html both in normal and in headless mode. r=backout

--HG--
extra : amend_source : 193a2645db24088370bf0a7c4db28f44c1b67cd8
This commit is contained in:
Sebastian Hengst 2017-10-17 14:45:13 +02:00
parent ceb80681ee
commit 6cbbcb376d
3 changed files with 1 additions and 32 deletions

View File

@ -165,6 +165,7 @@ public:
inline DOMHighResTimeStamp TimeStampToDOMHighRes(mozilla::TimeStamp aStamp) const
{
MOZ_ASSERT(!aStamp.IsNull(), "The timestamp should not be null");
if (aStamp.IsNull()) {
return 0;
}

View File

@ -114,7 +114,6 @@ support-files = test_offsets.js
[test_paste_selection.html]
[test_performance_now.html]
[test_performance_timeline.html]
[test_performance_nav_timing_before_onload.html]
[test_picture_apng.html]
[test_picture_mutations.html]
[test_pointerPreserves3D.html]

View File

@ -1,31 +0,0 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Test for Bug 1405961 - Using PerformanceNavigationTiming before onload</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<img src="http://mochi.test:8888/tests/image/test/mochitest/damon.jpg"/>
<div id="content"> </div>
<script>
SimpleTest.waitForExplicitFinish();
SpecialPowers.pushPrefEnv({"set": [["dom.enable_performance_navigation_timing", true]]}, start);
function start() {
var p = performance.getEntriesByName("document")[0];
ok(!!p, "There should be an entry for the document");
document.getElementById("content").textContent += JSON.stringify(p);
SimpleTest.finish();
}
</script>
</body>
</html>