toolkit/components/url-classifier/tests/mochitest/fastblock.html
author Liang-Heng Chen <xeonchen@gmail.com>
Fri, 12 Oct 2018 13:39:09 +0000
changeset 499329 defaf4df79d35b6377589bfa8be43420880eafd1
parent 497160 0c1057bba22441122eb5f160752af63f1ba517a5
permissions -rw-r--r--
Bug 1495110 - make slow-iframe as a separated file r=mayhemer The slowIframe added in bug 1488974 shares the same target HTML page with fastIframe, and the resource will be canceled by ChannelUnifier and only loaded once. Sometimes, when slowIframe is loaded faster than fastIframe, the resource in fastIframe will be canceled, that's the root cause of the intermittent. Differential Revision: https://phabricator.services.mozilla.com/D8423

<!DOCTYPE html>
<html>
<head>
  <title></title>
</head>
<body>
  <!-- Tracking iframe contains some trackers -->
  <iframe id="fastIFrame" data-touched="not sure" src="http://tracking.example.org/chrome/toolkit/components/url-classifier/tests/mochitest/fastblock_iframe.html" onload="this.dataset.touched='yes';" onerror="this.dataset.touched='no';"></iframe>

  <!-- A slow tracking iframe containing some trackers -->
  <iframe id="slowIFrame" data-touched="not sure" src="http://tracking.example.org/chrome/toolkit/components/url-classifier/tests/mochitest/fastblock_slow_iframe.html" onload="this.dataset.touched='yes';"></iframe>

  <!-- A fast tracker that redirects to become a slow tracker -->
  <script id="redirectScript"src="http://example.com/chrome/toolkit/components/url-classifier/tests/mochitest/redirect_tracker.sjs" onload="this.dataset.touched='yes';" onerror="this.dataset.touched='no';"></script>

  <!-- Tracking URL -->
  <script id="goodScript" data-touched="not sure" src="http://tracking.example.com/tests/toolkit/components/url-classifier/tests/mochitest/good.js" onload="this.dataset.touched='yes';" onerror="this.dataset.touched='no';"></script>

  <!-- Tracking Annotation -->
  <script id="fastScript" data-touched="not sure" src="http://tracking.example.org/tests/toolkit/components/url-classifier/tests/mochitest/evil.js" onload="this.dataset.touched='yes';" onerror="this.dataset.touched='no';"></script>

  <!-- Tracking Annotation -->
  <script id="slowScript" data-touched="not sure" src="http://tracking.example.org/tests/toolkit/components/url-classifier/tests/mochitest/trackingRequest.js" onload="this.dataset.touched='yes';" onerror="this.dataset.touched='no';"></script>
</body>
</html>