<?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>189551</bug_id>
          
          <creation_ts>2018-09-12 09:32:18 -0700</creation_ts>
          <short_desc>XSS auditor breaks srcdoc example in live-dom-viewer</short_desc>
          <delta_ts>2021-09-21 14:31:39 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>230499</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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>dbates</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1458980</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-09-12 09:32:18 -0700</bug_when>
    <thetext>http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0Abody%20%7B%20background%3A%20aqua%20%7D%0A%3C%2Fstyle%3E%0A%3Ciframe%20srcdoc%3D%22%3Cdiv%20style%3Dbackground%3Ablue%3Bheight%3A30px%3E%3C%2Fdiv%3E%22%3E

There should be a blue div inside the iframe, but we don&apos;t seem to parse the srcdoc correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1459189</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2018-09-12 18:05:29 -0700</bug_when>
    <thetext>I&apos;m pretty sure this isn&apos;t a parsing issue and is more likely the XSS Auditor kicking in. The same example renders fine in the Tryit Editor -&gt; https://www.w3schools.com/code/tryit.asp?filename=FV8MYTW7FYTI.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1459197</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-09-12 18:21:51 -0700</bug_when>
    <thetext>Ah yes, inspector says:

The XSS Auditor refused to execute a script in &apos;http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0Abody%20%7B%20background%3A%20aqua%20%7D%0A%3C%2Fstyle%3E%0A%3Ciframe%20srcdoc%3D%22%3Cdiv%20style%3Dbackground%3Ablue%3Bheight%3A30px%3E%3C%2Fdiv%3E%22%3E&apos; because its source code was found within the request. The auditor was enabled because the server did not send an &apos;X-XSS-Protection&apos; header.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1795776</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2021-09-21 14:31:39 -0700</bug_when>
    <thetext>This is fixed when the XSS Auditor is removed (Bug 230499).

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

    </bug>

</bugzilla>