<?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>269156</bug_id>
          
          <creation_ts>2024-02-10 21:19:18 -0800</creation_ts>
          <short_desc>Enforce conformant whitespace requirements for CSP policies</short_desc>
          <delta_ts>2024-02-12 00:43:20 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>255990</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="sideshowbarker">mike</reporter>
          <assigned_to name="sideshowbarker">mike</assigned_to>
          <cc>annevk</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2012552</commentid>
    <comment_count>0</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2024-02-10 21:19:18 -0800</bug_when>
    <thetext>Per https://w3c.github.io/webappsec-csp/#grammardef-optional-ascii-whitespace, the CSP spec throughout restricts allowed/required whitespace characters to the set of code points defined as “ASCII whitespace” in https://infra.spec.whatwg.org/#ascii-whitespace — which excludes the U+000B LINE TABULATION code point that some other specs additionally allow as whitespace.

However, the current WebKit code currently allows the U+000B LINE TABULATION code point as whitespace in places where the CSP spec requirements disallow it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2012553</commentid>
    <comment_count>1</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2024-02-10 21:20:26 -0800</bug_when>
    <thetext>I noticed this while working on the https://github.com/WebKit/WebKit/pull/24217 patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2012555</commentid>
    <comment_count>2</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2024-02-10 21:31:02 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/24222</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2012655</commentid>
    <comment_count>3</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2024-02-12 00:43:20 -0800</bug_when>
    <thetext>

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

    </bug>

</bugzilla>