Closed Bug 230017 Opened 21 years ago Closed 14 years ago

RFE: Run plugins in a separate thread

Categories

(Core Graveyard :: Plug-ins, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: roland.mainz, Unassigned)

References

()

Details

(Whiteboard: bug 156493 is for plugins-in-seperate-process, this discussion is about plugin-in-seperate-thread!)

RFE: Run plugins in a seperate thread(s; one per plugin) to decouple them from other activities in the browser. Currently a very busy Flash plugin (like a fast endless animation) can make all other tasks in the browser/mail/news/calendar very sluggish. Moving the plugin into a seperate thread (and for X11 platforms: A seperate Xserver connection opened with XOpenDisplay()) would greatly improve that situation (a good example for the performance improvements is "Konqueror" which runs plugins in a seperate process - in most cases this design outperforms Mozilla by magnitudes (just test it yourself via running multiple Flash animations from http://www.happytreefriends.com/ in parallel)).
Depends on: 230018
Really should be a carefully sanitized separate process for security. There's no reason to assume plugins are benign.
Running NS4.x-style plugins in a seperate process may be possible, but running plugins which use the new XPCOM-based Mozilla API in a seperate process would be a horrible pain since _EVERYTHING_ the plugin accesses would have to be transferred between the two processes (I am not even sure whether the new plugin API actually allows this... please anyone correct me if I am wrong...).
closely related to bug 156493
Whiteboard: Please file a seperate bug for plugins-in-seperate-process, this discussion is about plugin-in-seperate-thread!
Roland, concerning your Whiteboard entry: 1) there already is a bug about separate processes, so I see no point in asking people to file another one. 2) when I said "related", I meant it (not dup, or I had said it). I don't know how close the relationship is, though, but I guess there is one...
Whiteboard: Please file a seperate bug for plugins-in-seperate-process, this discussion is about plugin-in-seperate-thread! → bug 156493 is for plugins-in-seperate-process, this discussion is about plugin-in-seperate-thread!
Summary: RFE: Run plugins in a seperate thread → RFE: Run plugins in a separate thread
*** Bug 269679 has been marked as a duplicate of this bug. ***
Seems like an excellent use of threads if technically feasible.
Are our XPCOM services, by defintion, thread-safe?
*** Bug 240852 has been marked as a duplicate of this bug. ***
(In reply to comment #7) on average they are not and most be accessed using a proxy.
erm, must :(
Better to go for a separate process and get better protection; a thread might sole responsiveness, but would not solve other problems like crashes. That's bug 156493
Assignee: peterlubczynski-bugs → nobody
QA Contact: plugins
Blocks: 271859
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.