Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

allow delegate to handle file and color chooser #238

Merged

Conversation

deepak1556
Copy link
Contributor

Fixes electron/electron#6156

A side note,

  • should WebDialogHelper::EnumerateDirectory required to be enumerate over DIRECTORIES, INCLUDE_DOT_DOT when its not recursive ?
  • The current implementation causes render to terminate with RVH_CAN_ACCESS_FILES_OF_PAGE_STATE because of INCLUDE_DOT_DOT in the result.
  • Can we make the enumeration async using net::DirectoryLister or is the current implementation fine ?

@zcbenz
Copy link
Contributor

zcbenz commented Jul 25, 2016

👍

@zcbenz zcbenz merged commit fa17fc6 into electron-archive:master Jul 25, 2016
@zcbenz
Copy link
Contributor

zcbenz commented Jul 25, 2016

should WebDialogHelper::EnumerateDirectory required to be enumerate over DIRECTORIES, INCLUDE_DOT_DOT when its not recursive ?

The current implementation causes render to terminate with RVH_CAN_ACCESS_FILES_OF_PAGE_STATE because of INCLUDE_DOT_DOT in the result.

We should probably follow what Chromium does.

Can we make the enumeration async using net::DirectoryLister or is the current implementation fine ?

It would be much better.

So far no one actually complained about our dialog implementation, we can maybe wait unless someone complains.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants