Closed Bug 94532 Opened 23 years ago Closed 23 years ago

[RFE] Prevent crashes in XPCOM plugins from crashing Mozilla

Categories

(Core Graveyard :: Plug-ins, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 36272

People

(Reporter: Uraeus, Assigned: serhunt)

Details

Attachments

(1 file)

Hi, I have a testing plugin which doesn't work very well yet. Which is of course
not Mozilla's problem, but I guess that even bad plugins should not be allowed
to freeze/segfault mozilla. 
The troublesome plugin is http://mozstreamer.mozdev.org and it crashes my
mozilla each time I try to access the included test.html page. The plugin code
is available from CVS.
I'm not on Linux, but maybe the problem really IS with the plugin? Major crasher
bug?
*** Bug 94493 has been marked as a duplicate of this bug. ***
Everybody can write a plugin which crashes Mozilla or even OS. The idea is to 
try to catch those crashes early and survive. We something like that on Windows.  
This bug is a dup. I'll find it if nobody finds it faster.
Ignore that dupe, my bad, wrong bug #. Feel free to hit me.
Serge, you sure know what it is a dup of...
no, this is not a legacy plugin, this is xpcom plugin,
it's unlikely to be a dup.
Is the 'dup' we have limited to legacy plugins only? 
Not sure if I have understood the comments made here, is this to be considered a
bug or is it impossible to design Mozilla in such a was as to make it next to
impossible for plugins to crash the whole browser?
Currently, almost all calls to 4.x-style plugins on PC-based systems (except
OS/2) use exception handling to catch a crash inside the plugin. This code is
located in:
http://lxr.mozilla.org/seamonkey/source/modules/plugin/base/src/nsPluginSafety.h
You can play around with that and see if it helps.

I think extending this to XPCOM-style plugins will not be easy because AFAIK
exception handeling is looked down upon in mozilla. I'm personally in favor of
using exceptions in specific spots, but it would require a group effort.
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Summary: Bad plugin crashes Mozilla → [RFE] Prevent crashes in XPCOM plugins from crashing Mozilla
The "dupe" everyone is thinking about sounds like bug 36272 

*** This bug has been marked as a duplicate of 36272 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
mass duplicate verifications . For filtering purposes, pls use keywd
"massdupverification"

Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: