Closed
Bug 41276
Opened 24 years ago
Closed 24 years ago
[crash] arbitrary limit to number of plugins allowed in a page
Categories
(Core Graveyard :: Plug-ins, defect, P3)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: sean, Assigned: serhunt)
Details
(Keywords: crash, testcase, Whiteboard: [nsbeta2+])
Attachments
(2 files)
2.31 KB,
text/html
|
Details | |
7.50 KB,
patch
|
Details | Diff | Splinter Review |
Mozilla has a hardcoded limit of 10 simultaneously embedded plugins. If that limit is exceeded, plugin instances are prematurely destroyed (see the empty boxes in the attachment). Leave or reload a page that has a prematurely destroyed plugin and mozilla will crash. nsPluginHostImpl::AddInstanceToActiveList in http://lxr.mozilla.org/seamonkey/source/modules/plugin/nglsrc/nsPluginHostImpl.c pp#1751 is responsible for premature destruction of plugins that are not Stopped (plugins embedded in the currently viewed page). A plugin should not be Stopped if it is still visible. Similar problem if you have multiple browser windows open with fewer plugins in each since nsPluginHostImpl (and mActivePluginList) is app-global.
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
added crash, testcase and 4xp keywords
Reporter | ||
Comment 3•24 years ago
|
||
MAX_ACTIVE_PLUGINS is defined as 10 at http://lxr.mozilla.org/seamonkey/source/modules/plugin/nglsrc/nsPluginHostImpl.h #64 Was there a hardcoded MAX in 4x?
Reporter | ||
Comment 4•24 years ago
|
||
changed wording of summary: artificial->arbitrary nominating nsbeta2
Keywords: nsbeta2
Summary: [crash] artificial limit to number of plugins allowed in a page → [crash] arbitrary limit to number of plugins allowed in a page
Putting on [nsbeta2+] radar for beta2 to fix the crash. After beta2, can we make it so that can handle up many plugins and work properly. Can we bump the number, and give a warning when app cannot handle more plug-ins? 10 is too small of a number. Recommend rejecting newest plug in, not replacing installed current plug-ins as more are added.
Whiteboard: [nsbeta2+]
Does anybody think that the array of ten should be replaced by a linked list? I don't think this is hard thing to do.
Reporter | ||
Comment 7•24 years ago
|
||
Linked list will work, but need a way to reduce size of list to a reasonable amount once the user doesn't have X active plugins. That is, the number of active plugins should be unlimited, but the number of cached, stopped plugins should be limited.
Sean, would you review the list vs. array change. There is no limiting list size mechanism yet but I want to get this one first.
Assignee | ||
Comment 10•24 years ago
|
||
Fix checked it over the last three days. Thanks Sean for review and comments.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 12•15 years ago
|
||
Crashtest added as part of http://hg.mozilla.org/mozilla-central/rev/5a6def05ccbc
Flags: in-testsuite+
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
•