Closed
Bug 935176
Opened 11 years ago
Closed 11 years ago
saving a style sheet doesn't remove the star
Categories
(DevTools :: Style Editor, defect)
Tracking
(firefox27 fixed, firefox28 fixed)
RESOLVED
FIXED
Firefox 28
People
(Reporter: paul, Assigned: Optimizer)
Details
(Whiteboard: [qa-])
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
Optimizer
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
STR:
- open the style editor
- import a style sheet
- do some changes
- see the * that indicates there's something to save
- save
- file is saved, but the star doesn't go away
Reporter | ||
Comment 1•11 years ago
|
||
Probably a Firefox 27 regression.
Comment 2•11 years ago
|
||
Bet it's from CodeMirror migration.
Assignee | ||
Comment 3•11 years ago
|
||
I wonder why no tests broke ...
and right now browser debugger is broken to get to the root of it .. :(
Assignee | ||
Comment 4•11 years ago
|
||
added a new test to test the presence of start and dirty state of the editor.
try at : https://tbpl.mozilla.org/?tree=Try&rev=a9110d88bfaf
Assignee: nobody → scrapmachines
Status: NEW → ASSIGNED
Attachment #8340682 -
Flags: review?(fayearthur)
Assignee | ||
Comment 5•11 years ago
|
||
(try is green)
Assignee | ||
Comment 6•11 years ago
|
||
(review ping)
I want this to be lifted to aurora before the merge :)
Comment 7•11 years ago
|
||
In the process of trying out this patch I noticed an even deeper problem. Saving a stylesheet to file doesn't update the display name (or the star).
1) Open style editor
2) Save the first style sheet to a file "areghjie.css" on disk
3) Name isn't updated to "areghjie.css" and star doesn't go away after saving it.
This patch seems to fix both problems, and they seem to be part of the same issue. Does this patch work for you Girish?
Attachment #8343559 -
Flags: feedback?
Updated•11 years ago
|
Attachment #8343559 -
Flags: feedback? → feedback?(scrapmachines)
Comment 8•11 years ago
|
||
Comment on attachment 8340682 [details] [diff] [review]
patch
Review of attachment 8340682 [details] [diff] [review]:
-----------------------------------------------------------------
Take that back, this will resolve the filename issue I was seeing as well. Cheers.
::: browser/devtools/sourceeditor/editor.js
@@ +236,5 @@
>
> cm.on("focus", () => this.emit("focus"));
> cm.on("scroll", () => this.emit("scroll"));
> cm.on("change", () => this.emit("change"));
> + cm.on("change", () => {
instead of having two "change" listeners, combine?
::: browser/devtools/styleeditor/test/browser_styleeditor_filesave.js
@@ +43,5 @@
> {
> + editor.sourceEditor.once("dirty-change", () => {
> + is(editor.sourceEditor.isClean(), false, "Editor is dirty.");
> + ok(gUI._view.getSummaryElementByOrdinal(0).classList.contains("unsaved"),
> + "Star icon is present in the corresponding summary.");
`editor.summary` should work instead of `gUI._view.getSummaryElementByOrdinal(0)`.
Attachment #8340682 -
Flags: review?(fayearthur) → review+
Updated•11 years ago
|
Attachment #8343559 -
Attachment is obsolete: true
Attachment #8343559 -
Flags: feedback?(scrapmachines)
Assignee | ||
Comment 9•11 years ago
|
||
Addressed review comments and landed in fx-team
https://hg.mozilla.org/integration/fx-team/rev/9408665d5384
Attachment #8340682 -
Attachment is obsolete: true
Attachment #8343860 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8343860 [details] [diff] [review]
comments addressed and landed
[Approval Request Comment]
Bug caused by (feature/regressing bug #): 919978
User impact if declined: NO UI feedback to tell the user whether the file was saved or not. User is left confused as the file is actually saved but the Style Editor says it is not.
Testing completed (on m-c, etc.): Local, fx-team, added new tests.
Risk to taking this patch (and alternatives if risky): none
String or IDL/UUID changes made by this patch: none
Attachment #8343860 -
Flags: approval-mozilla-aurora?
Comment 11•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 28
Updated•11 years ago
|
Attachment #8343860 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 12•11 years ago
|
||
Comment on attachment 8343860 [details] [diff] [review]
comments addressed and landed
Since during the aurora request only, merge happened, this is needed in beta too :)
Approval Request Comment]
Bug caused by (feature/regressing bug #): 919978
User impact if declined: NO UI feedback to tell the user whether the file was saved or not. User is left confused as the file is actually saved but the Style Editor says it is not.
Testing completed (on m-c, etc.): Local, fx-team, added new tests.
Risk to taking this patch (and alternatives if risky): none
String or IDL/UUID changes made by this patch: none
Attachment #8343860 -
Flags: approval-mozilla-beta?
Updated•11 years ago
|
Attachment #8343860 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Assignee | ||
Comment 13•11 years ago
|
||
Sheriffs, please land this to aurora and beta whenever the next landings go :)
Comment 14•11 years ago
|
||
status-firefox27:
--- → fixed
status-firefox28:
--- → fixed
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•