Commit graph

164 commits

Author SHA1 Message Date
Boris Zbarsky
4292bca4ee Bug 1449631 part 6. Remove nsIDOMEventTarget::DispatchEvent. r=smaug
MozReview-Commit-ID: 8YMgmMwZkAL
2018-04-05 13:42:41 -04:00
Boris Zbarsky
29d232e53f Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor
MozReview-Commit-ID: 202nkbmkwfR
2018-03-21 17:39:04 -04:00
Boris Zbarsky
dcaa6d2614 Bug 1446711 part 5. Get rid of nsIDOMMouseEvent::GetButton. r=qdot
MozReview-Commit-ID: AZWzObh01uI
2018-03-20 00:16:06 -04:00
Emilio Cobos Álvarez
2988d4e66d Bug 1442207: Remove unneeded arguments to nsIMutationObserver. r=smaug
aDocument is always content->OwnerDoc().
aContainer is always content->GetParent().

Differential Revision: https://phabricator.services.mozilla.com/D664

MozReview-Commit-ID: 4xwPCOnhyIL
2018-03-01 22:45:17 +01:00
Emilio Cobos Álvarez
9f26540cc4 Bug 1441547: Make character data change notifications use a const reference for the info parameter. r=smaug
It's not intended to be mutated.

MozReview-Commit-ID: 5nkD1YkidlV

--HG--
extra : rebase_source : 810d429208fa3eaf30e220e77a7d27107cb77346
2018-02-27 15:30:27 +01:00
Adrian Wielgosik
35f8ed790f Bug 1440741 - Remove all members from nsIDOMHTMLFormElement. r=qdot
MozReview-Commit-ID: 2UcUy4MkVsM

--HG--
extra : rebase_source : ddc6c18c5015ebc5569defa09b32c40e83939886
2018-02-23 19:28:08 +01:00
Masayuki Nakano
4e13e7028b Bug 1434837 - Make autocomplete and satchel listen to keypress event at the system event group r=mak
The autocomplete module listens to keypress event for both printable keys and
non-printable keys a lot.  However, we'll stop dispatching keypress event for
non-printable keys in the default event group of web content.  So, autocomplete
should listen to keypress events at the system event group.

Note that it's difficult to change keypress event listeners to keydown event
listeners because if we stop keypress events at preceding keydown event in
autocomplete or satchel module, some other modules fail to handle keydown or
keypress event before autocomplete and it's not easy to investigate which
module's which keypress event listener should be changed to keydown event
listener.  Therefore, this patch doesn't do it at least for now.

MozReview-Commit-ID: 7e3aklmKrXu

--HG--
extra : rebase_source : 1a1e71972e4f56f088c0372e12961ffb683c7b26
2018-02-08 22:42:29 +09:00
Boris Zbarsky
92bbd744e1 Bug 1436508 part 11. Remove the use of the nsIDOMKeyEvent::DOM_VK* constants in C++. r=masayuki
MozReview-Commit-ID: Honw0NrVMuV
2018-02-09 11:17:09 -05:00
Boris Zbarsky
d6140ab21c Bug 1436508 part 7. Remove nsIDOMKeyEvent usage from formfill and spellcheck. r=masayuki
The various event header changes are to avoid forcing random places to include nsGlobalWindowInner.h

MozReview-Commit-ID: 4THIjj6kIXv
2018-02-09 11:17:09 -05:00
Josh Matthews
19738f789f Bug 1436743 - Dispatch events via the docgroup rather than the tabgroup when possible. r=mystor 2018-02-08 15:54:00 -05:00
Paolo Amadini
cbbe421ff9 Bug 1427364 - Remove showCommentColumn and showImageColumn. r=mak
MozReview-Commit-ID: 8RNVaLvZkrY

--HG--
extra : rebase_source : 786e83efba2051d3fcd7db3a466b62b335df8cc5
2018-01-10 15:22:23 +00:00
Boris Zbarsky
928d0d4fa7 Bug 1434318 part 13. Remove nsIDOMDocument::CreateEvent. r=mystor
MozReview-Commit-ID: EaUjTLeaQ0n
2018-01-31 15:18:11 -05:00
Boris Zbarsky
c62e23596a 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
956a937d93 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
37aaea3c1f Bug 1432186 part 16. Remove nsIDOMNode's ownerDocument attribute. r=mccr8
MozReview-Commit-ID: JqfAFxPBz41
2018-01-29 23:10:52 -05:00
DimiL
92cdac8eef Bug 1407879 - Check password field url against the local whitelist. r=francois
MozReview-Commit-ID: 1OqpeWeU1s1

--HG--
extra : rebase_source : e201e13e8a8d9cc2b4d25700ea6e44aa6e4a850b
2017-12-19 14:16:23 +08:00
DimiL
1888227294 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

--HG--
extra : rebase_source : 0e32128c470ec9d116840a372ab0893d476aa543
2017-12-19 09:46:28 +08:00
DimiL
d40b2f8147 Bug 1407878 - P1. Check URLs against the login reputation service when a password field is focused. r=francois
--HG--
extra : rebase_source : ac7befbe584f008dcf87999edb6f14e24cb30f4e
2017-12-14 10:11:45 +08:00
Sean Lee
920b6010d7 Bug 1398101 - Allow the FormAutofill fields with autocomplete="off" to proceed startSearch. r=MattN
MozReview-Commit-ID: 6pZUPY1Fray

