Bug 78093 - [Qt] New http/tests/security/ introduced r107046 fail
Summary: [Qt] New http/tests/security/ introduced r107046 fail
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-08 02:39 PST by Ádám Kallai
Modified: 2012-02-08 08:33 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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