Bug 1690831 [wpt PR 27483] - Define blink::mojom::KeepAliveHandleFactory, a=testonly
commit0d2c2d0d5ce8cb5ad5c724be3be62f194e0d98ef
authorYutaka Hirano <yhirano@chromium.org>
Tue, 9 Feb 2021 04:37:03 +0000 (9 04:37 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 9 Feb 2021 11:34:42 +0000 (9 11:34 +0000)
tree6ecacce80885c1c09c9a98abc29b0c3855c96e4b
parent2e342e544dbc1e077572e67fb4bf421b8ab9fb8f
Bug 1690831 [wpt PR 27483] - Define blink::mojom::KeepAliveHandleFactory, a=testonly

Automatic update from web-platform-tests
Define blink::mojom::KeepAliveHandleFactory

We've used blink::mojom::LocalFrameHost to issue KeepAliveHandles for
requests with keepalive set. That doesn't work for keepalive requests
initiated in unload handlers in nested frames, because the
RenderFrameHost object is destructed without waiting for the end of
unload handlers.

This CL defines a separate interface, KeepAliveHandleFactory. The
renderer side gets a mojo::Remote for KeepAliveHandleFactory long before
the frame is destructed, in order to avoid the above problem.

Bug: 1161196
Change-Id: I92ef0073548d8755e42bc69f957e518a73d9e52a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2675428
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#850990}

--

wpt-commits: 8b7b27c5024e94bbde3cf980f60df94e5b10887c
wpt-pr: 27483
testing/web-platform/tests/fetch/api/basic/keepalive.html
testing/web-platform/tests/fetch/api/resources/keepalive-window.html [new file with mode: 0644]