--HG--
extra : rebase_source : d6e671a3877f36ba29fa49d965eb710997776b7e
2017-09-11 12:11:12 +08:00
Nicholas Nethercote
d225f7151b 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

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Catalin Badea
f8162c4bfd Bug 651120 - Remove index argument from content removed/appended/inserted notifications. r=peterv 2017-10-03 11:09:08 +01:00
Matthew Noorenberghe
97207bec46 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

--HG--
extra : rebase_source : 496220c356de21f627efe71dab6907b99b2facd1
2017-07-21 13:32:48 -07:00
Matthew Noorenberghe
59c18706f7 Bug 1378754 - Add MOZ_LOG logging to nsFormFillController.cpp. r=steveck
MozReview-Commit-ID: KJ7TnnlzrGC

--HG--
extra : rebase_source : 1be65f2f4b04b74795773bcf88c1e353f9d751a0
2017-07-21 15:32:18 -07:00
Bill McCloskey
f115503a0b 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
cd91a2efc3 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
d711c402c2 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
8a1350b5a6 Backed out changeset 4f6302a98ae4 (bug 1372405)
--HG--
extra : rebase_source : 41632f3158e88e692809731394a683d065a73dfb
2017-06-21 13:59:26 +02:00
Bill McCloskey
6b3e84ed5f 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
ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey
4592152411 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
7fccf77722 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
2fef4ff0fb 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
969046c009 Bug 1365068 - Added missing brackets & refactored some conditional statements. r=MattN
MozReview-Commit-ID: 1eOkjI06RCJ

--HG--
extra : rebase_source : 18068d1483d9127c06b858ce917f53dc41f4c58f
2017-05-16 15:56:28 -07:00
Ray Lin
f50d5b5b45 Bug 1340483 - Part 3. Enable preview function only when input is marked as autofill field. r=heycam
MozReview-Commit-ID: FFqYJ3icRd7

--HG--
extra : rebase_source : 2ba1caff6676a3af769e8aac58a19e9d9de81254
2017-03-22 16:55:56 +08:00
Mike Conley
a4439189a7 Bug 1350243 - Combine e10s and non-e10s code paths when reacting to datalist updates. r=MattN
MozReview-Commit-ID: 1O3wAzzwWAR

--HG--
extra : rebase_source : 74a698ad29b4df25eddf9a3381dc742e3bb66a96
2017-04-06 16:39:08 -04:00
Johann Hofmann
c7f84eacc4 Bug 1337772 - Part 1 - Use mousedown instead of contextmenu to avoid showing the password autocomplete. r=MattN
MozReview-Commit-ID: EUZ1f6Qdm0c

--HG--
extra : rebase_source : e0b4f4f5d14407a831ca6efe4481f6c884682b39
2017-04-07 00:01:31 +02:00
Olli Pettay
d47c995985 Bug 1351860 - Move mType from HTMLInputElement to nsIFormControl and make GetType non-virtual inlined, r=jessica
--HG--
extra : rebase_source : b7d76ce3321ea0d622da74a72b7278fd0fa63310
2017-03-31 22:49:00 -04:00
Olli Pettay
31b1f5cc92 Backout Bug 1351860, r=backout 2017-03-31 16:55:32 -04:00
Olli Pettay
b84c192a09 Bug 1351860 - Move mType from HTMLInputElement to nsIFormControl and make GetType non-virtual inlined, r=jessica
--HG--
extra : rebase_source : 5f2cac2c4e944e2c9f2f1acf0d3064e153c40451
2017-03-31 13:13:36 -04:00
Boris Zbarsky
060aadda89 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
03aa46332c 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
e2ba9aed19 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
4642af4d8e Bug 1337772 - Fix intermittent browser_context_menu_autocomplete_interaction.js. r=MattN
MozReview-Commit-ID: 6vAWN4z2wRP

--HG--
extra : rebase_source : d16b3d8e84dbaf0c9cdb30d9043286f829922c17
2017-03-01 20:05:38 +01:00
Johann Hofmann
6591e6548f Bug 1337259 - Don't show password autocomplete upon a right click into the password field. r=mconley
MozReview-Commit-ID: JEODCfZOMRW

--HG--
extra : rebase_source : cbf2fe788f075e9c27b4f7ce162f08ee25dc2c5a
2017-02-10 12:45:26 +01:00
Luke Chang
3374d73693 Bug 1341582 - Apply form autofill to an already-focused input, r=MattN
MozReview-Commit-ID: C6zT7jKBb4c

--HG--
extra : rebase_source : 1154380e8b4a0c3be5443ac8044febe096f550ff
2017-02-23 14:44:07 +08:00
Matthew Noorenberghe
f54bfb10ae Bug 1330111 - Expose nsFormFillController's showPopup via nsIFormFillController. r=felipe
MozReview-Commit-ID: 9pc2QDDWTrQ
2017-02-03 12:44:49 -08:00
Matthew Noorenberghe
939f782a58 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
d14b1e4ab2 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
9164286e22 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
220298580e Backed out changeset dee4bf1753cd (bug 1330111) 2017-02-07 14:03:21 +01:00