Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIX-DL] Fix blob: URL handling and clarify console messages
This CL fixes a bug wherein the final URL in a redirect chain was considered as part of the middle of the redirect chain. This resulted in two seemingly-unrelated bugs: * The console message always said that blocked downloads were "redirected through" an insecure URL, even if there were no redirects/the redirects were all secure. * file:// and blob:// URLs were considered insecure, even when you got there through secure means, and even though we had tried to special-case them. The only non-test change in this CL is to exclude the last URL in the redirect chain when considering redirects, since the last URL in the chain is always the final URL. This CL also adds a test for the blob case, and fixes the test harness so that the redirect chain behavior is consistent with Chrome (it previously was not including the final URL in the chain). (cherry picked from commit 426ce50) Bug: 1197573 Change-Id: I1e624a31b47fd3f90aec5bb3032f74d19d2b47e4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2818720 Commit-Queue: Joe DeBlasio <jdeblasio@chromium.org> Reviewed-by: Mustafa Emre Acer <meacer@chromium.org> Reviewed-by: Xing Liu <xingliu@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#871128} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2824021 Auto-Submit: Joe DeBlasio <jdeblasio@chromium.org> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Commit-Queue: Xing Liu <xingliu@chromium.org> Cr-Commit-Position: refs/branch-heads/4472@{#48} Cr-Branched-From: 3d60439-refs/heads/master@{#870763}
- Loading branch information