Commit Graph

813579 Commits

Author SHA1 Message Date
Masayuki Nakano
ae2d6466aa Bug 1789967 - part 5: Mark all tests in webdriver/tests/element_send_keys/content_editable.py as known failures r=webdriver-reviewers,whimboo
According to the issue which added the test, the test intended that web driver
collapsing selection to end of the last editable text node at sending the text
do an editable element.  However, it seems that GeckoDriver does not do it but
the test accidentally passed since `HTMLEditor` has collapsed selection to end
of last leaf node even if the node is not editable.  Therefore, the test does
not check what the author expected enough (e.g., when there is another node
at end of the `<body>`, when there is a collapsed selection range outside
editor, when another editable element has focus).

Therefore, we can just mark the tests as known failures since we've not
explicitly support the behavior yet.

Differential Revision: https://phabricator.services.mozilla.com/D157777
2022-09-22 06:27:38 +00:00
Masayuki Nakano
fc89971ea6 Bug 1789967 - part 4: Make HTMLEditor::SelectAllInternal work without selection range r=m_kato
It may be called even when there is no selection range and focused element.
However, it assumes that there is a selection range, and an editable element
has focus.  Therefore, now, if there is an editing host and user tries to
do "Select All" without clicking somewhere before doing it, "Select All" does
nothing.

Differential Revision: https://phabricator.services.mozilla.com/D157409
2022-09-22 06:27:38 +00:00
Masayuki Nakano
a353ab7e90 Bug 1789967 - part 3: Make HTMLEditor::CollapseSelectionToEndOfLastLeafNodeOfDocument and HTMLEditor::InitEditorContentAndSelection do nothing if the document is partially editable r=m_kato
They and their callees work with the result of `GetRoot()` which is the document
element or the body element.  If the body is not editable, `Selection` should
not be updated in non-editable region nor `<br>` elements should not be
inserted in both non-focused editable elements and non-editable elements.
Therefore, they should run only when the document element or the `<body>`
element is editable.

To keep testing crashtests as reported, this patch makes tests which have
`contenteditable` except `<html>` and `<body>` initialize `Selection` as
what we've done.  And clean up the tests for helping to port them to WPT
in the future (bug 1725850).

Differential Revision: https://phabricator.services.mozilla.com/D157408
2022-09-22 06:27:37 +00:00
stransky
b1f3f5e5af Bug 1744148 [Linux] Don't crash if we get configure event for hidden window r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D157820
2022-09-22 06:24:38 +00:00
Masayuki Nakano
2f0ed118ae Bug 1789967 - part 2: Make TextEditor and HTMLEditor implement EditorBase::CollapseSelectionToEndOfLastLeafNode by themselves r=m_kato
It does different thing for `TextEditor` and `HTMLEditor`, and used almost
internally.  Therefore, it should be implemented in the sub classes and
we should name them better.

Differential Revision: https://phabricator.services.mozilla.com/D157407
2022-09-22 06:17:36 +00:00
Masayuki Nakano
f1dd8bf3b5 Bug 1789967 - part 1: Make TextEditor and HTMLEditor implement EditorBase::InitEditorContentAndSelection by themselves r=m_kato
The method is enough simple, and uses bad cast from point of view of OOP.
Therefore, this patch make the sub classes implement the method only for each.

Differential Revision: https://phabricator.services.mozilla.com/D157406
2022-09-22 06:06:54 +00:00
Henrik Skupin
1623caf260 Bug 1790295 - [wdspec] Remove multiple test states for tests failing after AWS to GCP migration. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157778
2022-09-22 05:57:03 +00:00
Norisz Fay
f6c4f2c950 Backed out changeset b5f9a98c4e2e (bug 1789779) as requested by dev CLOSED TREE 2022-09-22 09:01:33 +03:00
Hiroyuki Ikezoe
386cb32f1a Bug 1713364 - Check whether the presshell is still valid before calling PostRestyleForThrottledAnimations. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D157887
2022-09-22 04:59:44 +00:00
Marian-Vasile Laza
e79d9ff2ca Merge mozilla-central to autoland. a=merge CLOSED TREE 2022-09-22 07:58:00 +03:00
Boris Chiou
8b587cf6c1 Bug 1789447 - Part 2: Drop @scroll-timeline rule entirely. r=emilio,hiro
This rule is not used in tests and should be removed per spec.

Differential Revision: https://phabricator.services.mozilla.com/D157249
2022-09-22 03:47:11 +00:00
Boris Chiou
8250077606 Bug 1789447 - Part 1: Drop the usage of @scroll-timeline from animation builder. r=hiro
@scroll-timeline rule was removed from the spec and wpt, so it's safe to
remove this from Gecko.

Differential Revision: https://phabricator.services.mozilla.com/D157248
2022-09-22 03:47:11 +00:00
Boris Chiou
6b12ad64d3 Bug 1786568 - Fix wpt sync. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D157878
2022-09-22 02:12:59 +00:00
Marian-Vasile Laza
d52d4670ed Backed out changeset 1efa06d7902a (bug 1784202) for causing mochitest failures. CLOSED TREE 2022-09-22 04:44:50 +03:00
Marian-Vasile Laza
dca276a235 Backed out changeset 1efa06d7902a (bug 1784202) for causing mochitest failures. CLOSED TREE 2022-09-22 04:44:50 +03:00
Marian-Vasile Laza
c3747bcd67 Backed out 2 changesets (bug 1791017, bug 1740526) for causing reftest failures on colrv1-01.html. CLOSED TREE
Backed out changeset 3ca91d34f126 (bug 1740526)
Backed out changeset df138324dd6b (bug 1791017)
2022-09-22 03:45:25 +03:00
Marian-Vasile Laza
3addcb6dd7 Backed out 2 changesets (bug 1791017, bug 1740526) for causing reftest failures on colrv1-01.html. CLOSED TREE
Backed out changeset 3ca91d34f126 (bug 1740526)
Backed out changeset df138324dd6b (bug 1791017)
2022-09-22 03:45:25 +03:00
Ben Hearsum
c71dcf9398 Bug 1791757: PiP windows opened by private browsing window use regular Firefox taskbar icon r=mconley
I didn't realize that PiP windows had taskbar icons when I dealt with the other chrome windows in https://bugzilla.mozilla.org/show_bug.cgi?id=1766636 -- the fix is essentially the same.

Differential Revision: https://phabricator.services.mozilla.com/D157849
2022-09-22 00:35:31 +00:00
Neill Miller
627d6fe873 Bug 1768907 - Part 2: nsTransferable disk-leaks when private browsing mode is enabled by default. r=handyman
nsTransferable was modified to prevent disk leakings when copying data
in private browsing mode with Bug 1123480.
However, the context is nullptr when it is initialized, so it still
leaks if PBM is enabled by default.
Our solution is to check the browser.privatebrowsing.autostart in this
condition.

Differential Revision: https://phabricator.services.mozilla.com/D157800
2022-09-22 00:26:17 +00:00
Pier Angelo Vendrame
aa21b01cfa Bug 1768907 - Part 1: Make browser.privatebrowsing.autostart a static pref. r=handyman,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D157843
2022-09-22 00:26:17 +00:00
Paul Adenot
93d6b111c7 Bug 1791839 - Update cubeb to revision 4783607. r=cubeb-reviewers,kinetik
Depends on D157856

Differential Revision: https://phabricator.services.mozilla.com/D157880
2022-09-22 00:22:03 +00:00
Paul Adenot
b7eeae5027 Bug 1791839 - Remove OpenSLESProvider.cpp, update cubeb vendoring manifest. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D157856
2022-09-22 00:22:03 +00:00
Boris Chiou
38cba0f692 Bug 1776077 - Fix delay phase for scroll animations in the compositor thread. r=hiro
Basically, we need to detect a case if there is only scroll animations
which are not sampled because it goes back to before phase. If this
happens, we set ScrollToDelay to |mReason| in the returned value.

Without this patch, the visual result is intermittent because it
is possible that there are new animations arrived at the moment when
scrolling from active phase to before phase.

We don't have a test for after phase because we don't support end delay
for scroll animations now. However, although we set the adjusted fill, we may
still need this in the future so let's keep the check of after phase for now.

Differential Revision: https://phabricator.services.mozilla.com/D155108
2022-09-22 00:06:10 +00:00
Boris Chiou
f8e123fcca Bug 1776077 - Factor out the handle of storing animated value in SampleAnimations(). r=hiro
Make SampleAnimations() simpler and we may use this in the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D156609
2022-09-22 00:06:10 +00:00
Boris Chiou
0914c374d2 Bug 1776077 - Drop unused AnimationInfo::SetCompositorAnimations(). r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D156608
2022-09-22 00:06:10 +00:00
Boris Chiou
f3c02562e4 Bug 1776077 - Drop @scroll-timeline from omta tests. r=hiro
@scroll-timeline rule was dropped from the spec, so let's use new syntax.

Differential Revision: https://phabricator.services.mozilla.com/D155127
2022-09-22 00:06:09 +00:00
Tooru Fujisawa
b270506fd9 Bug 1791292 - Expose nsresult for file-not-found error. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D157700
2022-09-21 23:58:54 +00:00
Shane Hughes
6a17046678 Bug 1790888 - Add some HCM styles for Firefox View. r=Gijs
Apply the usual HCM hover style to buttons in Firefox View, but also
override some of the custom properties for HCM so that Emily's patch for
bug 1790396 can use the same custom properties for feature callout hover
styles that we use in system content generally.

Differential Revision: https://phabricator.services.mozilla.com/D157364
2022-09-21 23:22:30 +00:00
Boris Chiou
ccee4d2b39 Bug 1786568 - AspectRatio invalidation should check mUseBoxSizing as well. r=emilio
Basically, we have to inavliadate the layout if AspectRatio gets changed.
In the test case, it's possible to retrieve the aspect-ratio from the
mapped attribute at the beginning. After the image gets loaded, we retrieve
the aspect-ratio from the image itself (i.e. natural aspect-ratio). Both
AspectRatio objects use different |mUseBoxSizing|s which have impact on
the calculation of the ratio-dependent size, so we have to trigger the
invalidation if the flag is changed, even if |mRatio| is the same.

It's a race condition, so the test case fails intermittently without this patch.
After applying this patch, we should always pass this reftest.

Differential Revision: https://phabricator.services.mozilla.com/D157763
2022-09-21 23:17:25 +00:00
Sam Foster
ce8726255c Bug 1791652 - Wait for setup to be hidden before checking for tabs container properties in test. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D157859
2022-09-21 22:59:24 +00:00
Daisuke Akatsuka
042de19c2e Bug 1790814: Depends on existing tabs to change the tab to open about:addons page. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D157400
2022-09-21 22:58:47 +00:00
Daisuke Akatsuka
1c743a3e5d Bug 1790814: 'View Add-ons' action shows always 'addons://discover/'. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D157399
2022-09-21 22:58:47 +00:00
Karl Tomlinson
d53aebc2f4 Bug 1791604 initialize mSuspendedByChrome according to state of Window r=padenot
The AudioContext can be created in a suspended Window after sync
XMLHttpRequest, because the resume after `send()` runs off an event dispatched
after rather than a synchronous resume when its nested event loop unwinds.
https://searchfox.org/mozilla-central/rev/0948667bc62415d48abff27e1405fb4ab4d65d75/dom/xhr/XMLHttpRequestMainThread.cpp#2801,3041,3073

Differential Revision: https://phabricator.services.mozilla.com/D157767
2022-09-21 22:38:48 +00:00
Karl Tomlinson
eb2a6df077 Bug 1791604 test AudioContext creation after sync XMLHttpRequest r=padenot
Based on testcase by Jason Kratzer <jkratzer@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D157766
2022-09-21 22:38:48 +00:00
Daisuke Akatsuka
3135e1b982 Bug 1791020: Adjust vertical position for general help button. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D157539
2022-09-21 21:47:12 +00:00
Emilio Cobos Álvarez
f4b89f79c7 Bug 1791503 - Don't use stack layout on the root box frame. r=TYLin
Let it stretch instead. This shouldn't change behavior since the root
box frame only supports a single child.

