Bug 86433

Summary: script-src-redirect.html is flaky.
Product: WebKit Reporter: Mike West <mkwst>
Component: WebCore Misc.Assignee: Mike West <mkwst>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, rakuco, tkent, webkit.review.bot, zarvai
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 77556, 86643    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Mike West 2012-05-14 21:23:43 PDT
From https://bugs.webkit.org/show_bug.cgi?id=86323:

(In reply to comment #22)
> (From update of attachment 141783 [details] [details])
> Clearing flags on attachment: 141783
> 
> Committed r117006: <http://trac.webkit.org/changeset/117006>

After this, script-src-redirect.html has been really flaky.
I wonder if we should roll it out.

---

Looks like `script-src-redirect.html` is another iframe ordering test. I'll rewrite it to use the same methodology as `source-list-parsing.html`.
Comment 1 Mike West 2012-05-15 08:06:15 PDT
Created attachment 141971 [details]
Patch
Comment 2 Mike West 2012-05-15 08:07:34 PDT
Can you take a look at this, Adam? :)
Comment 3 WebKit Review Bot 2012-05-15 12:51:01 PDT
Comment on attachment 141971 [details]
Patch

Clearing flags on attachment: 141971

Committed r117123: <http://trac.webkit.org/changeset/117123>
Comment 4 WebKit Review Bot 2012-05-15 12:51:06 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Adam Barth 2012-05-15 18:49:49 PDT
Thanks really strange.

Maybe it's some kind of strange race where we're loading about:blank but it's using the URL of the parent document for the CSP check somehow?  Another possibility is that we're using "" as the src somehow and that's getting resolve to match the URL of the parent document.
Comment 8 Zoltan Arvai 2012-05-16 02:34:37 PDT
http/tests/security/contentSecurityPolicy/script-src-redirect.html
skipped on Qt in trac.webkit.org/changeset/117243 .
Please unskip the test when it works again.
Comment 9 Mike West 2012-05-18 01:58:09 PDT
Arg. It's not a strange race. It's a stupid typo. :/

I'll have a patch for review in a few minutes.
Comment 10 Mike West 2012-05-18 02:11:25 PDT
Created attachment 142669 [details]
Patch
Comment 11 jochen 2012-05-18 02:17:56 PDT
Comment on attachment 142669 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=142669&action=review

> LayoutTests/http/tests/security/contentSecurityPolicy/resources/multiple-iframe-test.js:2
> +  layoutTestController.waitUntilDone();

4 spaces indenting

> LayoutTests/http/tests/security/contentSecurityPolicy/resources/multiple-iframe-test.js:11
> +    var baseURL = 'http://127.0.0.1:8000/security/contentSecurityPolicy/';

please either use ' or "

> LayoutTests/platform/chromium/test_expectations.txt:-3724
> -BUGWK86433 : http/tests/security/contentSecurityPolicy/script-src-redirect.html = TEXT PASS

why not unskip it for the other platforms as well?
Comment 12 Mike West 2012-05-18 06:01:24 PDT
Created attachment 142698 [details]
Patch
Comment 13 Mike West 2012-05-18 06:02:41 PDT
Thanks, Jochen. I've addressed your comments.
Comment 14 WebKit Review Bot 2012-05-18 06:46:02 PDT
Comment on attachment 142698 [details]
Patch

Clearing flags on attachment: 142698

Committed r117583: <http://trac.webkit.org/changeset/117583>
Comment 15 WebKit Review Bot 2012-05-18 06:46:23 PDT
All reviewed patches have been landed.  Closing bug.
Comment 16 Mike West 2012-05-18 08:02:07 PDT
It looks like http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=script-src-redirect.html is greening up nicely.