Use origin to check if the request to ImageLoader is from eligible clients.
When ImageLoader get requests to process image files, it checks message sender's id to disallow requests from unknown clients. However, sender's id is currently not trustworthy (issue 982361). We should use sender's origin instead as a short-term fix. Bug: 10321587 Test: Manual test on Files/Gallery to show thumbnails from ImageLoader. Change-Id: Idb61850795828a63b37aa43b66d4875ad7abbfc4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1989728 Commit-Queue: Naoki Fukino <fukino@chromium.org> Reviewed-by:Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#733918}
Showing
Please register or sign in to comment