* SUMMARY When LayoutTests/http/tests/security/cross-origin-css.html (added for Bug 29820) is run in Safari 4.0.4 on Mac OS X, it produces different results than when the test is run under DumpRenderTree. The Safari results look more correct, which indicates this is probably a DumpRenderTree bug. * STEPS TO REPRODUCE 1. Start the web server: $ ./WebKitTools/Scripts/run-webkit-httpd -a 2. Launch Safari. 3. Open test case: <http://localhost:8000/security/cross-origin-css.html> * RESULTS The second line of the test results in DumpRenderTree does NOT have a yellow background, while it DOES in Safari: -LINK + IMPORT Cross-origin, HTML, invalid: rgba(0, 0, 0, 0) +LINK + IMPORT Cross-origin, HTML, invalid: rgb(255, 255, 0) Based on the test files, it seems like it should have a yellow background, so the DumpRenderTree results appear to be incorrect. * REGRESSION Unknown. The test landed in r52784. * NOTES See Bug 29820.
Isn't this just a reflection that the CSS security fix isn't present in Safari 4.0.4 ? The test is checking that the "Cross-origin, HTML, invalid" combination does not load CSS.
(In reply to comment #1) > Isn't this just a reflection that the CSS security fix isn't present in Safari > 4.0.4 ? > The test is checking that the "Cross-origin, HTML, invalid" combination does > not load CSS. Nope, this reproduces with WebKit nightly build r55027. The original fix was in r52784.
(In reply to comment #2) > (In reply to comment #1) > > Isn't this just a reflection that the CSS security fix isn't present in Safari > > 4.0.4 ? > > The test is checking that the "Cross-origin, HTML, invalid" combination does > > not load CSS. > > Nope, this reproduces with WebKit nightly build r55027. The original fix was > in r52784. Also reproduces with WebKit nightly build r52951 (the first nightly build available after r52784).
I was using the wrong URL to run the test locally with run-webkit-httpd. I should have used <http://127.0.0.1:8000/> instead of <http://localhost:8000/>.
(In reply to comment #4) > I was using the wrong URL to run the test locally with run-webkit-httpd. I > should have used <http://127.0.0.1:8000/> instead of <http://localhost:8000/>. Closing as RESOLVED/INVALID.
Created attachment 54860 [details] Expected test results This is what the expected test results should show.