iOS supports three actions for media-accepting file inputs: 1. Choose Photo or Video 2. Take Photo or Video 3. Choose File macCatalyst currently only supports (3) – we should add support for (1) and (2).
Created attachment 437298 [details] Patch
rdar://49961589
Created attachment 437304 [details] Patch
Comment on attachment 437304 [details] Patch It seems slightly odd to me that we would make macCatalyst WebKit and macOS WebKit do different things when you click a file input, but I don't know if that means "macOS WebKit should get an image picker" or "macCatalyst WebKit should just go straight to NSOpenPanel". Regardless, that should be an explicit decision instead of a random ifdef about missing API, so I guess this is a change in a good /direction/.
Created attachment 437306 [details] Patch for landing
(In reply to Tim Horton from comment #4) > Comment on attachment 437304 [details] > Patch > > It seems slightly odd to me that we would make macCatalyst WebKit and macOS > WebKit do different things when you click a file input, but I don't know if > that means "macOS WebKit should get an image picker" or "macCatalyst WebKit > should just go straight to NSOpenPanel". Regardless, that should be an > explicit decision instead of a random ifdef about missing API, so I guess > this is a change in a good /direction/. Thanks for the review! I will discuss with more Catalyst folks prior to landing.