Dave Townsend
201e447fd0
Bug 1855427: The DOMLinkRemoved chrome event is not used anywhere. r=emilio
...
The event isn't dispatched correctly for DOM manipulations anymore. It is
dispatched when swapping docshells but we don't actually use this event anywhere
except tests so we might as well just remove it entirely.
Differential Revision: https://phabricator.services.mozilla.com/D192333
2023-10-31 15:10:43 +00:00
Sandor Molnar
2fb40c1d8a
Bug 1856109 - Fix build bustages on dom/html/HTMLDialogElement.cpp CLOSED TREE
2023-10-31 17:02:36 +02:00
Sean Feng
94ee2559f5
Bug 1856109 - Allow <dialog> to move back to previously focused element even if they are in different BC r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D190957
2023-10-31 13:55:05 +00:00
Tom Schuster
aafc425b7f
Bug 1854112 - Add showPicker method to <select> elements. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D189675
2023-10-31 09:36:16 +00:00
Vincent Hilla
2dcab181ae
Bug 1648733 - Report invalid and hidden form controls to console. r=dom-core,jjaschke
...
Differential Revision: https://phabricator.services.mozilla.com/D189459
2023-10-30 11:48:49 +00:00
Vincent Hilla
3f852adf17
Bug 1855633 - Part 2: Activation behavior method for button element. r=edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D183989
2023-10-30 09:39:27 +00:00
Vincent Hilla
b88dc29857
Bug 1855633 - Part 1: Use activation behavior for submit and image input type. r=edgar
...
Differential Revision: https://phabricator.services.mozilla.com/D187185
2023-10-30 09:39:26 +00:00
Emilio Cobos Álvarez
0eefa79090
Bug 1861346 - Update indeterminate state when getting added or removed from a radio group. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D191949
2023-10-27 15:30:45 +00:00
Natalia Csoregi
83dddf03ae
Backed out changeset 630864299a19 (bug 1856109) for causing Bug 1861451. CLOSED TREE
2023-10-27 17:19:52 +03:00
sunil mayya
8ce40ef93d
Bug 1851992 - implement nsIThreadRetargetableStreamListener::OnDataFinished to multiple listeners. r=necko-reviewers,extension-reviewers,jesup,rpl
...
Differential Revision: https://phabricator.services.mozilla.com/D187833
2023-10-27 13:30:11 +00:00
Ziran Sun
54f7be0077
Bug 1858912
- Refine popover focusing steps to follow the specs. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D190917
2023-10-27 13:02:17 +00:00
Mark Banner
6119729476
Bug 1860988 - Enable ESLint rule no-useless-return on all of dom/*. r=dom-core,mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D191848
2023-10-27 12:43:03 +00:00
Sean Feng
c51359e1e6
Bug 1856109 - Allow <dialog> to move back to previously focused element even if they are in different BC r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D190957
2023-10-26 13:48:11 +00:00
Emilio Cobos Álvarez
0cc6566d47
Bug 1860041 - Make sure frameloader is initialized after lazy-loading if there's a frame. r=CanadaHonk
...
Differential Revision: https://phabricator.services.mozilla.com/D191750
2023-10-24 15:06:17 +00:00
Narcis Beleuzu
722f6a1679
Backed out 6 changesets (bug 1851992) for DT failure on browser_net_image_cache.js . CLOSED TREE
...
Backed out changeset 3ceaf46f8f55 (bug 1851992)
Backed out changeset c9d322362e22 (bug 1851992)
Backed out changeset 673df3f83249 (bug 1851992)
Backed out changeset 46e18c56dd39 (bug 1851992)
Backed out changeset f9f9143ac713 (bug 1851992)
Backed out changeset 38c40d735ab7 (bug 1851992)
2023-10-24 13:16:40 +03:00
sunil mayya
1acfb3f11f
Bug 1851992 - implement nsIThreadRetargetableStreamListener::OnDataFinished to multiple listeners. r=necko-reviewers,extension-reviewers,jesup,rpl
...
Differential Revision: https://phabricator.services.mozilla.com/D187833
2023-10-24 01:48:09 +00:00
Mirko Brodesser
dc52b1401a
Bug 1839315: part 6) Lift code for `fetchpriority` attribute from `nsGenericHTMLElementWithFetchPriorityAttribute` to `nsGenericHTMLElement`. r=smaug
...
As requested in the review of part 1.
Differential Revision: https://phabricator.services.mozilla.com/D191274
2023-10-23 08:14:51 +00:00
Mirko Brodesser
06401bfd3f
Bug 1839315: part 2) Add `fetchPriority` attribute to HTMLLinkElement's DOM interface. r=necko-reviewers,webidl,saschanaz,valentin
...
Setting the internal priority depending on the `fetchPriority` will be
implemented in a following part.
Differential Revision: https://phabricator.services.mozilla.com/D189936
2023-10-23 08:14:50 +00:00
Mirko Brodesser
5ccc34b836
Bug 1839315: part 1) Lift code for `fetchpriority` attribute from `HTMLScriptElement` to `nsGenericHTMLElementWithFetchPriorityAttribute`. r=smaug
...
Since the HTMLLinkElement requires it too, see part 2.
Differential Revision: https://phabricator.services.mozilla.com/D189935
2023-10-23 08:14:49 +00:00
CanadaHonk
2e45b3450f
Bug 1622090 - Implement loading=lazy for <iframe> r=emilio
...
Initial implementation for <iframe loading=lazy>
Also cleaned up some image lazy loading to be generalised
(sharing an intersection observer and some enums/funcs in Element).
Unimplemented details:
- Window load should not wait for in view lazy loading iframes.
Unplanned for this patch and ship for now.
(Chromium fail, WebKit pass)
We also pass some other WPTs other engines do not too already too.
Also added a WPT to ensure using parse-time base URI for lazy -> eager iframes.
Differential Revision: https://phabricator.services.mozilla.com/D190662
2023-10-18 14:13:29 +00:00
Masayuki Nakano
e5434d6609
Bug 1858804 - Make `TextControlState::GetIMEContentObserver()` return `nullptr` if it observes for `HTMLEditor` r=smaug
...
`<input>` and `<textarea>` can be an editing host. If so, setting focus to
the elements causes `IMEContentObserver` observing HTML editing under the
text control element instead of observing the native anonymous tree for the
elements. Therefore, if `IMEContentObserver` observes it with `HTMLEditor`,
it does not need to notify `IMEContentObserver` of the `value` changes.
Differential Revision: https://phabricator.services.mozilla.com/D191163
2023-10-18 07:36:34 +00:00
Daniel Holbert
3a2501e3dc
Bug 1859025: Add some profiler markers as guideposts for what's going on during long print operations. r=profiler-reviewers,canaltinova
...
This patch adds a new layout profiling sub-category "LAYOUT_Printing" for the
markers added here.
I'm adding an "interval"-type marker ("AUTO_PROFILER_MARKER_TEXT") for the
function-calls that seem likely to occupy measurable amounts of time (due to
touching the filesystem or printer driver), vs. single-point-in-time markers
("PROFILER_MARKER_TEXT") for functions whose duration isn't particularly long
or interesting, or whose durations we're already measuring with other
closely-associated interval-markers.
Differential Revision: https://phabricator.services.mozilla.com/D191001
2023-10-18 05:34:50 +00:00
Cristina Horotan
ea9336a2ca
Backed out 5 changesets (bug 1851992) for causing multiple failures
...
Backed out changeset d28399b3d947 (bug 1851992)
Backed out changeset 95e4df69007a (bug 1851992)
Backed out changeset fa61d4e76827 (bug 1851992)
Backed out changeset 79969d9eb5cd (bug 1851992)
Backed out changeset 03c17255f1af (bug 1851992)
2023-10-17 14:48:23 +03:00
sunil mayya
f350089afd
Bug 1851992 - implement nsIThreadRetargetableStreamListener::OnDataFinished to multiple listeners. r=necko-reviewers,extension-reviewers,jesup,rpl
...
Differential Revision: https://phabricator.services.mozilla.com/D187833
2023-10-17 08:27:49 +00:00
Andrew Osmond
0329c1aaba
Bug 1850871 - Resize canvas in ImageBitmapRenderingContext::TransferFromImageBitmap. r=gfx-reviewers,lsalzman
...
This patch makes it so that when a new ImageBitmap is provided to an
ImageBitmapRenderingContext, we resize its owning canvas rather than
crop or scale the given ImageBitmap to fit inside the canvas dimensions.
See discussion in https://github.com/whatwg/html/issues/7833 .
Differential Revision: https://phabricator.services.mozilla.com/D188126
2023-10-16 11:23:43 +00:00
Sylvestre Ledru
1e776756dd
Bug 1856795 - ride along: use = default; on some recently modified files r=emilio
...
More on:
https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html
Command:
L=$(hg export -r tip|grep +++|cut -d/ -f2-)
./mach static-analysis check --checks="-*, modernize-use-equals-default" --fix $L
Differential Revision: https://phabricator.services.mozilla.com/D191016
2023-10-15 15:29:03 +00:00
Sylvestre Ledru
d0f6c7fc66
Bug 1856795 - Remove redundant member init r=emilio
...
Done with:
./mach static-analysis check --checks="-*, readability-redundant-member-init" --fix .
https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-member-init.html
Differential Revision: https://phabricator.services.mozilla.com/D190002
2023-10-15 15:29:02 +00:00
Cristina Horotan
6a90f5eded
Backed out 2 changesets (bug 1856795) for causing build bustage at BasicEvents.h CLOSED TREE
...
Backed out changeset 1d98b028923a (bug 1856795)
Backed out changeset eae2ac93e17c (bug 1856795)
2023-10-14 21:42:14 +03:00
Sylvestre Ledru
c164bd9937
Bug 1856795 - ride along: use = default; on some recently modified files r=emilio
...
More on:
https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html
Command:
L=$(hg export -r tip|grep +++|cut -d/ -f2-)
./mach static-analysis check --checks="-*, modernize-use-equals-default" --fix $L
Differential Revision: https://phabricator.services.mozilla.com/D191016
2023-10-14 17:34:27 +00:00
Sylvestre Ledru
cc8a0ee742
Bug 1856795 - Remove redundant member init r=emilio
...
Done with:
./mach static-analysis check --checks="-*, readability-redundant-member-init" --fix .
https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-member-init.html
Differential Revision: https://phabricator.services.mozilla.com/D190002
2023-10-14 17:34:26 +00:00
Mark Banner
e43869f6d6
Bug 1857866 - Enable ESLint rule mozilla/reject-importGlobalProperties on all of dom/. r=dom-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D190434
2023-10-13 08:56:11 +00:00
Noemi Erli
e5c9fdc125
Backed out 6 changesets (bug 1857866) for causing mochitest failures in test_bug403852.html CLOSED TREE
...
Backed out changeset d3a20047a9d3 (bug 1857866)
Backed out changeset ac8e95c253a9 (bug 1857866)
Backed out changeset c2d4c9575248 (bug 1857866)
Backed out changeset 521a5e8cb17e (bug 1857866)
Backed out changeset 8d812ea48f5c (bug 1857866)
Backed out changeset de9146469632 (bug 1857866)
2023-10-13 00:27:57 +03:00
Mark Banner
3ad8e86d7c
Bug 1857866 - Enable ESLint rule mozilla/reject-importGlobalProperties on all of dom/. r=dom-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D190434
2023-10-12 16:49:47 +00:00
Emilio Cobos Álvarez
ac4f977dc8
Bug 1857506 - Localize final value if needed for input value setter. r=edgar
...
This restores pre-existing behavior, and adds tests.
Differential Revision: https://phabricator.services.mozilla.com/D190581
2023-10-10 15:12:10 +00:00
Andrew Halberstadt
4e2559a7a1
Bug 1833653 - Enable mochitest-plain on 'linux2204-64-wayland', r=jmaher,credential-management-reviewers,sgalich
...
Differential Revision: https://phabricator.services.mozilla.com/D190202
2023-10-10 14:19:11 +00:00
Emilio Cobos Álvarez
25c0d10932
Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu
...
Sorry this is not a particularly easy patch to review. But it should be
mostly straight-forward.
I kept Document::Dispatch mostly for convenience, but could be
cleaned-up too / changed by SchedulerGroup::Dispatch. Similarly maybe
that can just be NS_DispatchToMainThread if we add an NS_IsMainThread
check there or something (to preserve shutdown semantics).
Differential Revision: https://phabricator.services.mozilla.com/D190450
2023-10-10 08:51:12 +00:00
Mark Banner
3a2f5a75d2
Bug 1855697 - Enable ESLint rule no-implied-eval for all of dom/. r=dom-core,edgar
...
Depends on D189496
Differential Revision: https://phabricator.services.mozilla.com/D189497
2023-10-06 16:45:53 +00:00
Mark Banner
c7ac816c46
Bug 1855697 - Enable ESLint rule no-eval for all of dom/. r=dom-core,mccr8
...
Depends on D189495
Differential Revision: https://phabricator.services.mozilla.com/D189496
2023-10-06 16:45:53 +00:00
Ziran Sun
08eca17319
Bug 1838450 - Refine attribute handling. r=emilio
...
https://github.com/whatwg/dom/pull/1176
https://dom.spec.whatwg.org/#concept-element-attributes-change-ext
"attribute change steps" at https://html.spec.whatwg.org/multipage/popover.html#attr-popover
Differential Revision: https://phabricator.services.mozilla.com/D181880
2023-10-06 08:06:54 +00:00
Emilio Cobos Álvarez
18f9d7d65d
Bug 1817122
- Use a ToggleEvent for <details> toggle event. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D190060
2023-10-05 11:43:45 +00:00
Norisz Fay
6d520a7d38
Backed out changeset a879c4fcdc4f (bug 1817122
) for causing multiple failures CLOSED TREE
2023-10-05 04:29:13 +03:00
Emilio Cobos Álvarez
418a4e2a94
Bug 1817122
- Use a ToggleEvent for <details> toggle event. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D190060
2023-10-04 22:01:20 +00:00
Emilio Cobos Álvarez
50daad8922
Bug 1817122
- Make AsyncEventDispatcher(Event) take ownership of the event. r=smaug,media-playback-reviewers,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D190059
2023-10-04 19:37:39 +00:00
Emilio Cobos Álvarez
660e1cc638
Bug 1856628 - Remove WakeLock::IsDocumentInvisible and related code. r=pip-reviewers,mhowell
...
This was added for bug 1659060 and bug 1679314, but it is effectively
superseded by bug 1755748, which makes document.hidden false if PiP is
used.
Covered by toolkit/content/tests/browser/browser_media_wakelock_PIP.js
Differential Revision: https://phabricator.services.mozilla.com/D189940
2023-10-03 16:08:59 +00:00
scottjehl
29b1ce9751
Bug 1836128 - Implement source media for media elements and reference/update relevant platform tests r=padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D189416
2023-10-03 13:52:06 +00:00
Tom Marble
1ca03b1818
Bug 1855295 convert .ini manifests to .toml: batch 8 dom/[a-l]**/mochitest.ini r=jmaher,jgilbert,extension-reviewers,credential-management-reviewers,robwu,sgalich
...
Differential Revision: https://phabricator.services.mozilla.com/D189381
2023-10-02 17:18:28 +00:00
Emilio Cobos Álvarez
608d91f684
Bug 1856300 - Remove some unnecessary casts in HTMLMediaElement. r=padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D189750
2023-10-02 15:17:44 +00:00
Ziran Sun
1c9aec3c77
Bug 1850341 - Improve focus handling in hidepopover. r=emilio
...
Fix the previous handling of checking if focus is within the hierarchy.
Differential Revision: https://phabricator.services.mozilla.com/D186937
2023-09-29 12:47:09 +00:00
Jan Varga
c458754592
Bug 1855134 - Move existing MOZ_TRY macros to a dedicated header file; r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D189226
2023-09-28 20:46:07 +00:00
Adam Vandolder
3198d33ca2
Bug 1685926 - Group disconnected radio buttons together. r=saschanaz,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D162349
2023-09-28 15:47:11 +00:00