<?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>39560</bug_id>
          
          <creation_ts>2010-05-22 23:00:50 -0700</creation_ts>
          <short_desc>REGRESSION: xssAuditor tests failing in Chromium</short_desc>
          <delta_ts>2010-05-23 00:49:20 -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>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>XSSAuditor</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Julie Parent">jparent</reporter>
          <assigned_to name="Julie Parent">jparent</assigned_to>
          <cc>abarth</cc>
    
    <cc>dbates</cc>
    
    <cc>eric</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>229402</commentid>
    <comment_count>0</comment_count>
    <who name="Julie Parent">jparent</who>
    <bug_when>2010-05-22 23:00:50 -0700</bug_when>
    <thetext>A bunch of xssAuditor tests are failing in Chromium (all platforms) after http://trac.webkit.org/changeset/60014/.

Failing tests:
http/tests/security/xssAuditor/anchor-url-dom-write-location.html,http/tests/security/xssAuditor/dom-write-URL.html,http/tests/security/xssAuditor/dom-write-location.html,http/tests/security/xssAuditor/full-block-get-from-iframe.html,http/tests/security/xssAuditor/full-block-iframe-no-inherit.php,http/tests/security/xssAuditor/full-block-post-from-iframe.html,http/tests/security/xssAuditor/get-from-iframe.html,http/tests/security/xssAuditor/javascript-link-safe.html,http/tests/security/xssAuditor/link-opens-new-window.html,http/tests/security/xssAuditor/malformed-xss-protection-header.html,http/tests/security/xssAuditor/post-from-iframe.html,http/tests/security/xssAuditor/script-tag-addslashes-backslash.html,http/tests/security/xssAuditor/script-tag-addslashes-double-quote.html,http/tests/security/xssAuditor/script-tag-addslashes-null-char.html,http/tests/security/xssAuditor/script-tag-addslashes-single-quote.html,http/tests/security/xssAuditor/script-tag-control-char.html,http/tests/security/xssAuditor/script-tag-convoluted.html,http/tests/security/xssAuditor/script-tag-entities.html,http/tests/security/xssAuditor/script-tag-null-char.html,http/tests/security/xssAuditor/script-tag-open-redirect.html,http/tests/security/xssAuditor/script-tag-post-control-char.html,http/tests/security/xssAuditor/script-tag-post-null-char.html,http/tests/security/xssAuditor/script-tag-post.html,http/tests/security/xssAuditor/script-tag-redirect.html,http/tests/security/xssAuditor/script-tag.html,http/tests/security/xssAuditor/xss-protection-parsing-01.html,http/tests/security/xssAuditor/full-block-script-tag.html

They all fail with ALERT: /XSS/.

I think the issue is just a bad if statement in trunk/WebCore/bindings/v8/ScriptController.cpp, patch upcoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229404</commentid>
    <comment_count>1</comment_count>
      <attachid>56809</attachid>
    <who name="Julie Parent">jparent</who>
    <bug_when>2010-05-22 23:07:16 -0700</bug_when>
    <thetext>Created attachment 56809
Patch - Just making the v8 if statement match jsc one.

Running this change with Chromium makes the failing tests pass, but granted, I don&apos;t know anything about this code, so please make sure this makes sense!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229406</commentid>
    <comment_count>2</comment_count>
      <attachid>56809</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-05-22 23:10:20 -0700</bug_when>
    <thetext>Comment on attachment 56809
Patch - Just making the v8 if statement match jsc one.

LGTM.  I must have missed that in the review, thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229408</commentid>
    <comment_count>3</comment_count>
    <who name="Julie Parent">jparent</who>
    <bug_when>2010-05-22 23:46:30 -0700</bug_when>
    <thetext>Committed in http://trac.webkit.org/changeset/60028.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229417</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2010-05-23 00:22:19 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/60028 might have broken SnowLeopard Intel Release (Tests)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229420</commentid>
    <comment_count>5</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2010-05-23 00:49:20 -0700</bug_when>
    <thetext>I take responsibility.  I first made shouldAllowXSS a boolean then switched to an enum for clarity and missed changing the V8 code.

Thanks Julie Parent and Adam Barth for following up.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>56809</attachid>
            <date>2010-05-22 23:07:16 -0700</date>
            <delta_ts>2010-05-22 23:10:20 -0700</delta_ts>
            <desc>Patch - Just making the v8 if statement match jsc one.</desc>
            <filename>xss.txt</filename>
            <type>text/plain</type>
            <size>1312</size>
            <attacher name="Julie Parent">jparent</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA2MDAyNykKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTUgQEAKKzIwMTAtMDUtMjIgIEp1bGllIFBhcmVudCAgPGpwYXJlbnRAY2hyb21p
dW0ub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyE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Gl0b3ItPmNhbkV2YWx1YXRlKHNvdXJjZUNvZGUuc291cmNlKCkpKSB7CisgICAgaWYgKHNob3Vs
ZEFsbG93WFNTID09IERvTm90QWxsb3dYU1MgJiYgIW1fWFNTQXVkaXRvci0+Y2FuRXZhbHVhdGUo
c291cmNlQ29kZS5zb3VyY2UoKSkpIHsKICAgICAgICAgLy8gVGhpcyBzY3JpcHQgaXMgbm90IHNh
ZmUgdG8gYmUgZXZhbHVhdGVkLgogICAgICAgICByZXR1cm4gU2NyaXB0VmFsdWUoKTsKICAgICB9
Cg==
</data>
<flag name="review"
          id="41295"
          type_id="1"
          status="+"
          setter="abarth"
    />
    <flag name="commit-queue"
          id="41296"
          type_id="3"
          status="+"
          setter="abarth"
    />
          </attachment>
      

    </bug>

</bugzilla>