WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
110737
XSSAuditor tests shouldn't depend on IFrames's load order.
https://bugs.webkit.org/show_bug.cgi?id=110737
Summary
XSSAuditor tests shouldn't depend on IFrames's load order.
Mike West
Reported
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.
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
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Mike West
Comment 1
2013-02-25 02:13:23 PST
Created
attachment 190021
[details]
Patch
Mike West
Comment 2
2013-02-25 02:15:03 PST
Would you mind taking a quick look, Jochen?
jochen
Comment 3
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?
Mike West
Comment 4
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. :)
WebKit Review Bot
Comment 5
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
Mike West
Comment 6
2013-02-25 04:04:57 PST
Created
attachment 190028
[details]
Patch
Mike West
Comment 7
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.
Build Bot
Comment 8
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
Mike West
Comment 9
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* :)
Mike West
Comment 10
2013-02-25 05:52:33 PST
Created
attachment 190045
[details]
Patch
Mike West
Comment 11
2013-02-25 05:52:53 PST
Comment on
attachment 190045
[details]
Patch CQing.
WebKit Review Bot
Comment 12
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
>
WebKit Review Bot
Comment 13
2013-02-25 06:55:52 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug