Closed
Bug 681555
Opened 13 years ago
Closed 13 years ago
Encourage Components.utils.Sandbox callers to specify a sandboxName
Categories
(addons.mozilla.org Graveyard :: Add-on Validation, defect, P3)
addons.mozilla.org Graveyard
Add-on Validation
Tracking
(Not tracked)
RESOLVED
WONTFIX
Q3 2011
People
(Reporter: jruderman, Unassigned)
References
Details
(Whiteboard: [MemShrink:P3])
Add-ons that use sandboxName are less likely to produce *mysterious* memory use increases.
Comment 1•13 years ago
|
||
What's the end goal for this bug -- what has to happen for it to be fixed? Is it just documentation or something else?
Reporter | ||
Comment 2•13 years ago
|
||
A warning from amo-validator if extensions call Components.utils.Sandbox without specifying a name.
Updated•13 years ago
|
Whiteboard: [MemShrink] → [MemShrink:P3]
Comment 3•13 years ago
|
||
a?jorgev?
What is the text for this?
Comment 4•13 years ago
|
||
Ugh, that constructor interface sucks...
I guess we want to show a warning whenever Components.utils.Sandbox is used in an extension. Trying to figure out when the name is present will always be unreliable, so we shouldn't even try.
The warning should say something like: "Sandbox objects should always be created with a sandboxName to prevent memory problems. Read this documentation for more: https://developer.mozilla.org/en/Components.utils.Sandbox".
Severity: enhancement → minor
Priority: -- → P3
Target Milestone: --- → Q3 2011
Comment 5•13 years ago
|
||
(In reply to Jorge Villalobos [:jorgev] from comment #4)
> "Sandbox objects should always be
> created with a sandboxName to prevent memory problems."
Nit: I wouldn't say "to prevent memory problems", I'd say something like "because it helps memory profiling tools provide more information".
Comment 6•13 years ago
|
||
In that case it should be an informative message, not a warning.
Comment 7•13 years ago
|
||
In bug 681556 the default sandboxName is set to the caller's filename, so there are no more nameless sandboxes in about:memory.
Shouldn't https://developer.mozilla.org/en/Components.utils.Sandbox be updated with "the default value of sandboxName is set to the caller's filename"?
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 8•13 years ago
|
||
> Shouldn't https://developer.mozilla.org/en/Components.utils.Sandbox be
> updated with "the default value of sandboxName is set to the caller's
> filename"?
Yes! I added "As of Gecko 13, if you don't specify a sandbox name it will default to the caller's filename." (CC'ing Sheppy in case my use of "Gecko 13" doesn't match the preferred style.)
Resolution: FIXED → WONTFIX
Assignee | ||
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•