Commit c07a7947 authored by Anand K. Mistry's avatar Anand K. Mistry Committed by Commit Bot

Implement a dummy onGetActionsRequested listener.

The FSP implementation doesn't handle the difference between "not
implemented" and "error". Zip archiver doesn't provide any custom
actions, but FSP interprets this as an error and that bubbles back to
the Files App.

BUG=679634

Change-Id: I5b52c64b0d01bd700ea4509d046630396afa756c
Reviewed-on: https://chromium-review.googlesource.com/c/1341435Reviewed-by: default avatarSam McNally <sammc@chromium.org>
Commit-Queue: Anand Mistry <amistry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609171}
parent 2b99deca
...@@ -30,6 +30,12 @@ function setupZipArchiver() { ...@@ -30,6 +30,12 @@ function setupZipArchiver() {
chrome.fileSystemProvider.onReadFileRequested.addListener( chrome.fileSystemProvider.onReadFileRequested.addListener(
unpacker.app.onReadFileRequested); unpacker.app.onReadFileRequested);
// Provide a dummy onGetActionsRequested implementation to make FSP happy.
chrome.fileSystemProvider.onGetActionsRequested.addListener(
(options, success, error) => {
success([]);
});
// Clean all temporary files inside the work directory, just in case the // Clean all temporary files inside the work directory, just in case the
// extension aborted previously without removing ones. // extension aborted previously without removing ones.
unpacker.app.cleanWorkDirectory(); unpacker.app.cleanWorkDirectory();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment