| Summary: | Web Inspector: Failed to load resource: Frame load interrupted when download canvas to image on iOS 16.2 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | kiwenlau <kiwenlau> | ||||
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED CONFIGURATION CHANGED | ||||||
| Severity: | Normal | CC: | ap, inspector-bugzilla-changes | ||||
| Priority: | P2 | ||||||
| Version: | Safari 16 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
Please correct me if I misunderstood the report, but sounds like this is already fixed in iOS 16.3 and newer. We cannot retroactively fix this in 16.2. |
Created attachment 465977 [details] test code I tried to download canvas to image: const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.fillStyle = 'green'; ctx.fillRect(10, 10, 150, 100); canvas.toBlob(function (blob) { const link = document.createElement('a'); link.download = 'example.png'; link.href = URL.createObjectURL(blob); link.click(); URL.revokeObjectURL(link.href); }, 'image/png'); Everything is ok for following device and safari version: - macOS Ventura 13.0.1 Safari 16.1 - iPhone 14 Plus iOS 16.3 - iPhone 14(Simulator) iOS 16.4 However, on iPhone 13(Simulator)iOS 16.2, the image can be downloaded, but the web inspector gets following error: Failed to load resource: Frame load interrupted