Title: [271762] trunk/LayoutTests
- Revision
- 271762
- Author
- [email protected]
- Date
- 2021-01-22 15:53:28 -0800 (Fri, 22 Jan 2021)
Log Message
[LayoutTests] Move redirect.py in resources folder
https://bugs.webkit.org/show_bug.cgi?id=220876
<rdar://problem/73516627>
Reviewed by Alexey Proskuryakov.
* http/wpt/html/dom/elements/images/bypass-cache-redirection-revalidation.html:
* http/wpt/html/dom/elements/images/redirect.py: Moved to images/resources /redirect.py
* http/wpt/html/dom/elements/images/resources: Added.
* http/wpt/html/dom/elements/images/resources/redirect.py: Moved from images/redirect.py.
Modified Paths
Added Paths
Removed Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (271761 => 271762)
--- trunk/LayoutTests/ChangeLog 2021-01-22 22:35:25 UTC (rev 271761)
+++ trunk/LayoutTests/ChangeLog 2021-01-22 23:53:28 UTC (rev 271762)
@@ -1,3 +1,16 @@
+2021-01-22 Jonathan Bedard <[email protected]>
+
+ [LayoutTests] Move redirect.py in resources folder
+ https://bugs.webkit.org/show_bug.cgi?id=220876
+ <rdar://problem/73516627>
+
+ Reviewed by Alexey Proskuryakov.
+
+ * http/wpt/html/dom/elements/images/bypass-cache-redirection-revalidation.html:
+ * http/wpt/html/dom/elements/images/redirect.py: Moved to images/resources /redirect.py
+ * http/wpt/html/dom/elements/images/resources: Added.
+ * http/wpt/html/dom/elements/images/resources/redirect.py: Moved from images/redirect.py.
+
2021-01-22 Chris Fleizach <[email protected]>
AX: AT-synthesized key events for common user actions (increment/decrement) are detectably different in many ways, potentially causing both web app breakage and AT identification
Modified: trunk/LayoutTests/http/wpt/html/dom/elements/images/bypass-cache-redirection-revalidation.html (271761 => 271762)
--- trunk/LayoutTests/http/wpt/html/dom/elements/images/bypass-cache-redirection-revalidation.html 2021-01-22 22:35:25 UTC (rev 271761)
+++ trunk/LayoutTests/http/wpt/html/dom/elements/images/bypass-cache-redirection-revalidation.html 2021-01-22 23:53:28 UTC (rev 271762)
@@ -17,7 +17,7 @@
function computeRedirectionURL(finalURL)
{
- return "redirect.py?status=302&location="+ encodeURIComponent(finalURL);
+ return "resources/redirect.py?status=302&location="+ encodeURIComponent(finalURL);
}
let resolve;
Deleted: trunk/LayoutTests/http/wpt/html/dom/elements/images/redirect.py (271761 => 271762)
--- trunk/LayoutTests/http/wpt/html/dom/elements/images/redirect.py 2021-01-22 22:35:25 UTC (rev 271761)
+++ trunk/LayoutTests/http/wpt/html/dom/elements/images/redirect.py 2021-01-22 23:53:28 UTC (rev 271762)
@@ -1,20 +0,0 @@
-def main(request, response):
- """Simple handler that causes not-cacheable redirection.
-
- The request should typically have two query parameters:
- status - The status to use for the redirection. Defaults to 302.
- location - The resource to redirect to.
- """
- status = 302
- if b"status" in request.GET:
- try:
- status = int(request.GET.first(b"status"))
- except ValueError:
- pass
-
- response.status = status
-
- location = request.GET.first(b"location")
-
- response.headers.set(b"Location", location)
- response.headers.set(b"Cache-Control", "no-store")
Copied: trunk/LayoutTests/http/wpt/html/dom/elements/images/resources/redirect.py (from rev 271761, trunk/LayoutTests/http/wpt/html/dom/elements/images/redirect.py) (0 => 271762)
--- trunk/LayoutTests/http/wpt/html/dom/elements/images/resources/redirect.py (rev 0)
+++ trunk/LayoutTests/http/wpt/html/dom/elements/images/resources/redirect.py 2021-01-22 23:53:28 UTC (rev 271762)
@@ -0,0 +1,20 @@
+def main(request, response):
+ """Simple handler that causes not-cacheable redirection.
+
+ The request should typically have two query parameters:
+ status - The status to use for the redirection. Defaults to 302.
+ location - The resource to redirect to.
+ """
+ status = 302
+ if b"status" in request.GET:
+ try:
+ status = int(request.GET.first(b"status"))
+ except ValueError:
+ pass
+
+ response.status = status
+
+ location = request.GET.first(b"location")
+
+ response.headers.set(b"Location", location)
+ response.headers.set(b"Cache-Control", "no-store")
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes