Closed
Bug 632904
Opened 14 years ago
Closed 14 years ago
Editor/IME/spellcheck use content states when they mean IsEditable()
Categories
(Core :: DOM: Editor, defect, P1)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla5
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
3.32 KB,
patch
|
ehsan.akhgari
:
review+
masayuki
:
review+
|
Details | Diff | Splinter Review |
Patch coming up per discussion with Ehsan.
Updated•14 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Assignee | ||
Comment 1•14 years ago
|
||
In particular, checking for the MOZ_READONLY state is exactly equivalent to checking for |IsEditable() || (some sort of text input the user can type in)|. It's not clear why we'd ever want to handle those two cases in the same way.
Assignee | ||
Comment 2•14 years ago
|
||
Attachment #511105 -
Flags: review?(masayuki)
Attachment #511105 -
Flags: review?(ehsan)
Assignee | ||
Updated•14 years ago
|
Whiteboard: [need review]
Updated•14 years ago
|
Attachment #511105 -
Flags: review?(ehsan) → review+
Updated•14 years ago
|
Attachment #511105 -
Flags: review?(masayuki) → review+
Assignee | ||
Updated•14 years ago
|
Whiteboard: [need review] → [need gk2 ship]
Comment 3•14 years ago
|
||
Doesn't this disable spellchecking for xul:textbox and xul:textarea? Or for some XTF elements (nsXTFElementWrapper has a SetIntrinsicState)?
Assignee | ||
Comment 4•14 years ago
|
||
Tthe key part here for spellchecking is the test for _text_ nodes, not elements as far as I can tell. And for text nodes IntrinsicState() looks like this: 773 return IsEditable() ? NS_EVENT_STATE_MOZ_READWRITE : 774 NS_EVENT_STATE_MOZ_READONLY; If you prefer we could back this out and replace with a patch that checks IsEditable() on text nodes and the state on elements; the key part for me is that state is not going to exist on text nodes...
Assignee | ||
Comment 5•14 years ago
|
||
Pushed http://hg.mozilla.org/mozilla-central/rev/cb3e118dda44
Status: NEW → RESOLVED
Closed: 14 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [need gk2 ship]
Target Milestone: --- → mozilla2.2
You need to log in
before you can comment on or make changes to this bug.
Description
•