<?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>192667</bug_id>
          
          <creation_ts>2018-12-13 09:02:58 -0800</creation_ts>
          <short_desc>Implement duplicate attribute flag on script elements (needed for CSP)</short_desc>
          <delta_ts>2022-07-01 16:12:40 -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>DOM</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <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="Andy Paicu">andypaicu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>dbates</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1487603</commentid>
    <comment_count>0</comment_count>
    <who name="Andy Paicu">andypaicu</who>
    <bug_when>2018-12-13 09:02:58 -0800</bug_when>
    <thetext>After this PR https://github.com/whatwg/html/pull/4223, the &lt;script&gt; element will need to record in a flag whether a duplicate attribute was found during parsing. This flag is then used in this CSP check: https://w3c.github.io/webappsec-csp/#is-element-nonceable (after this PR lands: https://github.com/w3c/webappsec-csp/pull/377)

WPT test: https://github.com/web-platform-tests/wpt/blob/master/content-security-policy/script-src/nonce-enforce-blocked.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880249</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-01 16:12:40 -0700</bug_when>
    <thetext>We now correctly handle this test case.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>