NPN_GetURLNotify() downloads empty files

RESOLVED INCOMPLETE

Status

()

RESOLVED INCOMPLETE
10 years ago
2 years ago

People

(Reporter: bugzilla, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en; rv:1.9.0.8) Gecko/20080528 Fedora/2.24.3-4.fc10 Epiphany/2.22 Firefox/3.0
Build Identifier: firefox-3.0.8-1.fc10.x86_64 xulrunner-1.9.0.8-1.fc10.x86_64

When using NPN_GetURLNotify() to stream as file, the created file will be empty. The file has been determined to not be empty by downloading it using wget.

Reproducible: Always

Steps to Reproduce:
1. Compile and install attached plugin
2. Navigate to http://webtv.tv2.no/webtv/sumo/?treeId=3700005&progId=262132
3. Click on a show to watch, and click on a few nag screens
4. See the output generated by the plugin
Actual Results:  
NewStream instance 0x2c515c0 stream 0x2961620 mime-type text/html
StreamAsFile instance 0x2c515c0 stream 0x2961620 filename /tmp/plugtmp-14/plugin-metafile.asx
DestroyStream instance 0x2c515c0 stream 0x2961620 reason 0

/tmp/plugtmp-14/plugin-metafile.asx will be empty

Expected Results:  
Downloaded ASX file isn't empty, and contains:
<TITLE>Ingen tilgang til � spille av denne videoen.</TITLE>
	<ENTRY>
		<TITLE>Videoen er ikke tilgjengelig.</TITLE>
		<ABSTRACT>Ingen tilgang til � spille av denne videoen.</ABSTRACT>
		<PARAM NAME="entry-type" VALUE="error"/>
		<REF HREF="http://webtv.tv2.no/webtv/sumo/images/metafileFailure.jpg" />
		<DURATION VALUE="00:00:20"/>
	</ENTRY> 
</ASX>


This precludes the Totem movie plugin from working on tv2.no's catch-up website.
See additional network stack debug at:
http://bugzilla.gnome.org/show_bug.cgi?id=551532#c3
(Reporter)

Comment 1

10 years ago
Posted file dumbplugin.c

Updated

10 years ago
Duplicate of this bug: 486335
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 3

2 years ago
Resolving old bugs which are likely not relevant any more, since NPAPI plugins are deprecated.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → INCOMPLETE
(Reporter)

Comment 4

2 years ago
Benjamin, could you please stop marking those old NPAPI bugs as incomplete? The bug reports *were* complete, you're simply removing the feature that this affected. Closing this as WONTFIX or OBSOLETE would be more accurate.
You need to log in before you can comment on or make changes to this bug.