Description[Downloads] Clear suggested filename on cross origin redirect.
The @download attribute can be used to specify a suggested filename for
a download. However, this suggested name should only be used if the
referring document is in the same origin as the downloaded resource.
This CL clears the suggested name if the final download URL after
redirects is in a different origin than the original download URL.
The companion Blink CL at https://codereview.chromium.org/197033005/
ensures that the suggested name for a download initiated via a @download
attribute would only be non-empty if the referring document is allowed
to set a suggested name for the original download URL.
BUG=346744
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266441
Patch Set 1 #
Total comments: 12
Patch Set 2 : Simplify use of EmbeddedTestServer #
Total comments: 2
Messages
Total messages: 13 (0 generated)
|