Index: content/child/web_url_request_util.cc |
diff --git a/content/child/web_url_request_util.cc b/content/child/web_url_request_util.cc |
index 777e9b7df85dc42580b60d2314c1a1d78a14788a..0abc0254e3d97f07bcc3dd154d0e5674b55355e5 100644 |
--- a/content/child/web_url_request_util.cc |
+++ b/content/child/web_url_request_util.cc |
@@ -487,6 +487,7 @@ blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url, |
error.reason = reason; |
error.unreachableURL = unreachable_url; |
error.staleCopyInCache = stale_copy_in_cache; |
+ error.isCacheMiss = reason == net::ERR_CACHE_MISS; |
kouhei (in TOK)
2016/10/20 10:43:07
Should this be moved to if branches below?
Or woul
Shao-Chuan Lee
2016/10/21 04:35:02
It's required to set the field here since WebURLEr
kouhei (in TOK)
2016/10/21 05:08:42
Blink should not know about net::ERR_CACHE_MISS, b
Shao-Chuan Lee
2016/10/21 05:22:17
This method should be in third_party/WebKit/public
Shao-Chuan Lee
2016/10/21 06:52:03
Now having utility methods under blink::NetworkUti
|
if (reason == net::ERR_ABORTED) { |
error.isCancellation = true; |
} else if (reason == net::ERR_TEMPORARILY_THROTTLED) { |