Closed Bug 719021 Opened 12 years ago Closed 12 years ago

Saving an empty new style sheet does not display the file name upon saving

Categories

(DevTools :: Style Editor, defect)

11 Branch
x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 12

People

(Reporter: AlexLakatos, Assigned: cedricv)

Details

Attachments

(1 file)

A new stylesheet will continue to show the same "New style sheet #No" name until the show/hide button is triggered.

Steps to Reproduce:
1.Open the Style Editor
2.Add a new stylesheet
3.Save it

Expected Results:
4.The name displayed in the stylesheet list is changed

Actual Results:
4.The name displayed in the stylesheet list is changed only after the show/hide button is triggered.
I think this is the expected behavior. Saving the stylesheet doesn't change its URL in the page. For example, if you change the local file with another editor, that won't change the style of the page.

Maybe we want to add it's local name between brackets.

Cedric?
(In reply to Paul Rouget [:paul] from comment #1)
> I think this is the expected behavior. Saving the stylesheet doesn't change
> its URL in the page. For example, if you change the local file with another
> editor, that won't change the style of the page.
This happens for newly created style sheets by the user. Pressing the show/hide icon changes the displayed name. I think it's confusing that after "save" is hit for a newly created style sheet it does not change the displayed name in the list.
Sorry. You were talking about a New Style. I missed that. You're right.
I can't reproduce :(
I can reproduce across platforms for both Aurora(11a2) and Nightly(12a1). 
Here is a screencast reproducing the issue with today's Nightly on Linux: http://dl.dropbox.com/u/22633148/bug719021.ogv
So apparently, this happens only if the stylesheet is empty. Cedric, can you take a look at this?
(In reply to Paul Rouget [:paul] from comment #6)
> So apparently, this happens only if the stylesheet is empty. Cedric, can you
> take a look at this?

I can reproduce. This only happens when saving a completely empty style sheet.
Assignee: nobody → cedricv
Summary: Saved stylesheets do not change the displayed names upon saving → Saving an empty new style sheet does not display the file name upon saving
Attached patch patch v1Splinter Review
Attachment #591469 - Flags: review?(paul)
Attachment #591469 - Flags: review?(paul) → review+
Whiteboard: [land-in-fx-team][addToFirefox11]
Status: NEW → ASSIGNED
https://hg.mozilla.org/integration/fx-team/rev/7571ade2acbf
Whiteboard: [land-in-fx-team][addToFirefox11] → [fixed-in-fx-team][addToFirefox11]
https://hg.mozilla.org/mozilla-central/rev/7571ade2acbf
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team][addToFirefox11] → [addToFirefox11]
Target Milestone: --- → Firefox 12
Whiteboard: [addToFirefox11]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: