This CL adds functionality that correctly handles network error of
Subresource Web Bundles.
The problem is: when Web Bundle fetching fails due to a network error,
Subresource fetch doesn't fail forever.
One such case (subresource-loading-cors-error test) was
timing out previously but passes successfully with this change.
This CL also adds 2 WPT tests:
Test #1 is a scenario with a different network error than the CORS
one, but with the same issue of subresource fetching timing out
without the change. It passes successfully after the change.
Test #2 is a scenario with a Web bundle not found error, which is
not directly influenced by the code added in this CL, but it expands
the test coverage which was found to be lacking the error cases before.
Reviewed-by: Tsuyoshi Horo <firstname.lastname@example.org>
Reviewed-by: Hayato Ito <email@example.com>
Reviewed-by: Kinuko Yasuda <firstname.lastname@example.org>
Commit-Queue: Miras Myrzakerey <email@example.com>
1 file changed