Bug 261492

Summary: Consider auto-scaling images in iframes
Product: WebKit Reporter: Šime Vidas <sime.vidas>
Component: FramesAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, sabouhallawa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Unspecified   
OS: Unspecified   
URL: https://jsbin.com/bomiyur/edit?html,output

Description Šime Vidas 2023-09-12 21:22:21 PDT
Steps to reproduce: 

1. open https://output.jsbin.com/bomiyur/quiet

What is the expected result?

The page is an image gallery that is implemented with and iframe and thumbnail links that target this iframe. 

In Firefox, when an image file is directly loaded into an iframe, the browser auto-scales the image to fit it into the iframe viewport.

What happens instead?

Chrome and Safari don’t do this. If they did, this no-JavaScript image gallery would become a real option.
Comment 1 Radar WebKit Bug Importer 2023-09-19 21:23:16 PDT
<rdar://problem/115763864>
Comment 2 Ahmad Saleem 2024-05-21 06:23:38 PDT
Attached Test case in URL field.

Chrome Canary 127 and Safari 17.5 have same behavior while Firefox Nightly 128 does scale and make it looks like image gallery view.