DescriptionRevert of Make ResourceFetcher return Resources with LoadError instead of nullptrs. (patchset #8 id:160001 of https://codereview.chromium.org/2231523002/ )
Reason for revert:
Reverting since it is causing flakiness on the blink bots. Latest flake:
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Win7%20%28dbg%29/builds/7628
unexpected_failures:
http/tests/security/contentSecurityPolicy/nonces/import-enforce-blocked.php
Original issue's description:
> Make ResourceFetcher return Resources with LoadError instead of nullptrs.
>
> Before this change, when a request was immediately blocked by access checks,
> ResourceFetcher::requestResource() would return a nullptr, while returning a
> Resource instance with a LoadError set if the request was blocked only after
> following one or more redirects. This resulted in various resource types
> failing in inconsistent ways in the two cases.
>
> This CL makes this behavior consistent by making requestResource() always
> return a Resource instance with a LoadError. This allows for cleaner and more
> consistent handling of errors in ResourceClients, as wells as more flexibility
> should the client choose to distinguish the underlying causes of errors. Due
> to the infrequency of requests failing access checks during normal use, the
> performance impact should be negligible.
>
> BUG=616234
>
> Committed: https://crrev.com/fd02740210e0152c94bd4c34a1e355280421730d
> Cr-Commit-Position: refs/heads/master@{#423358}
TBR=japhet@chromium.org,alexmos@chromium.org,engedy@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=616234
Patch Set 1 #Messages
Total messages: 9 (3 generated)
|