Closed
Bug 388558
Opened 18 years ago
Closed 18 years ago
'change' event isn't dispatched if user selects input field value from the autocomplete list
Categories
(Toolkit :: Form Manager, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Assigned: smaug)
References
Details
(Keywords: regression)
Attachments
(1 file)
19.63 KB,
patch
|
jst
:
review+
sicking
:
superreview+
mconnor
:
approval1.9+
|
Details | Diff | Splinter Review |
testcase https://bugzilla.mozilla.org/attachment.cgi?id=256064 from
bug 355367 can be used here too. Type 'c' to the first field and press enter.
Then reload the testcase and select 'c' from the autocomplete list and press tab.
I *think* we'd want to dispatch 'change' event in that case.
Problem is probably that formfillcontroller uses nsIDOMHTMLInputElement::value,
which prevents 'change' event dispatch.
Assignee | ||
Updated•18 years ago
|
Assignee: nobody → Olli.Pettay
Assignee | ||
Comment 1•18 years ago
|
||
FormFillController must be able to set the value of the input in such way that
'change' event is dispatched. nsIDOMNSEditableElement::setUserInput doesn't
prevent event dispatch. That method is ofc only for privileged use, like
nsIDOMNSEditableElement::editor.
Attachment #272769 -
Flags: superreview?(jst)
Attachment #272769 -
Flags: review?(jst)
Assignee | ||
Comment 2•18 years ago
|
||
I think having this fixed in FF3 would be great.
Flags: blocking-firefox3?
Updated•18 years ago
|
Flags: blocking-firefox3? → blocking-firefox3-
Whiteboard: [wanted-firefox3]
Comment 4•18 years ago
|
||
Bug 359387 had 25 votes and several dups, but I duped it here because this bug has a patch.
Assignee | ||
Comment 5•18 years ago
|
||
Adding regression keyword. This used to work, afaik, in 1.5.
Keywords: regression
Updated•18 years ago
|
Attachment #272769 -
Flags: superreview?(jst) → superreview?(jonas)
Comment on attachment 272769 [details] [diff] [review]
proposed patch + mochitest for the new setUserInput method
Why not put the new function on nsITextControlElement instead? The only downside is that you can't write a mochitest for it.
Comment on attachment 272769 [details] [diff] [review]
proposed patch + mochitest for the new setUserInput method
Opps, forgot to mark sr=me still.
Attachment #272769 -
Flags: superreview?(jonas) → superreview+
Assignee | ||
Comment 9•18 years ago
|
||
(In reply to comment #7)
> (From update of attachment 272769 [details] [diff] [review])
> Why not put the new function on nsITextControlElement instead?
If I remember right, I was thinking that having a scriptable method might be useful, for example for extensions or if formfillcontroller gets rewritten using JS.
Updated•18 years ago
|
Attachment #272769 -
Flags: review?(jst) → review+
Assignee | ||
Updated•18 years ago
|
Attachment #272769 -
Flags: approval1.9?
Updated•18 years ago
|
Attachment #272769 -
Flags: approval1.9? → approval1.9+
Comment 10•18 years ago
|
||
Breaks my Seamonkey build (MOZ_SVG not defined). Maybe that declaration for userInput can be moved in nsGkAtomList.h?
Comment 11•18 years ago
|
||
Here's the error...
nsHTMLInputElement.cpp: In member function 'nsresult nsHTMLInputElement::SetValueInternal(const nsAString_internal&, nsITextControlFrame*, PRBool)':
nsHTMLInputElement.cpp:937: error: 'userInput' is not a member of 'nsGkAtoms'
Assignee | ||
Comment 12•18 years ago
|
||
Oh, sorry. Will fix asap.
Assignee | ||
Comment 13•18 years ago
|
||
Moved userInput out from #ifdef MOZ_SVG
Assignee | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Updated•18 years ago
|
Flags: wanted-firefox3+
Whiteboard: [wanted-firefox3]
Comment 17•18 years ago
|
||
I wanted to nominate this bug for branch, I don't have permission to flag wanted, so I'll try blocking.
The main reason is that this is a regression and the fact that the upgrade to firefox 3 will not be an easy option for many people, mainly because of old linux distributions and pango.
Let me know if there's anything I can do to help
Flags: blocking1.8.1.12?
Assignee | ||
Comment 18•18 years ago
|
||
blocking1.8.1.12 is impossible, maybe blocking1.8.1.13?
Flags: blocking1.8.1.12? → blocking1.8.1.13?
Comment 19•18 years ago
|
||
sorry about that, didn't have permission to blocking 1.8.1.13 :(
Comment 20•18 years ago
|
||
I'm sorry, which version fixes this?
Assignee | ||
Comment 21•18 years ago
|
||
Currently trunk, so Firefox3.
Comment 22•18 years ago
|
||
I see, thanks! Do you know if there are plans to merge the fix in 2.x?
Comment 23•18 years ago
|
||
Not blocking 1.8 release, but will look at approving a branch patch (merged, and including the seamonkey build-bustage fix).
Flags: blocking1.8.1.13? → blocking1.8.1.13-
Assignee | ||
Comment 24•18 years ago
|
||
Pablo, can you, or will you have time to make the branch patch?
Comment 26•17 years ago
|
||
Is it already fixed in beta 5?
Assignee | ||
Comment 27•17 years ago
|
||
yes
Comment 29•17 years ago
|
||
According to "Bug 436255" which is marked as a duplicate of this bug, the problem is not fixed in beta 5. So maybe this ticket should be reopened or the "Bug 436255" is incorrectly marked as a duplicate. What do you think?
Comment 30•17 years ago
|
||
It was fixed for me in beta5, and your bug is identical to the one I submitted (except I always use the keyboard for everything). I suggest you try again with rc1.
Comment 31•17 years ago
|
||
naktinis:
Just tried in FF3 RC1, and it works fine, so this bug can remain closed. Thank you!
Comment 32•17 years ago
|
||
Ok. By the way, could someone check a similar bug ("Bug 430929") which was filed more than month ago. The bug still has the unconfirmed status. The difference is that "Bug 430929" is about "input" event which doesn't fire when it should.
Updated•17 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•