Jan-Niklas Jaeschke
311f68ad19
Bug 1793485: Fixed memory issue in `NodeWillBeDestroyed()` for `MultiMutationObserver` classes. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D158671
2022-10-13 14:26:07 +00:00
Cristian Tuns
67ff6520de
Backed out changeset 928edafe970f (bug 1793485) for causing leaks CLOSED TREE
2022-10-12 17:09:32 -04:00
Jan-Niklas Jaeschke
e71ca074c5
Bug 1793485: Fixed memory issue in `NodeWillBeDestroyed()` for `MultiMutationObserver` classes. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D158671
2022-10-12 19:36:46 +00:00
Mark Banner
8d1ebcb9d6
Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Jan-Niklas Jaeschke
4265f72859
Bug 1777925: Replaced MutationObserver array container type with linked list. r=smaug
...
Deletion of mutation observers from a list resulted in O(n^2) behavior and could lead to massive freezes.
This is resolved by using a LinkedList instead, reducing complexity to O(n).
A safely iterable doubly linked list was implemented based on `mozilla::DoublyLinkedList`,
allowing to insert and remove elements while iterating the list.
Due to the nature of `mozilla::DoublyLinkedList`, every Mutation Observer now inherits `mozilla::DoublyLinkedListElement<T>`.
This implies that a Mutation Observer can only be part of one DoublyLinkedList.
This conflicts with some Mutation Observers, which are being added to multiple `nsINode`s.
To continue supporting this, new MutationObserver base classes `nsMultiMutationObserver` and `nsStubMultiMutationObserver` are introduced,
which create `MutationObserverWrapper` objects each time they are added to a `nsINode`.
The wrapper objects forward every call to the actual observer.
Differential Revision: https://phabricator.services.mozilla.com/D157031
2022-09-21 11:31:44 +00:00
issammani
b9b608626d
Bug 1780571 - Check if input is managed by LoginManager before saving it to FormHistory database. r=sgalich
...
Depends on D154389
Differential Revision: https://phabricator.services.mozilla.com/D154390
2022-09-15 03:20:09 +00:00
issammani
b883254038
Bug 1786927 - Consolidate the way we trigger autocomplete popup in tests. r=credential-management-reviewers,sgalich
...
Differential Revision: https://phabricator.services.mozilla.com/D156535
2022-09-12 19:20:27 +00:00
Sandor Molnar
817282d774
Backed out 3 changesets (bug 1767250) for causing mochitest plain failures in toolkit/components/satchel/test/test_datalist_attribute_change.html CLOSED TREE
...
Backed out changeset a0b66549fddc (bug 1767250)
Backed out changeset 0b5f5360e3d5 (bug 1767250)
Backed out changeset 801266de7621 (bug 1767250)
2022-08-24 21:36:58 +03:00
issammani
11967f6b54
Bug 1778179 - Remove duplicate definitions of waitForNextPopup. r=sgalich
...
Differential Revision: https://phabricator.services.mozilla.com/D155251
2022-08-24 18:11:05 +00:00
issammani
456a419cf6
Bug 1767250 - Update focus when type attribute changes. r=sgalich
...
Depends on D155246
Differential Revision: https://phabricator.services.mozilla.com/D155247
2022-08-24 17:43:03 +00:00
issammani
526b525615
Bug 1767250 - Control non-text inputs if they have a datalist. r=sgalich
...
Depends on D155245
Differential Revision: https://phabricator.services.mozilla.com/D155246
2022-08-24 17:43:02 +00:00
issammani
0aadd6dada
Bug 1767250 - Reproduce bug and add test to catch it. r=sgalich
...
Differential Revision: https://phabricator.services.mozilla.com/D155245
2022-08-24 17:43:02 +00:00
issammani
10b0dfd4c9
Bug 1780436 - Use querySelector in getFormElementByName instead of namedItem. r=sgalich
...
Differential Revision: https://phabricator.services.mozilla.com/D154670
2022-08-17 15:16:03 +00:00
Barret Rennie
833113a4cf
Bug 1772937 - Port osfile.jsm usage to IOUtils in toolkit/components/satchel/ r=adw
...
Differential Revision: https://phabricator.services.mozilla.com/D153703
2022-08-09 17:40:45 +00:00
Sergey Galich
ecf822d019
Bug 1776589 - use add_setup in form manager r=dimi
...
Depends on D153504
Differential Revision: https://phabricator.services.mozilla.com/D153510
2022-08-08 02:14:50 +00:00
Mark Banner
7428be4a86
Bug 1782008 - Remove now unnecessary .eslintrc.js files. r=webcompat-reviewers,extension-reviewers,media-playback-reviewers,pip-reviewers,denschub,rpl,alwu,mossop
...
Differential Revision: https://phabricator.services.mozilla.com/D152736
2022-08-03 11:16:20 +00:00
Sergey Galich
222eb511ad
Bug 1782132 - Upgrade toolkit/components/satchel/test/test_form_submission_cap.html and toolkit/components/satchel/test/test_form_submission_cap2.html r=dimi
...
[test_form_submission_cap.html](https://searchfox.org/mozilla-central/rev/4a15041348e08fb0d6f5726015c32861e663fbfe/toolkit/components/satchel/test/test_form_submission_cap.html ) and [test_form_submission_cap2.html](https://searchfox.org/mozilla-central/rev/4a15041348e08fb0d6f5726015c32861e663fbfe/toolkit/components/satchel/test/test_form_submission_cap2.html ) can be combined into one simpler and smaller test.
Differential Revision: https://phabricator.services.mozilla.com/D153219
2022-08-01 23:10:03 +00:00
Sergey Galich
cbc009dae0
Bug 1782409 - clear form history before running toolkit/components/satchel/test/test_form_submission.html r=dimi
...
We didn't clear history before, but now we can run tests with conditioned profile (one prefilled with data) or if previous test leaves data, we will fail.
This patch establish a clean test playground for toolkit/components/satchel/test/test_form_submission.html
Differential Revision: https://phabricator.services.mozilla.com/D153311
2022-08-01 23:07:10 +00:00
Sergey Galich
53fd3c2c76
Bug 1781162 - Upgrade toolkit/components/satchel/test/test_submit_on_keydown_enter.html r=dimi
...
Differential Revision: https://phabricator.services.mozilla.com/D152927
2022-07-28 04:43:23 +00:00
Sergey Galich
70e90f6a98
Bug 1780898 - Upgrade toolkit/components/satchel/test/test_popup_direction.html r=dimi
...
Differential Revision: https://phabricator.services.mozilla.com/D152584
2022-07-28 04:43:22 +00:00
Sergey Galich
bdc392f422
Bug 1780843 - Upgrade toolkit/components/satchel/test/test_popup_enter_event.html r=dimi
...
Differential Revision: https://phabricator.services.mozilla.com/D152546
2022-07-28 04:43:22 +00:00
Sergey Galich
fcd9411d41
Bug 1642570 - capture only user input for Form History r=dimi
...
We can skip checks for `input.value != input.defaultValue` by using `lastInteractiveValue` which tells us what user typed in the field.
Differential Revision: https://phabricator.services.mozilla.com/D150990
2022-07-28 04:43:21 +00:00
Tooru Fujisawa
a032f53a63
Bug 1780543 - Part 5: Add mozilla/chrome-script environment. r=Standard8
...
Differential Revision: https://phabricator.services.mozilla.com/D152430
2022-07-26 02:46:30 +00:00
Butkovits Atila
e4ed6292d5
Backed out changeset 6c4aa8e6fa0c (bug 1642570) for causing failures at test_popup_enter_event.html. CLOSED TREE
2022-07-22 01:03:52 +03:00
Sergey Galich
a9e99bef15
Bug 1642570 - capture only user input for Form History r=dimi
...
We can skip checks for `input.value != input.defaultValue` by using `lastInteractiveValue` which tells us what user typed in the field.
Differential Revision: https://phabricator.services.mozilla.com/D150990
2022-07-21 21:00:11 +00:00
Marian-Vasile Laza
5445ee5620
Backed out changeset 592b0b4a8424 (bug 1642570) for causing mochitest failures on test_popup_enter_event.html. CLOSED TREE
2022-07-21 18:09:37 +03:00
Sergey Galich
625ea657cb
Bug 1642570 - capture only user input for Form History r=dimi
...
We can skip checks for `input.value != input.defaultValue` by using `lastInteractiveValue` which tells us what user typed in the field.
Differential Revision: https://phabricator.services.mozilla.com/D150990
2022-07-21 13:36:19 +00:00
Andreea Pavel
4f2fe8d8d8
Bug 1481802 - update disabling condition to include all linux builds r=intermittent-reviewers,jmaher DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D151966
2022-07-18 05:45:46 +00:00
issammani
79c373ce5d
Bug 1263588 - Deduplicate autocomplete suggestions. r=sgalich
...
Differential Revision: https://phabricator.services.mozilla.com/D151033
2022-07-12 10:40:11 +00:00
Tooru Fujisawa
54623364da
Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Andreea Pavel
7738a75fdd
Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
...
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Tooru Fujisawa
8cd6ed7409
Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa
bf93d07148
Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
...
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Tooru Fujisawa
f3a8c52c53
Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
...
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Joel Maher
5b2dd6dd56
Bug 1769154 - Run some xpcshell tests with a conditioned profile. r=aryx,extension-reviewers,kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D149937
2022-06-22 16:47:06 +00:00
Bogdan Szekely
e43c058bda
Backed out changeset 7b707ff8a7d1 (bug 1769154) for causing xpcshell failures on test_system_upgrades.js
2022-06-22 17:17:10 +03:00
Joel Maher
0f3990e1cb
Bug 1769154 - Run some xpcshell tests with a conditioned profile. r=aryx,extension-reviewers,kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D149937
2022-06-22 13:03:46 +00:00
serge-sans-paille
021a1f90a0
Bug 1773809 - Cleanup devtools/platform and some toolkit/components includes r=sylvestre
...
Differential Revision: https://phabricator.services.mozilla.com/D148974
2022-06-12 20:31:53 +00:00
Tooru Fujisawa
b7a42d3b6b
Bug 1772101 - Part 38: Use plain object for lazy getter in toolkit/components/satchel/. r=MattN
...
Differential Revision: https://phabricator.services.mozilla.com/D147979
2022-06-07 04:31:04 +00:00
Tooru Fujisawa
f7650958c8
Bug 1772313 - Part 7: Stop calling XPCOMUtils.defineLazyModuleGetters for Services. r=kmag,webdriver-reviewers,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D148160
2022-06-06 04:42:06 +00:00
Molnar Sandor
77402a5caa
Backed out 15 changesets (bug 1772313, bug 1772351, bug 1772360) for causing xpc failures in telemetry/tests/unit/test_SocketScalars.js CLOSED TREE
...
Backed out changeset c8b0a2ed239e (bug 1772360)
Backed out changeset 1922adad6abe (bug 1772351)
Backed out changeset 6d3634cce489 (bug 1772351)
Backed out changeset f03968a9d053 (bug 1772351)
Backed out changeset e7a38ef90fe4 (bug 1772351)
Backed out changeset b389e7654771 (bug 1772313)
Backed out changeset 59a33598ff51 (bug 1772313)
Backed out changeset ab60885a8a93 (bug 1772313)
Backed out changeset aad8efac9d05 (bug 1772313)
Backed out changeset 4378e519a8e7 (bug 1772313)
Backed out changeset 302ac54741f8 (bug 1772313)
Backed out changeset 74c59f9fd51c (bug 1772313)
Backed out changeset 575fb877c56c (bug 1772313)
Backed out changeset 2eaa68f10b19 (bug 1772313)
Backed out changeset 4a8b3ba193dc (bug 1772313)
2022-06-06 07:04:25 +03:00
Tooru Fujisawa
fc45e50920
Bug 1772313 - Part 7: Stop calling XPCOMUtils.defineLazyModuleGetters for Services. r=kmag,webdriver-reviewers,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D148160
2022-06-06 02:49:10 +00:00
Sergey Galich
6c05dd488e
Bug 1771841 - use HTMLInputElement.isInstance(field) instead of ChromeUtils.getClassName(field) === "HTMLInputElement". r=dimi
...
Differential Revision: https://phabricator.services.mozilla.com/D147712
2022-05-31 12:39:18 +00:00
Tooru Fujisawa
c9c694b6b3
Bug 1610653 - Part 10: Do not use global this property assignment to define global variable in toolkit/components. r=Standard8,pip-reviewers,mhowell
...
Differential Revision: https://phabricator.services.mozilla.com/D144117
2022-05-30 15:19:39 +00:00
Dimi
3d7fc1d193
Bug 1768469 - Check the length of datalistItems r=sgalich
...
Differential Revision: https://phabricator.services.mozilla.com/D146875
2022-05-23 06:50:43 +00:00
Makoto Kato
0b5fd6ee3b
Bug 1474137 - Invalidate previous result when datalist is changed. r=mak
...
Even if `<datalist>` is dynamically changed, autocomplete controller still uses
previous search result. If changed, we have to ignore previous result that may
be invalid.
Also, even if `<datalist>` is changed, we have to keep selected index (Bug
595069), so we cannot use `ResetInternalState` at this situation. It resets
selected index.
Differential Revision: https://phabricator.services.mozilla.com/D116679
2022-05-10 01:45:30 +00:00
Sergey Galich
d4c212b3d0
Bug 1759385 - Remove unused setTextValueWithReason() r=mak
...
Differential Revision: https://phabricator.services.mozilla.com/D140935
2022-03-15 16:59:55 +00:00
Emilio Cobos Álvarez
fb38c597a4
Bug 1596852 - Handle parent-process <browser type=chrome> in JSWindowActors. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D132731
2021-12-10 22:34:10 +00:00
Sandor Molnar
a47a3ff348
Bug 1481802 - Disable test_form_submission.html on Linux64 for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D132616
2021-12-07 14:56:28 +00:00
Tooru Fujisawa
d35e49b80a
Bug 1617545 - Part 2: Make datalist item not removable in autocomplete drop down menu. r=MattN
...
Add nsIAutoCompleteResult.isRemovableAt method, to indicate whether the value
is removable, and do nothing for Shift+Delete on the item when the value is
not removable.
Depends on D131740
Differential Revision: https://phabricator.services.mozilla.com/D131741
2021-11-28 16:19:56 +00:00