https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0c2089b71e8f1033fd820c9f762aac6601e731f5 authored by James Graham on 21 March 2018, 22:05:32 UTC
Fix python gitignore for directories.
Tip revision: 0c2089b
page_with_resource.sub.html
<!DOCTYPE html>
<html>
  <head>
    <title>Clear-Site-Data</title>
    <script src="test_utils.sub.js"></script>
  </head>
  <body>
    <script>
      var scheme = location.search.match("scheme=([^&$]+)")[1];

      // TODO(@msramek): Move this logic to TestUtils.
      var base_url = location.origin
          .replace(/https?/, scheme)
          .replace(/:[0-9]+/, ":" + (scheme == "https" ? {{ports[https][0]}}
                                                       : {{ports[http][0]}})) +
          "/clear-site-data/support/";

      var image = new Image();
      image.onload = image.onerror = function() {
        location.href = base_url + "send_report.html";
      }

      // TODO(@msramek): Move this logic to TestUtils.
      image.src = base_url + "echo-clear-site-data.py?storage";
    </script>
  </body>
</html>
back to top