<?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>285666</bug_id>
          
          <creation_ts>2025-01-09 03:10:40 -0800</creation_ts>
          <short_desc>FF (0x0c) stripped from X-Frame-Options even though only HTTP whitespace should be stripped</short_desc>
          <delta_ts>2026-01-26 12:23:24 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>Safari 18</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>macOS 15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>272745</dup_id>
          
          <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>jannis.rautenstrauch</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>annevk</cc>
    
    <cc>beidson</cc>
    
    <cc>charliew</cc>
    
    <cc>karlcow</cc>
    
    <cc>m_finkel</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wilander</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2086034</commentid>
    <comment_count>0</comment_count>
    <who name="">jannis.rautenstrauch</who>
    <bug_when>2025-01-09 03:10:40 -0800</bug_when>
    <thetext>Form feeds (0x0c) are not allowed as spaces in X-Frame-Options that only allows HTTP whitespace(https://fetch.spec.whatwg.org/#http-whitespace). However, Blink strips these characters and for example blocks a resource with `X-Frame-Options: DENY\x0c`.

Example URL: http://sub.headers.websec.saarland/_hp/tests/framing.sub.html?resp_type=parsing&amp;browser_id=1&amp;label=XFO&amp;first_id=3591&amp;last_id=3591&amp;scheme=http&amp;t_resp_id=3591&amp;t_element_relation=iframe_direct&amp;t_resp_origin=https://headers.webappsec.eu

Related bug (VT):https://bugs.webkit.org/show_bug.cgi?id=272745, note that FF seem to be allowed in CSP which uses ascii-whitespace(https://w3c.github.io/webappsec-csp/#grammardef-optional-ascii-whitespace) which contains \x0c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2087713</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-01-16 03:11:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/143037737&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2175213</commentid>
    <comment_count>2</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2026-01-26 12:23:24 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 272745 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>