Bug 218951

Summary: File picker will let you pick another video file when you form only accepts video/mp4
Product: WebKit Reporter: Alec Wilson <jude>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, eric.carlson, jer.noble, joepeck, jude, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Mac   
OS: Other   
Attachments:
Description Flags
screen recording showing a demo on a local webserver none

Description Alec Wilson 2020-11-14 20:22:31 PST
Created attachment 414151 [details]
screen recording showing a demo on a local webserver

When a form specifies a specific video type, let's go with video/mp4 for this example, the macOS file picker will let you pick another type like video/mov, if you press the little play button on the file. 

I have submitted a bug to the macOS team through feedback but there is a possible workaround in webkit.

When you select a file, webkit could do another check to see if the file is allowed with the specified content type.
Comment 1 Alec Wilson 2020-11-14 20:24:30 PST
the screen recording shows Brave Browser but happens in Safari and any Chromium-based browser
Comment 2 Alexey Proskuryakov 2020-11-16 09:37:32 PST
Could you please post the feedback ID for reference?
Comment 3 Alec Wilson 2020-11-19 15:57:17 PST
@Alexey Proskuryakov the feedback id is FB8898118
Comment 4 Alexey Proskuryakov 2020-11-20 09:25:46 PST
Thank you! For Apple employees:

rdar://71407635