Differential Revision: https://phabricator.services.mozilla.com/D157701
2022-09-21 21:19:12 +00:00
Ryan VanderMeulen
0109742091 Bug 1784692 - Revert focus behavior for new windows introduced by bug 1770818. a=backout 2022-09-21 14:08:31 -04:00
Oriol Brufau
1708933e21 Bug 1791402 - Take all fragments into account for last remembered size. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D157659
2022-09-21 20:19:56 +00:00
Oriol Brufau
9ce845742c Bug 1791375 - Handle multiple fragments in ResizeObserver. r=emilio
As per CSSWG resolution: https://github.com/w3c/csswg-drafts/issues/3673

Some details are not clear, so implement it behind a pref, disabled by
default.

Differential Revision: https://phabricator.services.mozilla.com/D157641
2022-09-21 20:19:55 +00:00
Oriol Brufau
13f2137f7d Bug 1791375 - Switch ResizeObserver APIs to using an array of sizes. r=emilio
This is in preparation of supporting multiple fragments, since we should
track each fragment size separately.

This patch should have no observable effect.

Differential Revision: https://phabricator.services.mozilla.com/D157640
2022-09-21 20:19:55 +00:00
Oriol Brufau
0b1bad6f6b Bug 1791375 - Switch ResizeObserver APIs from gfx::Size to LogicalPixelSize. r=emilio
This is in preparation of supporting multiple fragments, since we want
to track the logical sizes, and fragments might potentially have
different writing modes (but not sure if it can happen in practice).

This patch should have no observable effect.

Differential Revision: https://phabricator.services.mozilla.com/D157639
2022-09-21 20:19:54 +00:00
Mike Hommey
70cdc9a963 Bug 1784202 - Update builders to clang 15. r=firefox-build-system-reviewers,andi
We keep clang 14 for webrender-wrench for now, because of bug 1789346.

Differential Revision: https://phabricator.services.mozilla.com/D155532
2022-09-21 20:11:34 +00:00
Marian-Vasile Laza
5fcef31e81 Backed out changeset 0814312de5e4 (bug 1775522) for causing xpcshell failures on marSuccessCompleteSvc.js. CLOSED TREE 2022-09-21 23:12:21 +03:00
Jonathan Kew
22cd421fa7 Bug 1740526 - Let OTS validate the COLR/CPAL tables. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D157476
2022-09-21 19:20:05 +00:00
Jonathan Kew
24babe6854 Bug 1791017 - Update OTS to 9.0.0. r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D157474
2022-09-21 19:20:05 +00:00
Ryan VanderMeulen
535e2e0002 Bug 1791290 - Update HarfBuzz to 5.2.0. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D157590
2022-09-21 19:19:27 +00:00
Mozilla Releng Treescript
4d7efe6e6f no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
cy -> e81f9b664393d32d7f16d44c13f58ed762226d2d
it -> 8470c8950ac1fc9d46a657ccef9f95550434d41f
nn-NO -> 0b3573b84109b020cf3a030c306c7115831e635c
si -> bbe5af854331e4f155465112d950652702e87a25
te -> 9fe53ff76119c301d6ca0781d6a3ee5b0d2b057e
tg -> c722efd468eb97e661e2d1759c0c2f0de9c19a0e
2022-09-21 19:05:37 +00:00
Nolan Ishii
65b37979bb Bug 1788932 - Convert browser/actors/BrowserTab* JSM modules to ESMs r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D157036
2022-09-21 18:56:08 +00:00
ahochheiden
dcace1d43f Bug 1784232 - part 2: Vendor mozilla-repo-urls at 0.1.0 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D157852
2022-09-21 18:35:31 +00:00
Andrew Creskey
e8306f0cbe Bug 1791837 - Add documentation for PerfStats r=jesup DONTBUILD
Initial documentation for new users.

Differential Revision: https://phabricator.services.mozilla.com/D157854
2022-09-21 18:24:42 +00:00