ServiceWorker: Consider sites that take more than the timeout as offline capable.
When a timeout happens in ServiceWorkerEventQueue, the error status transfers to ServiceWorkerFetchDispatcher::OnFetchEventFinished(), but the callback of an offline capability checker (ServiceWorkerOfflineCapabilityChecker::OnFetchResult) can't catch the error status. This CL set a flag `is_timeout_event_` when the timeout happens and if the flag is set, call DidFail() with the error status instead of DidFinish() which is called in a successful case. Bug: 965802 Change-Id: I9b38c8332f3bfc539d16b0f101143e7af3db66f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2437081 Commit-Queue: Asami Doi <asamidoi@chromium.org> Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Cr-Commit-Position: refs/heads/master@{#823905}
Showing
Please register or sign in to comment