Bug 254616 - REGRESSION (iOS 16.4): Adding images for upload is 2.8x slower than before
Summary: REGRESSION (iOS 16.4): Adding images for upload is 2.8x slower than before
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Critical
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-28 13:50 PDT by Jesper Bendtsen
Modified: 2024-01-17 11:29 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesper Bendtsen 2023-03-28 13:50:03 PDT
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
Comment 1 Jesper Bendtsen 2023-03-29 02:33:39 PDT
works fine in iOS 16.3.1
Comment 2 Radar WebKit Bug Importer 2023-03-29 08:26:23 PDT
<rdar://problem/107368578>
Comment 3 Alexey Proskuryakov 2023-03-29 08:29:14 PDT
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?
Comment 4 Jesper Bendtsen 2023-03-29 09:13:46 PDT
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
Comment 5 Aditya Keerthi 2023-03-29 09:56:34 PDT
Hello again! Yeah, we should have access to the test system from https://bugs.webkit.org/show_bug.cgi?id=249967.
Comment 6 Ahmad Saleem 2023-03-29 15:47:42 PDT
Relevant? https://bugs.webkit.org/show_bug.cgi?id=251328
Comment 7 Jesper Bendtsen 2023-04-25 22:03:44 PDT
Any update on this? Please help my users are complaining...
Comment 8 Jesper Bendtsen 2023-05-22 05:45:16 PDT
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
Comment 9 georaldc 2023-05-23 14:08:03 PDT
(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)
Comment 10 Aditya Keerthi 2023-05-24 11:21:06 PDT
(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.
Comment 11 Jesper Bendtsen 2023-09-19 11:57:27 PDT
Still extremely slow in iOS 17, any update?
Comment 12 Aditya Keerthi 2023-09-20 10:22:17 PDT
After additional investigation, it appears that this issue is underneath WebKit. I don't have any other updates at this time.
Comment 13 Alexey Proskuryakov 2023-09-25 12:07:12 PDT
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.
Comment 14 Jesper Bendtsen 2024-01-17 11:29:09 PST
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...