| Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
|
| index 0bcdcc3e348b37640b9f5dc12b62dff057348410..595ddb0012a1f27a58a656b973021ef57c383621 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
|
| @@ -51,6 +51,9 @@ function with_iframe(url, options) {
|
| return new Promise(function(resolve) {
|
| var frame = document.createElement('iframe');
|
| frame.src = url;
|
| + // Make sure the iframe stays in the viewport even if the test creates
|
| + // many of them. Otherwise some iframes may end up being throttled.
|
| + frame.style.position = 'absolute';
|
| frame.onload = function() { resolve(frame); };
|
| document.body.appendChild(frame);
|
| if (typeof options === 'undefined')
|
|
|