Closed Bug 781104 Opened 12 years ago Closed 11 years ago

turn source of XBL properties and fields off

Categories

(Core :: XBL, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: Benjamin, Assigned: Benjamin)

References

Details

(Whiteboard: [MemShrink:P3])

Attachments

(1 file, 1 obsolete file)

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)
The reason for this bug is?
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-
It reduces runtime memory usage and startup time.
Trying again with comment on CompileFunction.
Assignee: nobody → benjamin
Attachment #649984 - Attachment is obsolete: true
Attachment #655484 - Flags: review?(bugs)
Doesn't this change make debugging possibly harder in some cases?
Also, how much memory is actually saved with this change?
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-
Whiteboard: [MemShrink]
Whiteboard: [MemShrink] → [MemShrink:P3]
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: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: