Closed
Bug 801126
Opened 12 years ago
Closed 12 years ago
Work - Support form autocomplete for touch and mouse
Categories
(Firefox for Metro Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: TimAbraldes, Assigned: bbondy)
References
Details
(Whiteboard: feature=work [completed-elm])
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #801121 +++
Some testing on this slate shows that autocomplete is not implemented, though a suggestion box does appear for the bug summary
Updated•12 years ago
|
Whiteboard: [metro-mvp] → [metro-mvp] [LOE:1]
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → netzen
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Keywords: feature
Resolution: --- → DUPLICATE
Whiteboard: [metro-mvp] [LOE:1]
Assignee | ||
Comment 2•12 years ago
|
||
I think we're tracking stories vs bugs separately, re-opening.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Assignee | ||
Updated•12 years ago
|
Updated•12 years ago
|
Summary: Support password autocomplete → Work - Support password autocomplete
Whiteboard: feature=work
Comment 3•12 years ago
|
||
If there is no existing bug for the work, then we can do that work in a "story" bug. If existing bugs have useful context, marking them as blocking a story seemed easier.
Assignee | ||
Updated•12 years ago
|
Summary: Work - Support password autocomplete → Work - Support form autocomplete for touch and mouse
Assignee | ||
Comment 4•12 years ago
|
||
Before a review I just wanted you to take a look.
Before this patch, earlier this week, I was doing a completely different approach similar to how desktop autocomplete works. But I think we want to handle touch and mouse input the same for a consistent look.
Info about the patch:
- The extra prefs are needed because otherwise an exception is thrown when there is no default value causing the autocomplete popup to not show up. I took the values from mobile/xul.
- I added code to allow pen/mouse for form helper UI as well.
- The removed block of code seems to be not needed and causes the autocomplete to not show up when it should. This functionality matches desktop.
- The WantTypeBehind stuff is needed or else the autocomplete popup consumes the typing you do and causes it to not work right.
The only problem I know of is that the autocomplete is shown when you first click. I'd appreciate any suggestions on the best way you think this should be handled. If you could, please apply the patch and let me know your thoughts.
Attachment #709079 -
Flags: feedback?(mbrubeck)
Assignee | ||
Comment 5•12 years ago
|
||
Oh I should also mention that this patch also has a side effect for <select> elements.
With -metrodesktop a mouse click on a <<select> causes the widget popup and the Menu UI popup to both be shown. But in WinRT it only shows the Menu UI one. If you think it's best we could also disable popups on the win32 widget backend if -metrodesktop is specified so it works in the same way with WinRT and -metrodesktop.
This side effect is a net positive in WinRT since you can't use <select> elements at all at the moment.
Comment 6•12 years ago
|
||
Comment on attachment 709079 [details] [diff] [review]
Patch v1.
Review of attachment 709079 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me.
::: browser/metro/base/content/contenthandlers/Content.js
@@ +407,1 @@
> return;
Can we just remove this whole if statement?
::: browser/metro/base/content/helperui/MenuUI.js
@@ +289,5 @@
> MenuPopup.prototype = {
> get _visible() { return !this._panel.hidden; },
> get _commands() { return this._popup.childNodes[0]; },
> + get WantTypeBehind () { return this._wantTypeBehind; },
> + set WantTypeBehind (aTypeBehind) { this._wantTypeBehind = aTypeBehind; },
Just access the property directly rather than through a getter and setter, please. (We can consider all the classes within a file "friends", and not worry about public/private API usage between them.)
[Nit: If we were keeping the getter/setter, it should use a lowercase identifier.]
::: browser/metro/profile/metro.js
@@ +385,5 @@
>
> +// don't zoom to fit by less than 1/9 (11%)
> +pref("browser.ui.zoom.pageFitGranularity", 9);
> +pref("browser.ui.zoom.animationDuration", 200);
> +
This was my bad. You can drop this change now. I fixed it in:
http://hg.mozilla.org/projects/elm/rev/9032a0b263ec
Attachment #709079 -
Flags: feedback?(mbrubeck) → feedback+
Assignee | ||
Comment 7•12 years ago
|
||
Everything is working great now, but please let me know i you have any suggestions.
Attachment #709079 -
Attachment is obsolete: true
Attachment #709216 -
Flags: review?(mbrubeck)
Comment 8•12 years ago
|
||
Comment on attachment 709216 [details] [diff] [review]
Patch v2.
Review of attachment 709216 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me. I noticed some minor autocomplete bugs while testing this, but they seem unrelated to this patch.
::: browser/metro/base/content/contenthandlers/Content.js
@@ +427,5 @@
> + !(element instanceof HTMLSelectElement)) {
> + this.lastClickElement = element;
> + return;
> + }
> + this.lastClickElement = element;
Can you rewrite this (starting from the "if" statement) as:
this.lastClickElement = element;
if (/* ... */)
return;
Attachment #709216 -
Flags: review?(mbrubeck) → review+
Assignee | ||
Comment 9•12 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Whiteboard: feature=work → feature=work [completed-elm]
Assignee | ||
Updated•12 years ago
|
Comment 11•12 years ago
|
||
Editing in-testsuite flag to check if this has tests. Otherwise, we'll mark for in-qa-testsuite for triage to see if we can make a Mozmill test for it.
Flags: in-testsuite?
Updated•10 years ago
|
OS: Windows 8 Metro → Windows 8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•