Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

Any copyright is dedicated to the Public Domain.
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<pre id="test">
<script type="application/javascript">
// Resource timing is prefed off by default, so we had to use this workaround
var subwindow = null;
SpecialPowers.pushPrefEnv({"set": [
["dom.enable_resource_timing", true],
["privacy.reduceTimerPrecision", false]]}, start);
function start() {
subwindow ="resource_timing_cross_origin.html");
function finishTests() {
SpecialPowers.pushPrefEnv({"clear":[["dom.enable_resource_timing"]]}, SimpleTest.finish);
<a target="_blank"
title="Cross origin resource timing">
Bug #936814 - Implement the "timing allow check algorithm" for cross-origin Resource Timing