<?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>281003</bug_id>
          
          <creation_ts>2024-10-07 15:08:59 -0700</creation_ts>
          <short_desc>REGRESSION(284617@main): Assertion fires when rendering an HDR image is partially displayed</short_desc>
          <delta_ts>2024-10-07 18:25:56 -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>Images</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Said Abou-Hallawa">sabouhallawa</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2065970</commentid>
    <comment_count>0</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2024-10-07 15:08:59 -0700</bug_when>
    <thetext>An assertion may fire with certain window sizes when opening https://ccameron-chromium.github.io/hdr-jpeg/index.html.

After 284617@main, GraphicsContextCG::drawNativeImageInternal() has two calls to CGContextStateSaver::save(). The first one is called before clipping the context to partially display the image. The second one is called before setting the headroom of an HDR image.

If these two calls happen in the same session, the second call will fire the assertion `ASSERT(!m_saveAndRestore);` in CGContextStateSaver::save().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2065971</commentid>
    <comment_count>1</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2024-10-07 15:09:25 -0700</bug_when>
    <thetext>rdar://137402152</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2065985</commentid>
    <comment_count>2</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2024-10-07 15:31:50 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/34798</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2066063</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-10-07 18:25:54 -0700</bug_when>
    <thetext>Committed 284798@main (58072722f0cc): &lt;https://commits.webkit.org/284798@main&gt;

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

    </bug>

</bugzilla>