Closed Bug 486346 Opened 15 years ago Closed 7 years ago

NPN_GetURLNotify() downloads empty files

Categories

(Core Graveyard :: Plug-ins, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: bugzilla, Unassigned)

References

()

Details

Attachments

(1 file)

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
Attached file dumbplugin.c
Status: UNCONFIRMED → NEW
Ever confirmed: true
Resolving old bugs which are likely not relevant any more, since NPAPI plugins are deprecated.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
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.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.