Bug 20202 - Missing http status line from the http headers
Summary: Missing http status line from the http headers
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2008-07-28 14:28 PDT by Dimcho Balev
Modified: 2008-08-28 10:27 PDT (History)
1 user (show)

See Also:

Test case (25.87 KB, application/octet-stream)
2008-07-28 14:54 PDT, Dimcho Balev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dimcho Balev 2008-07-28 14:28:55 PDT
Windows only: WebKit is not adding the http status line in front of the HTTP headers that it passes to NPAPI plugins (for example - "HTTP/1.0 200 OK"). This is very important information for plugins like Flash Player since it is the only way to find out what is the HTTP status code for a given HTTP request.

Webkit for Mac works fine - it is a problem only in the windows specific code.

Related bug: 18676
Comment 1 Dimcho Balev 2008-07-28 14:54:39 PDT
Created attachment 22530 [details]
Test case 

1. Install flash player 10 beta
2. Open the swf file in Safari for Mac. 
3. Press the connect button
4. Look for "status=" in the left text pane. Note that it is not 0. (It should be 200 on success)
5. Open the same swf file in Safari for Windows
6. Press the connect button
7. Note that you will always get "status=0" regardless of the result of the http request. This is because Flash player can not find the status line in the http headers so it returns the default value which is 0.
Comment 2 Anders Carlsson 2008-08-28 10:09:56 PDT
Comment 3 Anders Carlsson 2008-08-28 10:27:22 PDT
Committed revision 25971.