Bug 110737 - XSSAuditor tests shouldn't depend on IFrames's load order.
Summary: XSSAuditor tests shouldn't depend on IFrames's load order.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mike West
URL:
Keywords:
Depends on:
Blocks: 110733
  Show dependency treegraph
 
Reported: 2013-02-25 01:49 PST by Mike West
Modified: 2013-02-25 06:55 PST (History)
7 users (show)

See Also:


Attachments
Patch (35.16 KB, patch)
2013-02-25 02:13 PST, Mike West
no flags Details | Formatted Diff | Diff
Patch (45.17 KB, patch)
2013-02-25 04:04 PST, Mike West
no flags Details | Formatted Diff | Diff
Patch (48.90 KB, patch)
2013-02-25 05:52 PST, Mike West
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike West 2013-02-25 01:49:54 PST
Tests like http://trac.webkit.org/browser/trunk/LayoutTests/http/tests/security/xssAuditor/script-tag-with-source-unterminated.html currently pass only because the error messages aren't detailed enough to distinguish between the order in which the IFrames load. Before increasing the error message detail, we'll need to break these out into tests that always load in the same order.

Two options:

1. Serialize loading via something like `onload="loadNextFrame()"`.
2. Break multiple-IFrame tests into multiple single-IFrame tests.

The latter seems faster.
Comment 1 Mike West 2013-02-25 02:13:23 PST
Created attachment 190021 [details]
Patch
Comment 2 Mike West 2013-02-25 02:15:03 PST
Would you mind taking a quick look, Jochen?
Comment 3 jochen 2013-02-25 02:34:50 PST
Comment on attachment 190021 [details]
Patch

ok

did you check whether any test expectations need to be updated?
Comment 4 Mike West 2013-02-25 02:39:25 PST
(In reply to comment #3)
> (From update of attachment 190021 [details])
> ok
> 
> did you check whether any test expectations need to be updated?

I nuked the expected files and regenerated with --reset-result. These results should be accurate, but I'll wait for the bots to go through before landing. :)
Comment 5 WebKit Review Bot 2013-02-25 03:01:18 PST
Comment on attachment 190021 [details]
Patch

Attachment 190021 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/16740950

New failing tests:
fast/js/dfg-inline-resolve.html
Comment 6 Mike West 2013-02-25 04:04:57 PST
Created attachment 190028 [details]
Patch
Comment 7 Mike West 2013-02-25 04:05:31 PST
Comment on attachment 190028 [details]
Patch

Clearing r?, carrying over Jochen's r+. Let's see what the bots think.
Comment 8 Build Bot 2013-02-25 05:51:01 PST
Comment on attachment 190028 [details]
Patch

Attachment 190028 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://queues.webkit.org/results/16760037

New failing tests:
http/tests/security/xssAuditor/property-escape-quote-01.html
http/tests/security/xssAuditor/script-tag-with-trailing-comment2.html
http/tests/security/xssAuditor/property-escape-quote-02.html
http/tests/security/xssAuditor/property-escape-quote-03.html
http/tests/security/xssAuditor/open-iframe-src-02.html
http/tests/security/xssAuditor/script-tag-with-trailing-comment5.html
http/tests/security/xssAuditor/open-iframe-src-01.html
Comment 9 Mike West 2013-02-25 05:52:07 PST
(In reply to comment #8)
> (From update of attachment 190028 [details])
> Attachment 190028 [details] did not pass mac-wk2-ews (mac-wk2):
> Output: http://queues.webkit.org/results/16760037
> 
> New failing tests:
> http/tests/security/xssAuditor/property-escape-quote-01.html
> http/tests/security/xssAuditor/script-tag-with-trailing-comment2.html
> http/tests/security/xssAuditor/property-escape-quote-02.html
> http/tests/security/xssAuditor/property-escape-quote-03.html
> http/tests/security/xssAuditor/open-iframe-src-02.html
> http/tests/security/xssAuditor/script-tag-with-trailing-comment5.html
> http/tests/security/xssAuditor/open-iframe-src-01.html

Ah. Right. I should actually generate expectations for new tests. *cough* :)
Comment 10 Mike West 2013-02-25 05:52:33 PST
Created attachment 190045 [details]
Patch
Comment 11 Mike West 2013-02-25 05:52:53 PST
Comment on attachment 190045 [details]
Patch

CQing.
Comment 12 WebKit Review Bot 2013-02-25 06:55:47 PST
Comment on attachment 190045 [details]
Patch

Clearing flags on attachment: 190045

Committed r143920: <http://trac.webkit.org/changeset/143920>
Comment 13 WebKit Review Bot 2013-02-25 06:55:52 PST
All reviewed patches have been landed.  Closing bug.