+24
−0
+2
−0
+6
−0
+2
−0
Loading
Automatic update from web-platform-tests Turn Critical-CH restarts into internal redirects This fixes a number of issues, including crashes. Unfortunately, this will not fix issues with ACCEPT_CH, which is having a very similar crasher problem. The behaviour is now as follows: if a Critical-CH restart is detected, the Accept-CH preferences are stored as they would be and the ThrottlingURLLoader changes the response to a synthetic redirect. This is registered and takes the response through the normal navigation redirect codepath (which adds the client hints that were stored) and allows extensions, service workers, and other interceptors the chance to handle the new request. The one-redirect limit was also removed and now counts towards the network/navigation redirect limits. Coincidentally, this also runs through the devtools, which makes both the initial and new requests both visible in the Network tab as an internal redirect and regular request. The crashing code is very much NOT fixed by this (see crbug.com/1217589) but rather is side-stepped (instead of restarting the request outright, there's now an internal redirect, which also makes more sense semantically) Also (somewhat coincidentally) fixed an issue with the client hint/service worker WPTs, in that the tests were not waiting for the load event to finish (see the changes in //third_party/blink/web_tests/external/wpt/client-hints/service-workers/resources/util.js) Bug: 1217589, 1228536, 1176879 Change-Id: I8401c67818cdd6cf16a75422b2ba48fe429dc961 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2983659 Commit-Queue: Aaron Tagliaboschi <aarontag@chromium.org> Reviewed-by:Takashi Toyoshima <toyoshim@chromium.org> Reviewed-by:
Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/master@{#904079} -- wpt-commits: 74d5d9577ee54ead71cc051a1467b9eedc341cfb wpt-pr: 29646