Don't clear DNS cache when closing last incognito Window.
The DNS cache is now a per-NetworkContext cache, instead of a global, so clearing the cache when closing incognito is no longer useful - destroying the incognito profile will destroy its own DNS cache. This CL also updates the network::mojom::HostResolver API to allow stale DNS lookups. I'm adding a lot of tests for DNS cache isolation, and this option is needed to avoid tests racily failing due to DNS cache eviction, particularly on slower bots. This option was already supported by the HostResolver; it just wasn't being exposed outside the network service. Bug: 1042354 Change-Id: I8cd4332f6d28b5cc783b256550f720807cfb9c83 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2023507Reviewed-by:Eric Orth <ericorth@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Matt Menke <mmenke@chromium.org> Cr-Commit-Position: refs/heads/master@{#736009}
Showing
Please register or sign in to comment