Open Bug 947119 Opened 12 years ago Updated 9 months ago

Figure out what to do if a stylesheet had changes but was removed from the page

Categories

(DevTools :: Style Editor, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: pbro, Unassigned)

References

(Depends on 1 open bug)

Details

Whenever stylesheets are added or removed or changed, the style editor should react and show the new list/content. This may be a bit tricky once changes have been made (even more so if they've been saved to disk). We could start with something simple that asks users if they want to remove the stylesheet from the list, or reload one they've already edited. To be discussed I guess.
Depends on bug 926014 in which a lot of the concerned code will be shuffled around. Also depends on bug 922146 which adds the style sheet added/removed events to the style actor.
Depends on: 926014, 922146
Ideally, we would just add or remove the editor for the style sheet in question, without reloading the whole list.
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P2
I'm handling the "added" part in bug 1224558, but probably not the removed part, due to the saving problem.
Product: Firefox → DevTools
Severity: normal → S3

The "removed" part was done in Bug 1771113
Let's keep this to see if we should do something if the stylesheet that we're going to remove was edited

Priority: P2 → P3
Summary: Style editor should reload the list when stylesheets are added, removed or changed → Figure out what to do if a stylesheet had changes but was removed from the page
You need to log in before you can comment on or make changes to this bug.