Bug 254616
Summary: | REGRESSION (iOS 16.4): Adding images for upload is 2.8x slower than before | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jesper Bendtsen <jesperbendtsen83> |
Component: | WebKit Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED MOVED | ||
Severity: | Critical | CC: | ahmad.saleem792, akeerthi, georaldc, sabouhallawa, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 16 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 16 | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=251328 |
Jesper Bendtsen
Add images for upload in iOS 16.4 is extremely slow, see below videos, same code and wifi.
It could also be nice with an loader indicator after pressing add, people will think they haven't pressed the button...
Add 60 images for upload (iOS 16.4) - 2.01 minutes!
https://vimeo.com/812571819/ed0ebb7d34
Add 60 images for upload (iOS 15.7) - 44 seconds!
https://vimeo.com/812571862/c0acf78912
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Jesper Bendtsen
works fine in iOS 16.3.1
Radar WebKit Bug Importer
<rdar://problem/107368578>
Alexey Proskuryakov
Thank you for the report!
Could you please provide a test case? This may depend on the exact accept attribute value, as one theory that comes to mind is format conversion taking the time.
Also, what are the camera settings in both cases, are the photos JPEG or HEIC?
Jesper Bendtsen
I can give you access to the test system, actually you already have access with safaribrowsertest@hotmail.com from another bug report? I can guide you guys to the upload area, if its okay?
File input accept attribute: image/* (But is not working, another bug 254604)
Both iPad's: Most compatible and JPEG
Aditya Keerthi
Hello again! Yeah, we should have access to the test system from https://bugs.webkit.org/show_bug.cgi?id=249967.
Ahmad Saleem
Relevant? https://bugs.webkit.org/show_bug.cgi?id=251328
Jesper Bendtsen
Any update on this? Please help my users are complaining...
Jesper Bendtsen
The same thing happens in iOS 16.5
In iOS 16.3.1 adding 60 images in a file input takes about one second, in iOS 16.4 and above the same thing takes over a minute!?
Public test site, scroll to "Using file inputs", add about 60 images:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#using_file_inputs
georaldc
(In reply to Jesper Bendtsen from comment #8)
> The same thing happens in iOS 16.5
>
> In iOS 16.3.1 adding 60 images in a file input takes about one second, in
> iOS 16.4 and above the same thing takes over a minute!?
>
> Public test site, scroll to "Using file inputs", add about 60 images:
> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/
> file#using_file_inputs
Been noticing this same behavior as well where there is a delay after selecting multiple images that seems to grow the more images you select.
Just curious, but have you also been experiencing this issue I brought up here?
https://bugs.webkit.org/show_bug.cgi?id=256711
Ever since 16.4.1, our users have been randomly encountering this issue now. Just happened to see your bug post as I was searching for other closely related issues (that dealt with browser uploads on IOS 16.4 and newer)
Aditya Keerthi
(In reply to Jesper Bendtsen from comment #7)
> Any update on this? Please help my users are complaining...
Apologies for the late response. This is something we are looking into.
The issue is fallout from our adoption of a new system photo picker in iOS 16.4. However, we have identified ways that we can improve the performance in WebKit.
Jesper Bendtsen
Still extremely slow in iOS 17, any update?
Aditya Keerthi
After additional investigation, it appears that this issue is underneath WebKit. I don't have any other updates at this time.
Alexey Proskuryakov
Let's mark this as RESOLVED/MOVED for clarity. Please file any additional reports via https://feedbackassistant.apple.com for Apple engineers looking into this to have the most visibility into your feedback.
Jesper Bendtsen
Are there any plans to make this better? We have a web app where our users often take 60-70 photos for upload. It takes approx. one minute before they return to the web app after selecting images from the iOS image gallery and uploading can begin. Users think iOS has crashed, no loader is shown. Can't you go back to the old photo API before iOS 16.4, back then it was fast, there was no delay after selecting 60-70 and the upload started immediately in iOS Safari.
Why is it so super slow now in iOS Safari, please explain? Doesn't feel production ready...