Bug 218951 - File picker will let you pick another video file when you form only accepts video/mp4
Summary: File picker will let you pick another video file when you form only accepts v...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari 14
Hardware: Mac Other
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-11-14 20:22 PST by Alec Wilson
Modified: 2020-11-20 09:26 PST (History)
7 users (show)

See Also:


Attachments
screen recording showing a demo on a local webserver (14.48 MB, video/quicktime)
2020-11-14 20:22 PST, Alec Wilson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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