Chromium Code Reviews
DescriptionCORS-RFC1918: Teach appcache responses to passthrough their socket address.
In order to do the right thing for external requests and preflights, we
need to teach AppCacheURLRequestJob to passthrough the IP address of the
cached request. This is especially important for main resources, as those
control whether or not preflights are necessary.
This patch overrides the default 'GetSocketAddress' method to pass through
the socket address stored along with the AppCacheEntry object, and ensures
that the socket address is propegated for synchronous requests. Layout
tests verify that this results in a main resource whose
'document.addressSpace' is accurate.
BUG=591672
Committed: https://crrev.com/b035ad2b4894c007b5580c8da151dca8ad550975
Cr-Commit-Position: refs/heads/master@{#379805}
Patch Set 1 #Patch Set 2 : Test. #Messages
Total messages: 9 (4 generated)
|