Title: [176752] trunk/LayoutTests
- Revision
- 176752
- Author
- [email protected]
- Date
- 2014-12-03 13:45:34 -0800 (Wed, 03 Dec 2014)
Log Message
http/tests/misc/authentication-redirect tests use the same authentication realm
https://bugs.webkit.org/show_bug.cgi?id=139225
Reviewed by Tim Horton.
* http/tests/misc/authentication-redirect-1/resources/auth-then-redirect.php:
* http/tests/misc/authentication-redirect-2/resources/auth-then-redirect.php:
* http/tests/misc/authentication-redirect-3/resources/auth-then-redirect-with-url-credentials.php:
* http/tests/misc/authentication-redirect-3/resources/auth-then-redirect.php:
Use different realms.
* http/tests/misc/authentication-redirect-3/authentication-sent-to-redirect-same-origin-with-location-credentials-expected.txt:
This test's results no longer depend on previous tests.
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (176751 => 176752)
--- trunk/LayoutTests/ChangeLog 2014-12-03 21:01:36 UTC (rev 176751)
+++ trunk/LayoutTests/ChangeLog 2014-12-03 21:45:34 UTC (rev 176752)
@@ -1,3 +1,19 @@
+2014-12-03 Alexey Proskuryakov <[email protected]>
+
+ http/tests/misc/authentication-redirect tests use the same authentication realm
+ https://bugs.webkit.org/show_bug.cgi?id=139225
+
+ Reviewed by Tim Horton.
+
+ * http/tests/misc/authentication-redirect-1/resources/auth-then-redirect.php:
+ * http/tests/misc/authentication-redirect-2/resources/auth-then-redirect.php:
+ * http/tests/misc/authentication-redirect-3/resources/auth-then-redirect-with-url-credentials.php:
+ * http/tests/misc/authentication-redirect-3/resources/auth-then-redirect.php:
+ Use different realms.
+
+ * http/tests/misc/authentication-redirect-3/authentication-sent-to-redirect-same-origin-with-location-credentials-expected.txt:
+ This test's results no longer depend on previous tests.
+
2014-12-03 Zalan Bujtas <[email protected]>
ASSERTION: RenderMultiColumnFlowThread::processPossibleSpannerDescendant() when column spanner's parent is not a RenderBlockFlow.
Modified: trunk/LayoutTests/http/tests/misc/authentication-redirect-1/resources/auth-then-redirect.php (176751 => 176752)
--- trunk/LayoutTests/http/tests/misc/authentication-redirect-1/resources/auth-then-redirect.php 2014-12-03 21:01:36 UTC (rev 176751)
+++ trunk/LayoutTests/http/tests/misc/authentication-redirect-1/resources/auth-then-redirect.php 2014-12-03 21:45:34 UTC (rev 176752)
@@ -3,7 +3,7 @@
// prompt for login if not already present
if (!strlen($_SERVER["PHP_AUTH_USER"]) || !strlen($_SERVER["PHP_AUTH_PW"]))
{
- header("WWW-Authenticate: Basic realm=\"WebKit Bug Test\"");
+ header("WWW-Authenticate: Basic realm=\"http/tests/misc/authentication-redirect-1\"");
header("HTTP/1.0 401 Unauthorized");
exit;
}
Modified: trunk/LayoutTests/http/tests/misc/authentication-redirect-2/resources/auth-then-redirect.php (176751 => 176752)
--- trunk/LayoutTests/http/tests/misc/authentication-redirect-2/resources/auth-then-redirect.php 2014-12-03 21:01:36 UTC (rev 176751)
+++ trunk/LayoutTests/http/tests/misc/authentication-redirect-2/resources/auth-then-redirect.php 2014-12-03 21:45:34 UTC (rev 176752)
@@ -3,7 +3,7 @@
// prompt for login if not already present
if (!strlen($_SERVER["PHP_AUTH_USER"]) || !strlen($_SERVER["PHP_AUTH_PW"]))
{
- header("WWW-Authenticate: Basic realm=\"WebKit Bug Test\"");
+ header("WWW-Authenticate: Basic realm=\"http/tests/misc/authentication-redirect-2\"");
header("HTTP/1.0 401 Unauthorized");
exit;
}
Modified: trunk/LayoutTests/http/tests/misc/authentication-redirect-3/authentication-sent-to-redirect-same-origin-with-location-credentials-expected.txt (176751 => 176752)
--- trunk/LayoutTests/http/tests/misc/authentication-redirect-3/authentication-sent-to-redirect-same-origin-with-location-credentials-expected.txt 2014-12-03 21:01:36 UTC (rev 176751)
+++ trunk/LayoutTests/http/tests/misc/authentication-redirect-3/authentication-sent-to-redirect-same-origin-with-location-credentials-expected.txt 2014-12-03 21:45:34 UTC (rev 176752)
@@ -1,3 +1,4 @@
+http://127.0.0.1:8000/misc/authentication-redirect-3/resources/auth-then-redirect-with-url-credentials.php?redirect=301 - didReceiveAuthenticationChallenge - Responding with testUser:testPassword
https://bugs.webkit.org/show_bug.cgi?id=66354
You should load this page at 127.0.0.1:8000 because the test relies on redirects within the 127.0.0.1:8000 security origin.
This test loads a php script which demands http authentication, then uses it to redirect to another script in the same origin that shows what authentication headers were sent with the final request.
Modified: trunk/LayoutTests/http/tests/misc/authentication-redirect-3/resources/auth-then-redirect-with-url-credentials.php (176751 => 176752)
--- trunk/LayoutTests/http/tests/misc/authentication-redirect-3/resources/auth-then-redirect-with-url-credentials.php 2014-12-03 21:01:36 UTC (rev 176751)
+++ trunk/LayoutTests/http/tests/misc/authentication-redirect-3/resources/auth-then-redirect-with-url-credentials.php 2014-12-03 21:45:34 UTC (rev 176752)
@@ -3,7 +3,7 @@
// prompt for login if not already present
if (!strlen($_SERVER["PHP_AUTH_USER"]) || !strlen($_SERVER["PHP_AUTH_PW"]))
{
- header("WWW-Authenticate: Basic realm=\"WebKit Bug Test\"");
+ header("WWW-Authenticate: Basic realm=\"http/tests/misc/authentication-redirect-3\"");
header("HTTP/1.0 401 Unauthorized");
exit;
}
Modified: trunk/LayoutTests/http/tests/misc/authentication-redirect-3/resources/auth-then-redirect.php (176751 => 176752)
--- trunk/LayoutTests/http/tests/misc/authentication-redirect-3/resources/auth-then-redirect.php 2014-12-03 21:01:36 UTC (rev 176751)
+++ trunk/LayoutTests/http/tests/misc/authentication-redirect-3/resources/auth-then-redirect.php 2014-12-03 21:45:34 UTC (rev 176752)
@@ -3,7 +3,7 @@
// prompt for login if not already present
if (!strlen($_SERVER["PHP_AUTH_USER"]) || !strlen($_SERVER["PHP_AUTH_PW"]))
{
- header("WWW-Authenticate: Basic realm=\"WebKit Bug Test\"");
+ header("WWW-Authenticate: Basic realm=\"http/tests/misc/authentication-redirect-3\"");
header("HTTP/1.0 401 Unauthorized");
exit;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes