Bug 142482

Summary: [GTK] Layout Test http/tests/security/mixedContent/insecure-audio-video-in-main-frame.html is failing
Product: WebKit Reporter: Marcos Chavarría Teijeiro (irc: chavaone) <chavarria1991>
Component: Tools / TestsAssignee: Ms2ger (he/him; ⌚ UTC+1/+2) <Ms2ger>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, cgarcia, chavarria1991, commit-queue, mcatanzaro, Ms2ger, oliver, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Marcos Chavarría Teijeiro (irc: chavaone) 2015-03-09 04:26:25 PDT
The http/tests/security/mixedContent/insecure-audio-video-in-main-frame.html layout test is failing on GTK+ since r181134 (https://trac.webkit.org/changeset/r181134).

The diff is the following:

--- /home/slave/webkitgtk/gtk-linux-64-release-tests/build/layout-test-results/http/tests/security/mixedContent/insecure-audio-video-in-main-frame-expected.txt
+++ /home/slave/webkitgtk/gtk-linux-64-release-tests/build/layout-test-results/http/tests/security/mixedContent/insecure-audio-video-in-main-frame-actual.txt
@@ -1,5 +1,5 @@
-CONSOLE MESSAGE: The page at https://127.0.0.1:8443/security/mixedContent/resources/frame-with-insecure-audio-video.html displayed insecure content from http://127.0.0.1:8080/resources/test.mp4.
+CONSOLE MESSAGE: [blocked] The page at https://127.0.0.1:8443/security/mixedContent/resources/frame-with-insecure-audio-video.html was not allowed to display insecure content from http://127.0.0.1:8080/resources/test.mp4.
 
-CONSOLE MESSAGE: The page at https://127.0.0.1:8443/security/mixedContent/resources/frame-with-insecure-audio-video.html displayed insecure content from http://127.0.0.1:8080/resources/test.mp4.
+CONSOLE MESSAGE: [blocked] The page at https://127.0.0.1:8443/security/mixedContent/resources/frame-with-insecure-audio-video.html was not allowed to display insecure content from http://127.0.0.1:8080/resources/test.mp4.
 
 This test opens a window that loads insecure HTML5 audio and video. We should trigger a mixed content callback because the main frame in the window is HTTPS but is displaying insecure content.
Comment 1 Ms2ger (he/him; ⌚ UTC+1/+2) 2017-08-28 03:10:58 PDT
Created attachment 319172 [details]
Patch
Comment 2 WebKit Commit Bot 2017-08-28 04:02:59 PDT
Comment on attachment 319172 [details]
Patch

Clearing flags on attachment: 319172

Committed r221237: <http://trac.webkit.org/changeset/221237>
Comment 3 WebKit Commit Bot 2017-08-28 04:03:00 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2017-08-28 04:04:04 PDT
<rdar://problem/34108248>
Comment 5 Michael Catanzaro 2017-08-28 04:20:37 PDT
Good find, thanks!

In this case, the global expectation is outdated because the console message changed, but the test result never got updated because the test has been failing on macOS this whole time. So we should update the global expectation instead of adding a platform-specific one. I'll handle it.