| Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-redirect.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-redirect.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-redirect.html
|
| index 1d8e7e7f2dfb5cdafdb677cf1540bde44cd54652..de3affe221f9f9aa8f9c1ef7ab80f2682392628c 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-redirect.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-redirect.html
|
| @@ -33,10 +33,14 @@ function iframe_test(url, timeout_enabled) {
|
| frame.onload = function() {
|
| if (timeout_enabled)
|
| clearTimeout(timer);
|
| - if (frame.contentDocument.body.textContent == 'Hello world\n')
|
| - resolve();
|
| - else
|
| - reject(new Error('content mismatch'));
|
| + try {
|
| + if (frame.contentDocument.body.textContent == 'Hello world\n')
|
| + resolve();
|
| + else
|
| + reject(new Error('content mismatch'));
|
| + } catch (e) {
|
| + reject(new Error(e));
|
| + }
|
| frame.remove();
|
| };
|
| document.body.appendChild(frame);
|
|
|