author Nicholas Nethercote <>
Mon, 05 Oct 2015 16:59:32 -0700
changeset 301715 3897da20e42dec0bcf73987af1eaac4f8ce950b8
parent 277835 27ebc65071e5c42dd1b5184678540ee13bdfb21b
child 372225 4a8703321e8a8bf3c8769dec1007e72dad3b01dd
permissions -rw-r--r--
Bug 1211324 (part 3) - Remove GraphicsFilter::FILTER_FAST and replace it with FILTER_BEST. r=mattwoodrow. This may sound like an odd change but it's what the current code effectively already does due to the way ToFilter() and ThebesFilter() are defined.

This checks if the origin-when-crossorigin policy works.

  <meta charset="utf-8">
  <title>Test policies for Bug 1163743</title>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <script type="application/javascript" src="referrerHelper.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>

<script type="application/javascript;version=1.7">

var advance = function() {; };

 * testing legacy support for origin-when-crossorigin (1163743)
var tests = (function() {
  var iframe = document.getElementById("testframe");
  const sjs = "/tests/dom/base/test/bug704320.sjs?action=generate-policy-test";

  // origin when crossorigin (trimming whitespace)
  yield resetCounter();
  yield iframe.src = sjs + "&policy=" + escape(' origin-when-crossorigin');
  yield checkIndividualResults("origin-when-cross-origin", ["origin", "full"]);

  // complete.  Be sure to yield so we don't call this twice.
  yield SimpleTest.finish();


<body onload=";">
  <iframe id="testframe"></iframe>