commit | e7edea9fa26e75fca1475c1707e36714f92c98ca | [log] [tgz] |
---|---|---|
author | Alex Danilo <adanilo@chromium.org> | Thu Mar 21 05:45:57 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Mar 21 05:45:57 2019 |
tree | 492670508787599b1fe41e360d3272c8f35e5739 | |
parent | 1a108c770d196639e80af06572564225234e8021 [diff] |
Stop calls to mediGalleries for document providers The chrome.mediaGalleries.getMetadata() API fails to call the passed in callback function if the blob passed in to it is a reference to a DocumentsProvider file. This CL checks if we're trying to retrieve metadata for a volume that's a documents provider, and stops the request. CL https://chromium-review.googlesource.com/c/chromium/src/+/1518261 adds metadata requests that trigger the bug. To run, use browser_tests --gtest_filter="*metadataDocumentsProvider*" Bug: 942417 Tests: Integration test covers this case for DocumentsProvider volume. Change-Id: I2b9e317a4487d2341cc46067de3d8a3091c5287d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1527841 Commit-Queue: Alex Danilo <adanilo@chromium.org> Reviewed-by: Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#642836}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .