Bug 292041
| Summary: | [Quirk] Allow users to upload HEIC images on zillow.com | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Karl Dubost <karlcow> |
| Component: | New Bugs | Assignee: | Karl Dubost <karlcow> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | https://zillow.com/ | ||
| Bug Depends on: | 213347 | ||
| Bug Blocks: | |||
Karl Dubost
This bug is to add a Quirk for the zillow domain so that users do not have to switch context to use the app to upload HEIC images.
Context:
When users of the zillow websites want to upload an HEIC images, they get a message saying:
> HEIC format is not supported on web. Please download the Zillow Rental Manager App to upload, or convert the files to .png, .jpg, .jpeg, or .gif to upload.
WebKit added the possibility to automatically convert the HEIC image format to one that the site accepts.
https://github.com/WebKit/WebKit/commit/1fd3fe3f407ad3cbc9fde83b03a9a0641e6d3e58
The current input on the zillow website is
<input
accept="image/*"
multiple=""
type="file"
tabindex="-1"
style="display: none;">
To benefit from WebKit capability to auto-convert the file to the format of website choice, it is necessary to specify in the accept attribute, the accepted format, for example:
accept="image/jpeg, image/png, image/gif"
Notes:
1. the first mime-type in the list will force the conversion for HEIC images to the first format on the list. The order of mime types on accept matters.
2. It will have no effect if someone is trying to load a format already supported. So a user trying to upload a PNG will leave it as PNG.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Karl Dubost
<rdar://79872092>
Karl Dubost
Pull request: https://github.com/WebKit/WebKit/pull/44741
EWS
Committed 294726@main (ac5ea97ba273): <https://commits.webkit.org/294726@main>
Reviewed commits have been landed. Closing PR #44741 and removing active labels.