Closed Bug 753677 Opened 12 years ago Closed 12 years ago

Visually distinguish between configurable, enumerable and writable properties

Categories

(DevTools :: Debugger, defect, P3)

12 Branch
defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 15

People

(Reporter: vporof, Assigned: vporof)

References

Details

(Whiteboard: [fixed-in-fx-team])

Attachments

(3 files, 1 obsolete file)

A few visual metaphors for these properties may be nice.
The "enumerable" part of this bug is mostly taken care of in bug 752834.
Priority: -- → P3
We'll just need a lock icon for the unwritable properties.
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Frozen objects should be identified as well:

https://mail.mozilla.org/pipermail/es-discuss/2012-May/022991.html

As a matter of fact, why not indicate all object extensibility characteristics? I imagine a single character at the right side of the object value, with a "float: right" alignment, that reads either F(rozen), S(ealed) or N(on-extensible).
Depends on: 759135
Attached patch v1Splinter Review
Attachment #628321 - Flags: review?(past)
(In reply to Panos Astithas [:past] from comment #3)
> Frozen objects should be identified as well:
> 
> https://mail.mozilla.org/pipermail/es-discuss/2012-May/022991.html
> 
> As a matter of fact, why not indicate all object extensibility
> characteristics? I imagine a single character at the right side of the
> object value, with a "float: right" alignment, that reads either F(rozen),
> S(ealed) or N(on-extensible).

How about a followup for this?
(In reply to Victor Porof from comment #5)
> (In reply to Panos Astithas [:past] from comment #3)
> > Frozen objects should be identified as well:
> > 
> > https://mail.mozilla.org/pipermail/es-discuss/2012-May/022991.html
> > 
> > As a matter of fact, why not indicate all object extensibility
> > characteristics? I imagine a single character at the right side of the
> > object value, with a "float: right" alignment, that reads either F(rozen),
> > S(ealed) or N(on-extensible).
> 
> How about a followup for this?

I'm fine with that.
Attached patch v1-2Splinter Review
Part 2: make the variables obey these same rules as properties (I didn't think we need another bug for this).
Attachment #628360 - Flags: review?(past)
Comment on attachment 628321 [details] [diff] [review]
v1

Review of attachment 628321 [details] [diff] [review]:
-----------------------------------------------------------------

I very much like the decorations, but they are not terribly intuitive. Can't we add tooltips or something?
Attachment #628321 - Flags: review?(past) → review+
Attachment #628360 - Flags: review?(past) → review+
(In reply to Panos Astithas [:past] from comment #8)
> Comment on attachment 628321 [details] [diff] [review]
> v1
> 
> Review of attachment 628321 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> I very much like the decorations, but they are not terribly intuitive. Can't
> we add tooltips or something?

Indeed. I was hoping that this will be just temporary, and shorlander will think of something awesome as always.
Attached patch v1-2-fix (obsolete) — Splinter Review
Added tooltips copied CSS bits to gnomestripe and pinstripe as well.
I like the tooltips! One thing I noticed though, after playing with the patch some more, is that the dotted underline beneath non-writable and non-configurable properties is barely visible next to the dotted separator between properties. Perhaps using a dashed underline will make it more prominent, and also emphasize the color difference between noon-writable and non-configurable properties (due to the extra colored pixels), which is now too subtle.
Whiteboard: [land-in-fx-team]
I could not apply this. Needs a little rebase.
Whiteboard: [land-in-fx-team] → [needs-rebase]
There are two patches in this bug:
v1: which is part1
v1-2-fix: which is part2 with nits addressed from panos.

I'll address comment 11 and reupload a single patch :)
Attached patch v-foldSplinter Review
Addressed comments and qfolded. Land me.
Attachment #628612 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/1bc2c4e1493b
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 15
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: