Closed Bug 341014 Opened 18 years ago Closed 14 years ago

plugin API fails to report non-existent http: files

Categories

(Core Graveyard :: Plug-ins, defect)

1.7 Branch
x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: glennw, Unassigned)

References

()

Details

(Whiteboard: [closeme 2010-03-31])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514
Build Identifier: 1.5.0.4

In NS V4.x, if a plugin requested a file download via NPN_GetUrl(), whether the server simply returned a 404 error or returned a dummy html page reporting a "404 error", the plugin would always get a call to NPP_DestroyStream() so it could detect that the file was missing.  In all versions of Mozilla and FireFox I've tried, starting with early Mozilla releases, with some server returns, NPP_DestroyStream() and NPP_Write() are never called.   As a result, our SwiftView plugin hangs.
Our plugin downloads a number of optional ancillary files, so this causes problems in normal operation, and there is no usable workaround.

The URL at www.swiftview.com shown above works, probably because it's configured to redirect no-file to an actual web page, but the same source file on our internal test server with a standard Apache 404 handling fails.  That server returns the following page:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
The requested URL /gwtest/nofile.ics was not found on this server.<P>
<HR>
<ADDRESS>Apache/1.3.33 Server at b2 Port 80</ADDRESS>
</BODY></HTML>



Reproducible: Always

Steps to Reproduce:
1.Download and install SwiftView Viewer plugin, using FireFox, from www.swiftview.com/
2. Copy the test url contents to a test web server.
3. Configure the suffix+mime type in this file in the web server.
4. Fiddle with the server's no-file return behavior.

Actual Results:  
hang, with plugin undrawn

Expected Results:  
Display dummy 404 html code

With millions of users of SwiftView ActiveX in IE, we would love to be able to offer full FireFox support as we originally did for Netscape...
Component: General → Plug-ins
Product: Firefox → Core
QA Contact: general → plugins
Version: unspecified → Trunk
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
This works for me. Please update if you can reproduce in the latest nightly.
ftp://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/
Whiteboard: [closeme 2010-03-31]
Closing since now after whiteboard closeme date and no reply to last comment.

Please reopen/comment with further info, if you still see this issue with Firefox 3.6.13 or later with a clean profile.

If you wish, you can also try to reproduce in Firefox 4 Beta 8 or later, since it is possible the issue has already been fixed in Firefox 4:
http://www.mozilla.com/en-US/firefox/all-beta.html
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
Version: Trunk → 1.7 Branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.