Closed
Bug 719916
Opened 13 years ago
Closed 13 years ago
style inspector loses focus after entering attribute name
Categories
(DevTools :: Inspector, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 13
People
(Reporter: kdevel, Assigned: dcamp)
Details
(Whiteboard: [ruleview])
Attachments
(1 file, 2 obsolete files)
5.71 KB,
patch
|
Details | Diff | Splinter Review |
User Agent:
Steps to reproduce:
1. Open a new tab (blank page).
2. Inspect (ctrl-shift-i).
3. Press "Style" Button.
4. Click at closing brace ('}').
5. Enter 'foo'.
6. Press ':'-Key or RETURN-Key.
Actual results:
6. No focus in value field.
Expected results:
6. Focus in the value field.
Comment 1•13 years ago
|
||
Confirmed on Mozilla/5.0 (Windows NT 5.1; rv:12.0a1) Gecko/20120120 Firefox/12.0a1 ID:20120120031125
Component: Untriaged → Developer Tools: Inspector
QA Contact: untriaged → developer.tools.inspector
Updated•13 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → dcamp
Comment 2•13 years ago
|
||
I think this happens with about:* pages (same behavior with about:home).
Updated•13 years ago
|
Whiteboard: [ruleview]
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #602945 -
Flags: review?
Assignee | ||
Updated•13 years ago
|
Attachment #602945 -
Flags: review? → review?(jwalker)
Comment 4•13 years ago
|
||
Comment on attachment 602945 [details] [diff] [review]
fix
Review of attachment 602945 [details] [diff] [review]:
-----------------------------------------------------------------
This may be hacky but it has 2 great features for hacky:
- It's short
- There are more lines of comment than hack
::: browser/devtools/styleinspector/CssRuleView.jsm
@@ +724,4 @@
> }
> this._viewedElement = null;
> this._elementStyle = null;
> + this._focusBackstop = null;
Way back when I was a C programmer doing manual memory management, I had a rule for getting it right - symmetry - there must be symmetry between allocation and deallocation, so I might remove the event listener before I delete the element.
(That's a 'yes I read this' comment. You probably want to ignore me :)
Attachment #602945 -
Flags: review?(jwalker) → review+
Assignee | ||
Comment 5•13 years ago
|
||
Attachment #602945 -
Attachment is obsolete: true
Assignee | ||
Comment 6•13 years ago
|
||
That patch included some half-baked broken test changes in addition to the working new test. Pulled that out, ran through try:
https://tbpl.mozilla.org/?tree=Try&rev=af755dafec46
Attachment #603921 -
Attachment is obsolete: true
Comment 7•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•