Bug 14944

Summary: Running http/tests/security after fast/dom/Window causes failures in cross-site scripting tests
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: sam
Priority: P2 Keywords: LayoutTestFailure
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   

Description David Kilzer (:ddkilzer) 2007-08-11 15:24:21 PDT
* SUMMARY
Running tests in http/tests/security after tests in fast/dom/Window causes failures in various cross-site scripting (xss-*) tests.  (Is some variable in DumpRenderTree not getting reset properly?)

* STEPS TO REPRODUCE
1. Run layout tests thusly:
$ ./WebKitTools/Scripts/run-webkit-tests --debug fast/dom/Window http/tests/security
2. Wait for results.

* RESULTS
Most of the xss-* tests fail because '[object Object]' gets inserted into the frame name like this:

-ALERT: PASS: window.name should be '<!--framePath //<!--frame0-->-->' and is.
+ALERT: PASS: window.name should be '<!--framePath /[object Object]/<!--frame0-->-->' and is.

* NOTES
The fast/dom/Window/window-resize.html test also fails on my PB G4 (independent of running the layout tests to reproduce this bug).  I don't think that affects this issue, though.
Comment 1 David Kilzer (:ddkilzer) 2007-09-18 08:49:22 PDT

*** This bug has been marked as a duplicate of 15220 ***