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)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
People
(Reporter: Uraeus, Assigned: serhunt)
Details
Attachments
(1 file)
25.56 KB,
archive/gzip
|
Details |
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.
Reporter | ||
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
I'm not on Linux, but maybe the problem really IS with the plugin? Major crasher 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.
Comment 5•23 years ago
|
||
Ignore that dupe, my bad, wrong bug #. Feel free to hit me.
Comment 7•23 years ago
|
||
no, this is not a legacy plugin, this is xpcom plugin, it's unlikely to be a dup.
Reporter | ||
Comment 9•23 years ago
|
||
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?
Comment 10•23 years ago
|
||
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
Comment 11•23 years ago
|
||
The "dupe" everyone is thinking about sounds like bug 36272
Assignee | ||
Comment 12•23 years ago
|
||
*** This bug has been marked as a duplicate of 36272 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 13•22 years ago
|
||
mass duplicate verifications . For filtering purposes, pls use keywd "massdupverification"
Status: RESOLVED → VERIFIED
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•