DevTools: Report cancellation separately for SelectFile events
The second argument to new SelectFileDialog() is actually for the cancelled case, not the error case. We were treating this as an error. Now we report cancellation explicitly, and the frontend can handle it as appropriate. We still use kPermissionDenied for other cases where permission actually was denied. Frontend change: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2089898/ Bug: chromium:787728 Change-Id: I3cb32ad04a366760b771b4ccbc45367a8e4c4bc0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2089837Reviewed-by:Yang Guo <yangguo@chromium.org> Commit-Queue: Peter Marshall <petermarshall@chromium.org> Cr-Commit-Position: refs/heads/master@{#747636}
Showing
Please register or sign in to comment