Bug 217947

Summary: [GTK] REGRESSION(r268604): Several http/tests/security/mixedContent/ tests are flaky
Product: WebKit Reporter: Diego Pino <dpino>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Diego Pino 2020-10-20 02:40:12 PDT
The following tests became flaky in WebKitGTK after r268604:

  http/tests/security/mixedContent/insecure-basic-auth-image.https.html [ Failure Pass ]
  http/tests/security/mixedContent/insecure-image-redirects-to-basic-auth-secure-image.html [ Failure Pass ]
  http/tests/security/mixedContent/secure-redirect-to-insecure-redirect-to-basic-auth-secure-image.https.html [ Failure Pass ]
  http/tests/security/mixedContent/secure-redirect-to-secure-redirect-to-basic-auth-insecure-image.https.html [ Failure Pass ]
  http/tests/security/mixedContent/secure-redirect-to-secure-redirect-to-basic-auth-secure-image.https.html [ Failure Pass ]

Actual output is similar in all tests. For instance:

Diff: https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/r268714%20(16523)/http/tests/security/mixedContent/insecure-basic-auth-image.https-diff.txt

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/http/tests/security/mixedContent/insecure-basic-auth-image.https-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/http/tests/security/mixedContent/insecure-basic-auth-image.https-actual.txt
@@ -1,13 +1,14 @@
 CONSOLE MESSAGE: The page at https://127.0.0.1:8443/security/mixedContent/insecure-basic-auth-image.https.html was allowed to display insecure content from http://localhost:8000/security/mixedContent/resources/subresource2/protected-image.php.

-CONSOLE MESSAGE: Blocked http://localhost:8000/security/mixedContent/resources/subresource2/protected-image.php from asking for credentials because it is a cross-origin request.
+localhost:8000 - didReceiveAuthenticationChallenge - ProtectionSpaceAuthenticationSchemeHTTPBasic - Responding with testUser:testPassword
 Tests that we do not ask for credentials when loading an insecure image that requires basic authentication.

 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


-PASS did not load image.
+FAIL did load image.
 PASS successfullyParsed is true
+Some tests failed.

 TEST COMPLETE
Comment 1 Diego Pino 2023-06-25 18:43:40 PDT
These are passing now. The tests started passing in the interval [260692@main-260702@main].

Judging the interval the only commit that seems to me it may fixed these tests is https://commits.webkit.org/260699@main
Comment 2 Radar WebKit Bug Importer 2023-06-25 18:44:17 PDT
<rdar://problem/111302261>