Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/service-worker-mixed-response.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/service-worker-mixed-response.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/service-worker-mixed-response.html |
| index bd0e03361453c10e65747e98828dd6ff99804d55..c0772b4fa5b2d265f8c5417864fbcc7c5bfbd01d 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/service-worker-mixed-response.html |
| +++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/service-worker-mixed-response.html |
| @@ -68,6 +68,8 @@ function create_success_audio_test(frame, url) { |
| // URL of it. And when it receives the succeeding response, it checks the origin |
| // of the new response. If the origin is not same as the origin of the first |
| // response, the response must be treated as an error. |
| + |
| +var request_num = 1; |
|
DaleCurtis
2016/05/10 00:16:08
Why are these changes needed? Presumably attackers
hubbe
2016/05/10 22:33:23
This file contains multiple tests, each assuming a
|
| function audio_test(frame, original, first_byte, second_byte, expect_success) { |
| var url; |
| var HOST_INFO = get_host_info(); |
| @@ -79,6 +81,8 @@ function audio_test(frame, original, first_byte, second_byte, expect_success) { |
| url = HOST_INFO['HTTP_REMOTE_ORIGIN'] + AUDIO_PATH; |
| } |
| url += '&SW_FIRST=' + first_byte + '&SW_SECOND=' + second_byte; |
| + url += '&prevent_cache=' + request_num; |
| + request_num += 1; |
| if (expect_success) { |
| return create_success_audio_test(frame, url); |
| } else { |