Bug 78093

Summary: [Qt] New http/tests/security/ introduced r107046 fail
Product: WebKit Reporter: Ádám Kallai <kadam>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, haraken, ossy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Ádám Kallai 2012-02-08 02:39:15 PST
This test is failing on qt and gtk bots.

--- /ramdisk/qt-linux-release/build/layout-test-results/http/tests/security/cross-frame-access-put-expected.txt 
+++ /ramdisk/qt-linux-release/build/layout-test-results/http/tests/security/cross-frame-access-put-actual.txt 
@@ -1,3 +1,5 @@
+CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html from frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html. Domains, protocols and ports must match.
+
 CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html. Domains, protocols and ports must match.
 
 CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html. Domains, protocols and ports must match.
@@ -473,7 +475,9 @@
 ALERT: PASS: window.document should be '[object HTMLDocument]' and is.
 ALERT: PASS: window.embeds should be 'undefined' and is.
 ALERT: PASS: window.event should be 'undefined' and is.
-ALERT: PASS: window.frameElement should be '[object HTMLIFrameElement]' and is.
+CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html from frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html. Domains, protocols and ports must match.
+
+ALERT: PASS: window.frameElement should be 'undefined' and is.
 ALERT: PASS: window.frames should be '[object DOMWindow]' and is.
 ALERT: PASS: window.history should be '[object History]' and is.
 ALERT: PASS: window.images should be 'undefined' and is.
Comment 1 Kentaro Hara 2012-02-08 02:45:56 PST
(In reply to comment #0)
> This test is failing on qt and gtk bots.
> 
> --- /ramdisk/qt-linux-release/build/layout-test-results/http/tests/security/cross-frame-access-put-expected.txt 
> +++ /ramdisk/qt-linux-release/build/layout-test-results/http/tests/security/cross-frame-access-put-actual.txt 
> @@ -1,3 +1,5 @@
> +CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html from frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html. Domains, protocols and ports must match.
> +
>  CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html. Domains, protocols and ports must match.
> 
>  CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html from frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html. Domains, protocols and ports must match.
> @@ -473,7 +475,9 @@
>  ALERT: PASS: window.document should be '[object HTMLDocument]' and is.
>  ALERT: PASS: window.embeds should be 'undefined' and is.
>  ALERT: PASS: window.event should be 'undefined' and is.
> -ALERT: PASS: window.frameElement should be '[object HTMLIFrameElement]' and is.
> +CONSOLE MESSAGE: Unsafe JavaScript attempt to access frame with URL http://127.0.0.1:8000/security/cross-frame-access-put.html from frame with URL http://localhost:8000/security/resources/cross-frame-iframe-for-put-test.html. Domains, protocols and ports must match.
> +
> +ALERT: PASS: window.frameElement should be 'undefined' and is.
>  ALERT: PASS: window.frames should be '[object DOMWindow]' and is.
>  ALERT: PASS: window.history should be '[object History]' and is.
>  ALERT: PASS: window.images should be 'undefined' and is.

It appears that the new result is correct. (We rebaselined the test in AppleWebKit and Chromium.) I'll mark the test as SKIP in qt and gtk, so would you rebaseline it?
Comment 2 Kentaro Hara 2012-02-08 03:17:34 PST
> It appears that the new result is correct. (We rebaselined the test in AppleWebKit and Chromium.) I'll mark the test as SKIP in qt and gtk, so would you rebaseline it?

Added the test to qt/Skipped and gtk/Skipped: http://trac.webkit.org/changeset/107063
Comment 3 Csaba Osztrogonác 2012-02-08 08:33:58 PST
Fix landed in http://trac.webkit.org/changeset/107075