| Index: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/referer-iframe.html
 | 
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/referer-iframe.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/referer-iframe.html
 | 
| similarity index 54%
 | 
| copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/referer-iframe.html
 | 
| copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/referer-iframe.html
 | 
| index 071e084007a1dfc28c06827c59778cbd323995a3..491262e9dc13fd4b7da5e5cca8392ee522a46ece 100644
 | 
| --- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/referer-iframe.html
 | 
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/referer-iframe.html
 | 
| @@ -1,15 +1,16 @@
 | 
| -<script src="../../resources/get-host-info.js"></script>
 | 
| +<script src="../resources/get-host-info.sub.js"></script>
 | 
| +<script src="test-helpers.sub.js"></script>
 | 
|  <script>
 | 
|  function check_referer(url, expected_referer) {
 | 
|    return fetch(url)
 | 
|      .then(function(res) { return res.json(); })
 | 
|      .then(function(headers) {
 | 
| -        if (headers['Referer'] === expected_referer) {
 | 
| +        if (headers['referer'] === expected_referer) {
 | 
|            return Promise.resolve();
 | 
|          } else {
 | 
|            return Promise.reject('Referer for ' + url + ' must be ' +
 | 
|                                  expected_referer + ' but got ' +
 | 
| -                                headers['Referer']);
 | 
| +                                headers['referer']);
 | 
|          }
 | 
|        });
 | 
|  }
 | 
| @@ -17,20 +18,20 @@ function check_referer(url, expected_referer) {
 | 
|  window.addEventListener('message', function(evt) {
 | 
|      var host_info = get_host_info();
 | 
|      var port = evt.ports[0];
 | 
| -    check_referer('request-headers.php?ignore=true',
 | 
| -                  host_info['HTTP_ORIGIN'] +
 | 
| -                  '/serviceworker/resources/referer-iframe.html')
 | 
| +    check_referer('request-headers.py?ignore=true',
 | 
| +                  host_info['HTTPS_ORIGIN'] +
 | 
| +                  base_path() + 'referer-iframe.html')
 | 
|        .then(function() {
 | 
|            return check_referer(
 | 
| -              'request-headers.php',
 | 
| -              host_info['HTTP_ORIGIN'] +
 | 
| -              '/serviceworker/resources/referer-iframe.html');
 | 
| +              'request-headers.py',
 | 
| +              host_info['HTTPS_ORIGIN'] +
 | 
| +              base_path() + 'referer-iframe.html');
 | 
|          })
 | 
|        .then(function() {
 | 
|            return check_referer(
 | 
| -              'request-headers.php?url=request-headers.php',
 | 
| -              host_info['HTTP_ORIGIN'] +
 | 
| -              '/serviceworker/resources/fetch-rewrite-worker.js');
 | 
| +              'request-headers.py?url=request-headers.py',
 | 
| +              host_info['HTTPS_ORIGIN'] +
 | 
| +              base_path() + 'fetch-rewrite-worker.js');
 | 
|          })
 | 
|        .then(function() { port.postMessage({results: 'finish'}); })
 | 
|        .catch(function(e) { port.postMessage({results: 'failure:' + e}); });
 | 
| 
 |