Closed Bug 696181 Opened 13 years ago Closed 13 years ago

Properties disabled in the css rule view should not be lost

Categories

(DevTools :: General, defect, P1)

9 Branch
x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 10

People

(Reporter: dcamp, Assigned: dcamp)

References

Details

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

Attachments

(1 file, 1 obsolete file)

1) Highlight node A
2) Disable a css property
3) Highlight node B
4) Highlight node A

The disabled css property is gone.  It should still be available.
Depends on: 693887
Priority: -- → P1
Assignee: nobody → dcamp
Status: NEW → ASSIGNED
Attached patch WIP 1 (obsolete) — Splinter Review
Attached patch saves disabled properties in the inspector store, but the inspector store doesn't last the lifetime of the window, just as long as the store.

Still needs tests.
Would it make sense for the inspector store to have page-lifetime instead of inspector-is-open lifetime?
the InspectorStore's used to restore the Highlighter state on tab switch. I guess it currently has an "inspector-is-open lifetime". Changing that to page-lifetime might get a bit weird and might change some of the restore behavior.

That feels like it could add a fair bit of complexity to managing the InspectorStore. I'd have to see an implementation, I guess.
Comment on attachment 572121 [details] [diff] [review]
WIP 1

looking good.
Attachment #572121 - Flags: feedback+
Attached patch v1Splinter Review
Adds a (somewhat grody) test.
Attachment #572121 - Attachment is obsolete: true
Attachment #572379 - Flags: review?(rcampbell)
Comment on attachment 572379 [details] [diff] [review]
v1

looks good. As for the test, I've seen grodier.
Attachment #572379 - Flags: review?(rcampbell) → review+
Whiteboard: [land-in-fx-team]
https://hg.mozilla.org/integration/fx-team/rev/c465f6d67aa9
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/c465f6d67aa9
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 10
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: