[Webkit-unassigned] [Bug 223965] REGRESSION(r275204): [GTK][WPE] Several http/tests/contentextensions tests crash

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 30 18:17:36 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=223965

--- Comment #4 from Carlos Alberto Lopez Perez <clopez at igalia.com> ---
(In reply to Jonathan Bedard from comment #2)
> Seems like the 0 and the content length are the most likely culprits.

I tried this version of main-resource-redirect-blocked.py

$ cat LayoutTests/http/tests/contentextensions/main-resource-redirect-blocked.py
#!/usr/bin/env python3

import sys

sys.stdout.write(
    'Location: resources/main-resource-redirect-blocked-target.html\r\n'
    'Status: 302\r\n'
    'Content-Length: 0\r\n'
    'Connection: close\r\n'
    'Content-Type: text/html\r\n\r\n'
)


Which gives this raw output

$ printf 'GET /contentextensions/main-resource-redirect-blocked.py HTTP/1.1\r\nHost: localhost\r\n\r\n' | nc localhost 8000
HTTP/1.1 302 Found
Date: Wed, 31 Mar 2021 01:07:18 GMT
Server: Apache/2.4.38 (Debian)
Connection: close
Location: resources/main-resource-redirect-blocked-target.html
Content-Length: 0
Content-Type: text/html


This way it doesn't print the 0 at the end and it exits immediately like the PHP version. Also the output it gives is almost the same than the previous PHP version. Major difference is that it replies with an HTTP/1.1 header instead of HTTP/1.0 (I couldn't find how to change the HTTP version from the python cgi script)


But is still crashing...

I also tried modifying the PHP version to use HTTP/1.1 and it is working with that one, so it is not directly related to that.


This is a bit weird.. :\

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210331/38417813/attachment.htm>


More information about the webkit-unassigned mailing list