The default bug view has changed. See this FAQ.

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

RESOLVED FIXED in Firefox 12

Status

()

Firefox
Developer Tools: Style Editor
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: AlexLakatos, Assigned: cedricv)

Tracking

11 Branch
Firefox 12
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
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.

Comment 1

5 years ago
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?
(Reporter)

Comment 2

5 years ago
(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.

Comment 3

5 years ago
Sorry. You were talking about a New Style. I missed that. You're right.

Comment 4

5 years ago
I can't reproduce :(
(Reporter)

Comment 5

5 years ago
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

Comment 6

5 years ago
So apparently, this happens only if the stylesheet is empty. Cedric, can you take a look at this?
(Assignee)

Comment 7

5 years ago
(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
(Assignee)

Updated

5 years ago
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
(Assignee)

Comment 8

5 years ago
Created attachment 591469 [details] [diff] [review]
patch v1
Attachment #591469 - Flags: review?(paul)

Updated

5 years ago
Attachment #591469 - Flags: review?(paul) → review+

Updated

5 years ago
Whiteboard: [land-in-fx-team][addToFirefox11]

Updated

5 years ago
Status: NEW → ASSIGNED

Comment 9

5 years ago
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
Last Resolved: 5 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team][addToFirefox11] → [addToFirefox11]
Target Milestone: --- → Firefox 12

Updated

5 years ago
Whiteboard: [addToFirefox11]
You need to log in before you can comment on or make changes to this bug.