Closed Bug 300550 Opened 19 years ago Closed 19 years ago

"toString" enumerable on window.location

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ian, Assigned: peterv)

References

()

Details

Attachments

(1 file)

Brendan asked me to file this. When you enumerate the properties of
window.location, one of the members is "toString()". It isn't listed for other
objects like window.history.

I assume this is related to the fact that window.location overrides toString().
How is this a bug?
Brendan says .toString() should not be enumerable, for consistency.
Attached patch v1Splinter Review
This makes xpconnect always treat toString and toSource as non-enumerable, even
when they're a method of an interface.
Assignee: general → peterv
Status: NEW → ASSIGNED
Attachment #189240 - Flags: review?(jst)
Comment on attachment 189240 [details] [diff] [review]
v1

r=jst
Attachment #189240 - Flags: review?(jst) → review+
Comment on attachment 189240 [details] [diff] [review]
v1

This is ok for 1.8b4.

/be
Attachment #189240 - Flags: approval1.8b4+
Attachment #189240 - Flags: superreview?(brendan)
Comment on attachment 189240 [details] [diff] [review]
v1

Forgot to mark my sr+ earlier!

/be
Attachment #189240 - Flags: superreview?(brendan) → superreview+
Flags: blocking1.8b4+
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: