<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>269875</bug_id>
          
          <creation_ts>2024-02-21 15:28:18 -0800</creation_ts>
          <short_desc>Adds Quirk so that booking.com sends simple JPEG to WebKit on iOS</short_desc>
          <delta_ts>2024-09-19 13:46:35 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>Safari 17</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=280011</see_also>
          <bug_file_loc>https://www.booking.com/hotel/us/milpitas-40-ranch-drive.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>178758</dependson>
          <blocked>269876</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Karl Dubost">karlcow</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>rik</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2015893</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-02-21 15:28:18 -0800</bug_when>
    <thetext>Steps to reproduce:
1. On iPhone with Safari
2. Go to https://www.booking.com/hotel/us/milpitas-40-ranch-drive.html

Expected: 
See the images

Actual:
Images are not visible. 


Why This is happening:
Because JPEG 2000 has been removed from WebKit. (Bug 178758)
Booking.com for Safari on iOS sends JPEG2000 versions of images in the raw HTTP responses for each HTML requests.
This is currently not detectable on released versions of Safari of iOS.


Outreach effort has been started.
See https://github.com/webcompat/web-bugs/issues/133697


FIX:
Proposal for the Quirk to fix it.

* On iOS *only*
* On booking.com *only*
* Sends the following `Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8` for HTML HTTP requests.
* No need to modify the Accept HTTP request headers for images requests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015894</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-02-21 15:28:29 -0800</bug_when>
    <thetext>&lt;rdar://problem/123408770&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015957</commentid>
    <comment_count>2</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-02-21 19:50:38 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/24923</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2016286</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-02-22 20:13:55 -0800</bug_when>
    <thetext>Committed 275216@main (7c18c3da4148): &lt;https://commits.webkit.org/275216@main&gt;

Reviewed commits have been landed. Closing PR #24923 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>