author Chris H-C <chutten@mozilla.com>
Fri, 12 Aug 2016 14:51:48 -0400
changeset 314448 c97a5b2b086accd52fb5dd0b27eb6d5127fb6fc8
parent 308786 43ebf330ad942617aa8526294493a3dd25c0fc8d
permissions -rw-r--r--
bug 1218576 - Aggregate child categorical histograms in the parent process. r=gfritzsche Rewrite the categorical histogram accumulation code to use the common path. This way it gets remote accumulation for cheap. MozReview-Commit-ID: 3q6gdSvBix


  <script type="text/javascript">
    function redirect(aURL)
      // We create a listener for this event in browser-test.js which will
      // get picked up when specifying --flavor=chrome or --flavor=a11y
      var event = new CustomEvent("contentEvent", {
        bubbles: true,
        detail: {
          "data": aURL + location.search,
          "type": "loadURI"

    function redirectToHarness()

    function onLoad() {
      // Wait for MozAfterPaint, since the listener in browser-test.js is not
      // added until then.
      window.addEventListener("MozAfterPaint", function testOnMozAfterPaint() {
        window.removeEventListener("MozAfterPaint", testOnMozAfterPaint);
        setTimeout(redirectToHarness, 0);


<body onload="onLoad();">