Closed
Bug 781104
Opened 13 years ago
Closed 12 years ago
turn source of XBL properties and fields off
Categories
(Core :: XBL, defect)
Core
XBL
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: Benjamin, Assigned: Benjamin)
References
Details
(Whiteboard: [MemShrink:P3])
Attachments
(1 file, 1 obsolete file)
8.52 KB,
patch
|
smaug
:
review-
|
Details | Diff | Splinter Review |
As far as I can tell, the own way to get the underlying functions on properties is contortions like this:
Object.getOwnPropertyDescriptor(Object.getPrototypeOf(document.getElementById("content")), "visibleTabs").get
That of course doesn't mean that no one is relying on having the source of XBL properties. If it turns out too many addons need it, it can be easily restored.
If this goes well, perhaps method source can be disabled, too.
Attachment #649984 -
Flags: review?(bugs)
Comment 1•13 years ago
|
||
The reason for this bug is?
Comment 2•13 years ago
|
||
Comment on attachment 649984 [details] [diff] [review]
turn source off for XBL properties and field defaults
At least CompileFunction should have good explanation why one would want to
pass false as the last parameter.
And in general, I'm against special casing, so unless there is
some good reason for this bug, I don't see the point.
Attachment #649984 -
Flags: review?(bugs) → review-
Assignee | ||
Comment 3•13 years ago
|
||
It reduces runtime memory usage and startup time.
Assignee | ||
Comment 4•13 years ago
|
||
Trying again with comment on CompileFunction.
Assignee: nobody → benjamin
Attachment #649984 -
Attachment is obsolete: true
Attachment #655484 -
Flags: review?(bugs)
Comment 5•13 years ago
|
||
Doesn't this change make debugging possibly harder in some cases?
Also, how much memory is actually saved with this change?
Comment 6•13 years ago
|
||
Comment on attachment 655484 [details] [diff] [review]
turn source off for XBL properties and field defaults
Sorry that I'm so reluctant to take this kind of special case, but
this makes code more complicated. So, I want to see some numbers showing that
this is actually beneficial.
Also, what does .toSource() return if source is not saved?
Attachment #655484 -
Flags: review?(bugs) → review-
Updated•13 years ago
|
Whiteboard: [MemShrink]
![]() |
||
Updated•13 years ago
|
Whiteboard: [MemShrink] → [MemShrink:P3]
Assignee | ||
Comment 7•12 years ago
|
||
These days we need to keep the source around for lazy parsing and such, so there's not much to be gained here anymore.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•