Closed Bug 621406 Opened 14 years ago Closed 6 years ago

extension registering a stream converter does not work in child process.

Categories

(Firefox for Android Graveyard :: Extension Compatibility, defect)

All
Linux
defect
Not set
normal

Tracking

(fennec-)

RESOLVED WONTFIX
Tracking Status
fennec - ---

People

(Reporter: tim.babych, Unassigned)

Details

Attachments

(1 file)

2.44 KB, application/x-xpinstall
Details
Attached file testcase extension
When a streamconverter for mimetype "application/fb2" is registered, it is not called when a file with this mimetype is downloaded from a website. It works without a problem in Firefox 4 beta 8. Please check the attached testcase xpi which is a stripped down version of my extension. It is not the same as bug 562638, because Content-Disposition is not involved here, test URL is http://clear.com.ua/misc/fb2/1%20-%20Pratchett%20-%20The%20Color%20of%20Magic.fb2 Firefox 4 beta 8 output: FB2 URI match on http://clear.com.ua/misc/fb2/1%20-%20Pratchett%20-%20The%20Color%20of%20Magic.fb2 FB2 asyncConvertData FB2 onStartRequest FB2 onDataAvailable FB2 onStopRequest Fennec 4 beta 3 output: FB2 URI match on http://clear.com.ua/misc/fb2/1%20-%20Pratchett%20-%20The%20Color%20of%20Magic.fb2
tracking-fennec: --- → ?
what platform are you testing on?
Linux i686 desktop build on Ubuntu 10.10 x64.
I am guessing this is an e10s issue
Assignee: nobody → doug.turner
tracking-fennec: ? → 2.0+
Assignee: doug.turner → azakai
Hmm, HelperAddDialog.show receives aLauncher with a MIMEInfo that has the proper MIMEType - application/fb2 - but hasDefaultHandler is false. So we show a notification that no application exists to open the content, and an option is given to save it to disk. I am guessing we shouldn't even get to HelperAppDialog?
The issue is that the stream converter defined in the plugin, is not seen in the child. More specifically, do_CreateInstance is called on a contract ID for the required conversion, but it fails in Fennec in the child process (but works in Firefox in the single process). So, we need to remote something here. It isn't obvious to me what. Any thoughts?
Jason, This is an example of an extension registering a stream converter and it failing to work. I'd love to see this fixed, but I am 2.0- this.
tracking-fennec: 2.0+ → 2.0-
Summary: Streamconverter is not called (2) → extension registering a stream converter does not work in child process.
This is not something that I wish to be fixed in general (extension being able to register contracts in the content process). If there is a specific use case such as stream conversion that we want/need to support, we should design an API for that issue specifically.
Do we have any thoughts on what kind of API we want to support here?
Assignee: azakai → nobody
Closing all opened bug in a graveyard component
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: