Closed Bug 875398 Opened 12 years ago Closed 12 years ago

Defect - Metro firefox Form history auto-complete spews DEPRECATION WARNING messages since the landing of bug 697377

Categories

(Firefox for Metro Graveyard :: Input, defect, P1)

x86_64
Windows 8.1
defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 24

People

(Reporter: jimm, Assigned: jimm)

References

Details

(Whiteboard: feature=defect c=operations u=operations p=3)

Attachments

(2 files, 2 obsolete files)

[JavaScript Error: "DEPRECATION WARNING: nsIFormAutoComplete::autoCompleteSearch is deprecated You may find more details about this deprecation at: https://bugzilla.mozilla.org/show_bug.cgi?id=697377 file:///T:/Mozilla/MC-REL/dist/bin/components/nsFormAutoComplete.js 119 FormAutoComplete.prototype.autoCompleteSearch file:///T:/Mozilla/MC-REL/dist/bin/metro/components/FormAutoComplete.js 77 autoCompleteSearch chrome://browser/content/helperui/FormHelperUI.js 193 _formHelperGetAutocompleteSuggestions chrome://browser/content/helperui/FormHelperUI.js 175 _formHelperUpdateSuggestionsFor chrome://browser/content/helperui/FormHelperUI.js 166 _formHelperUpdatePopupsFor chrome://browser/content/helperui/FormHelperUI.js 75 formHelperShow chrome://browser/content/helperui/FormHelperUI.js 112 _onShowRequest chrome://browser/content/helperui/FormHelperUI.js 147 formHelperReceiveMessage null 0 null " {file: "resource://gre/modules/Deprecated.jsm" line: 79}]
Simple work around until this is fixed is to comment out the offending line of code in toolkit - http://mxr.mozilla.org/mozilla-central/source/toolkit/components/satchel/nsFormAutoComplete.js#119
Assignee: nobody → jmathies
Attached patch patch v.1 (obsolete) — Splinter Review
I've pulled the new code from android, which is more up to date. Also, for some reason fennec had a wrapper around the form auto complete service which added special handling for html5 inputs. The android code doesn't use this anymore, so I'm guessing the service has been updated to deal with tese input types. So I've removed the wrapper. I'm also going to write a few simple tests for this.
Blocks: metrov1it8
No longer blocks: metrov1triage
QA Contact: jbecerra
Whiteboard: feature=defect c=operations u=operations p=0
Whiteboard: feature=defect c=operations u=operations p=0 → feature=defect c=operations u=operations p=3
Status: NEW → ASSIGNED
Attached patch auto-complete updates v.1 (obsolete) — Splinter Review
Attachment #753782 - Attachment is obsolete: true
Comment on attachment 754833 [details] [diff] [review] auto-complete updates v.1 This patch updates our form auto-complete code so that it matches android's current version. It also removed an old html5 contact info skimmer we don't use.
Attachment #754833 - Flags: review?(netzen)
Attached patch testsSplinter Review
Add a really basic form fill test so if this breaks in the future we know about it.
Attachment #754837 - Flags: review?(netzen)
Comment on attachment 754833 [details] [diff] [review] auto-complete updates v.1 Review of attachment 754833 [details] [diff] [review]: ----------------------------------------------------------------- As per discussion on irc, this changes the behavior of autocomplete so that when you have a partial match and no autococmplete open, a tap or double click does not open autocomplete with the matched entries. I think it should show those entries in that case to be consistent with desktop firefox.
Attachment #754833 - Flags: review?(netzen) → review-
By the way if you feel like it, it would also be nice for the autocomplete to come up as you type like it does for Desktop firefox.
This gets both scenarios working. The only change was the removal of the block of android specific code at line 176 of the original patch.
Attachment #754833 - Attachment is obsolete: true
Attachment #754858 - Flags: review?(netzen)
Attachment #754858 - Flags: review?(netzen) → review+
Attachment #754837 - Flags: review?(netzen) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
Summary: Metro firefox Form history auto-complete spews DEPRECATION WARNING messages since the landing of bug 697377 → Defect - Metro firefox Form history auto-complete spews DEPRECATION WARNING messages since the landing of bug 697377
Blocks: 831977
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: