Commit Graph

153 Commits

Author SHA1 Message Date
Boris Zbarsky
b46cdaa78d Bug 1434318 part 13. Remove nsIDOMDocument::CreateEvent. r=mystor
MozReview-Commit-ID: EaUjTLeaQ0n
2018-01-31 15:18:11 -05:00
Boris Zbarsky
95a5e42c52 Bug 1434318 part 2. Stop using nsIContentViewer::GetDOMDocument in C++. r=mystor
MozReview-Commit-ID: FoMoVgCngGR
2018-01-31 15:18:09 -05:00
Boris Zbarsky
e924590fac Bug 1418085 part 3. Stop using nsIDOMHTMLElement in form fill. r=mystor
MozReview-Commit-ID: Ax7RUZQCosr
2018-01-30 00:25:36 -05:00
Boris Zbarsky
2e39082c0d Bug 1432186 part 16. Remove nsIDOMNode's ownerDocument attribute. r=mccr8
MozReview-Commit-ID: JqfAFxPBz41
2018-01-29 23:10:52 -05:00
DimiL
8b6d0c4a38 Bug 1407879 - Check password field url against the local whitelist. r=francois
MozReview-Commit-ID: 1OqpeWeU1s1
2017-12-19 14:16:23 +08:00
DimiL
ea3c40a569 Bug 1425625 - Fix getting reputation service with wrong interface name. r=francois
Fix get service with wrong interface name and a double init issue.

MozReview-Commit-ID: BA0wex06eWb
2017-12-19 09:46:28 +08:00
DimiL
cb870a0cdd Bug 1407878 - P1. Check URLs against the login reputation service when a password field is focused. r=francois 2017-12-14 10:11:45 +08:00
Sean Lee
66f562ece2 Bug 1398101 - Allow the FormAutofill fields with autocomplete="off" to proceed startSearch. r=MattN
MozReview-Commit-ID: 6pZUPY1Fray
2017-09-11 12:11:12 +08:00
Nicholas Nethercote
7dbfdaf890 Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP
2017-10-03 09:05:19 +11:00
Catalin Badea
fc6ab5f0ea Bug 651120 - Remove index argument from content removed/appended/inserted notifications. r=peterv 2017-10-03 11:09:08 +01:00
Matthew Noorenberghe
80e800c67b Bug 1378754 - Don't clear marked fields in nsFormFillController upon a persisted pagehide. r=smaug
While moving to a new window (using SwapDocShells), a pagehide event[1] is dispatched causing nsFormFillController to clean up mPwmgrInputs and mAutofillInputs for the document. This commit changes the pagehide handler to not clear the hash tables or mutation observers with persisted=true (which would also fix the same bug in password manager autocomplete).

This approach comes at the cost of increased memory (hash table entries for fields in session history) but would reduce CPU usage compared to the alternative of re-marking password manager and autofill fields upon every pageshow event. This approach also solves the issue of autofill and password manager autocomplete not working after session history navigation.

[1] https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Method/SwapDocShells

MozReview-Commit-ID: 8DFWuFynDex
2017-07-21 13:32:48 -07:00
Matthew Noorenberghe
2d3e8270ae Bug 1378754 - Add MOZ_LOG logging to nsFormFillController.cpp. r=steveck
MozReview-Commit-ID: KJ7TnnlzrGC
2017-07-21 15:32:18 -07:00
Bill McCloskey
ce42826bdf Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Ehsan Akhgari
2b4811fa0d Bug 1374887 - Remove nsIFormAutoComplete::StopControllingInput() from the C++ side; r=MattN
This currently only incurs some XPConnect and exception creation
overhead, as the method has no implementation.
2017-06-21 23:43:37 -04:00
Ehsan Akhgari
b9bffa40b9 Bug 1374893 - Don't handle the input event for inputs that aren't text controls; r=MattN 2017-06-21 23:29:15 -04:00
Carsten "Tomcat" Book
238bf154d5 Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
Bill McCloskey
67e8af4720 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book
bbe9441993 Backed out changeset 9846de3bd954 (bug 1372405) 2017-06-20 08:27:02 +02:00
Bill McCloskey
f69608368b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Ehsan Akhgari
c6aa106d58 Bug 1373063 - Make nsFormFillController::HandleEvent() a bit faster by avoiding some string comparisons; r=MattN 2017-06-15 09:39:30 -04:00
Ehsan Akhgari
8ddf0fb7cd Bug 1372794 - Cache the form autocomplete service instead of repeatedly getting it in the form fill controller; r=MattN 2017-06-14 08:24:16 -04:00
Jonathan Guillotte-Blouin
e813613649 Bug 1365068 - Added missing brackets & refactored some conditional statements. r=MattN
MozReview-Commit-ID: 1eOkjI06RCJ
2017-05-16 15:56:28 -07:00
Ray Lin
d37849aaa3 Bug 1340483 - Part 3. Enable preview function only when input is marked as autofill field. r=heycam
MozReview-Commit-ID: FFqYJ3icRd7
2017-03-22 16:55:56 +08:00
Mike Conley
dbab8e7198 Bug 1350243 - Combine e10s and non-e10s code paths when reacting to datalist updates. r=MattN
MozReview-Commit-ID: 1O3wAzzwWAR
2017-04-06 16:39:08 -04:00
Johann Hofmann
2852b063d7 Bug 1337772 - Part 1 - Use mousedown instead of contextmenu to avoid showing the password autocomplete. r=MattN
MozReview-Commit-ID: EUZ1f6Qdm0c
2017-04-07 00:01:31 +02:00
Olli Pettay
45822311b7 Bug 1351860 - Move mType from HTMLInputElement to nsIFormControl and make GetType non-virtual inlined, r=jessica 2017-03-31 22:49:00 -04:00
Olli Pettay
694b05ce02 Backout Bug 1351860, r=backout 2017-03-31 16:55:32 -04:00
Olli Pettay
fa83f6684e Bug 1351860 - Move mType from HTMLInputElement to nsIFormControl and make GetType non-virtual inlined, r=jessica 2017-03-31 13:13:36 -04:00
Boris Zbarsky
34042de72d Bug 1343037 part 16. Implement a version of nsTextEditorState::SetSelectionRange that takes a string for the direction. r=ehsan
MozReview-Commit-ID: E8zYAWolg94
2017-03-09 14:44:06 -05:00
Boris Zbarsky
b55933e687 Bug 1343037 part 2. Get rid of nsIDOMHTMLInputElement's selectionEnd accessors. r=ehsan,MattN
MozReview-Commit-ID: L2Ozu7Vvort
2017-03-09 14:44:03 -05:00
Boris Zbarsky
da687175e6 Bug 1343037 part 1. Get rid of nsIDOMHTMLInputElement's selectionStart accessors. r=ehsan,MattN
MozReview-Commit-ID: IyFv8NRuZIO
2017-03-09 14:44:03 -05:00
Johann Hofmann
48b937717f Bug 1337772 - Fix intermittent browser_context_menu_autocomplete_interaction.js. r=MattN
MozReview-Commit-ID: 6vAWN4z2wRP
2017-03-01 20:05:38 +01:00
Johann Hofmann
b114c94ba3 Bug 1337259 - Don't show password autocomplete upon a right click into the password field. r=mconley
MozReview-Commit-ID: JEODCfZOMRW
2017-02-10 12:45:26 +01:00
Luke Chang
ceb079459c Bug 1341582 - Apply form autofill to an already-focused input, r=MattN
MozReview-Commit-ID: C6zT7jKBb4c
2017-02-23 14:44:07 +08:00
Matthew Noorenberghe
d2593e96a9 Bug 1330111 - Expose nsFormFillController's showPopup via nsIFormFillController. r=felipe
MozReview-Commit-ID: 9pc2QDDWTrQ
2017-02-03 12:44:49 -08:00
Matthew Noorenberghe
5e1ddd57d4 Bug 1330111 - Convert the getFocusedInput method on nsIFormFillController to an attribute. r=felipe
The convention is to use an attribute. This also fixes reference counting.

MozReview-Commit-ID: B38ZVNt4Ugi
2017-01-31 23:57:49 -08:00
Matthew Noorenberghe
595105ed4f Bug 1330111 - Always attempt to autocomplete on type=password fields upon focus. r=daleharvey
Let password manager handle opening the popup on username fields itself.

MozReview-Commit-ID: FbI6CgsadEd
2017-02-07 11:15:35 +08:00
Carsten "Tomcat" Book
4ee0fb6b85 Backed out changeset 6b7069ed30e0 (bug 1330111) for causing frequent timeouts in browser_autocomplete_insecure_warning.js 2017-02-07 14:03:42 +01:00
Carsten "Tomcat" Book
c8f64dc715 Backed out changeset dee4bf1753cd (bug 1330111) 2017-02-07 14:03:21 +01:00
Carsten "Tomcat" Book
dca15269f2 Backed out changeset e0f1b7028872 (bug 1330111) 2017-02-07 14:03:20 +01:00
Matthew Noorenberghe
05b8b298fc Bug 1330111 - Expose nsFormFillController's showPopup via nsIFormFillController. r=felipe
MozReview-Commit-ID: 9pc2QDDWTrQ
2017-02-03 12:44:49 -08:00
Matthew Noorenberghe
0910b872a4 Bug 1330111 - Convert the getFocusedInput method on nsIFormFillController to an attribute. r=felipe
The convention is to use an attribute. This also fixes reference counting.

MozReview-Commit-ID: B38ZVNt4Ugi
2017-01-31 23:57:49 -08:00
Matthew Noorenberghe
cdf7ab4697 Bug 1330111 - Always attempt to autocomplete on type=password fields upon focus. r=daleharvey
Let password manager handle opening the popup on username fields itself.

MozReview-Commit-ID: FbI6CgsadEd
2017-02-07 11:15:35 +08:00
Wes Kocher
b2c1cc5f1d Backed out 9 changesets (bug 1330111) for bc bustage in various tests a=backout
Backed out changeset e87c86970a29 (bug 1330111)
Backed out changeset 9e2e44a7a159 (bug 1330111)
Backed out changeset 7abc377ef809 (bug 1330111)
Backed out changeset f1e782d1c944 (bug 1330111)
Backed out changeset d94d72846952 (bug 1330111)
Backed out changeset 23180cae4a46 (bug 1330111)
Backed out changeset 09c59f5c572a (bug 1330111)
Backed out changeset e208e0b51349 (bug 1330111)
Backed out changeset 271035a2bc64 (bug 1330111)

MozReview-Commit-ID: 6mfKgu07dow
2017-02-06 17:54:14 -08:00
Matthew Noorenberghe
f135b57802 Bug 1330111 - Expose nsFormFillController's showPopup via nsIFormFillController. r=felipe
MozReview-Commit-ID: 9pc2QDDWTrQ
2017-02-03 12:44:49 -08:00
Matthew Noorenberghe
bc02a87553 Bug 1330111 - Convert the getFocusedInput method on nsIFormFillController to an attribute. r=felipe
The convention is to use an attribute. This also fixes reference counting.

MozReview-Commit-ID: B38ZVNt4Ugi
2017-01-31 23:57:49 -08:00
Matthew Noorenberghe
2f92a5df80 Bug 1330111 - Always attempt to autocomplete on type=password fields upon focus. r=daleharvey
Let password manager handle opening the popup on username fields itself.

MozReview-Commit-ID: FbI6CgsadEd
2017-02-03 17:19:02 -08:00
Boris Zbarsky
e7ae250672 Bug 1332812. Remove some more unused or nearly-unused nsIDOMElement bits. r=froydnj 2017-02-02 10:32:58 -05:00
Sebastian Hengst
7e11a9fec6 Backed out changeset c724fbd9c326 (bug 1332812) for build bustage. r=backout on a CLOSED TREE 2017-02-02 16:58:52 +01:00
Boris Zbarsky
391a68c2da Bug 1332812. Remove some more unused or nearly-unused nsIDOMElement bits. r=froydnj 2017-02-02 10:32:58 -05:00