Do not call OnStartSlowCheck when performing a full URL check.
1. Notifier::OnStartSlowCheck(), PauseReadingBodyFromNet(), and ResumeReadingBodyFromNet() were added with the assumption that Safe Browsing checks mostly return synchronously (except a tiny percentage) so calling PauseReadingBodyFromNet() in only those few cases was a good precautionary measure. 2. The "precaution" was against overzealous AVs that may warn the user if we cache an unsafe resource; note that the resource is not used until Safe Browsing confirms it is SAFE. 3. On mobile, since connection is usually slower, we did not enable this "precaution". That's a very good indication of how good this "precaution" is :) 4. Now, with SafeBrowsingRealTimeUrlLookup enabled, a larger percentage of navigations are going to hit PauseReadingBodyFromNet(). 5. This would have been fine by itself but due to the special handling of PDFs and some other special types, as described in 1056696#c9, this completely breaks the loading of those types. 6. The "precaution" does not seem worth the breakage. See https://crbug.com/1056696#c9 and https://crbug.com/1056696#c12 for full details. R=xinghuilu Bug: 1054978,1056696 Change-Id: I0f6f48831733996e0ab91a0c0c1ab240a1923c21 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2079338 Commit-Queue: Varun Khaneja <vakh@chromium.org> Auto-Submit: Varun Khaneja <vakh@chromium.org> Reviewed-by:Nathan Parker <nparker@chromium.org> Reviewed-by:
Xinghui Lu <xinghuilu@chromium.org> Cr-Commit-Position: refs/heads/master@{#745264}
Showing
Please register or sign in to comment