Commit Graph

813591 Commits

Author SHA1 Message Date
stransky
cb46f7b2dd Bug 1645677 [Wayland] Update EGLSurface when wl_surface is deleted r=emilio,jgilbert
When GtkWidget is hidden, underlying wl_surface is deleted. We need to also update EGLSurface of GtkWidget (GtkCompositorWidget)
as EGLSurface is directly linked to wl_surface:

- When GtkWidget is hidden, call GtkCompositorWidget::DisableRendering(). That releases GtkCompositorWidget resources
  related to GtkWidget (XWindow/XVisual etc.) and marks the widget as hidden.
- If GtkWidget is backed by EGL call compositor resume which forces compositor to create new EGLSurface.
- Make sure GLContextEGL can create EGLSurface even when GtkWidget is hidden and wl_surface is missing.
  It prevents fallback to SW rendering or pause RenderCompositorEGL which leads to Bug 1777664 (whole browser UI freeze).
- Return early from RenderCompositorEGL::BeginFrame()/RenderCompositorEGL::EndFrame() when GtkCompositorWidget is hidden.

Depends on D157357

Differential Revision: https://phabricator.services.mozilla.com/D157358
2022-09-22 09:41:04 +00:00
stransky
24d8cfd0dd Bug 1645677 [Wayland] Attach map/unmap signals to mContainer r=emilio
Map/Unmap signals creates and deletes mContainer wayland surface and EGL window.

As we need to call the handlers in correct order (mContainer::map -> nsWindow::map and nsWindow::unmap -> mContainer::unmap)
connect the signals to mContainer widget and call mContainer::unmap from nsWindow::unmap.

Then nsWindow::unmap can update compositor before wl_surface/EGL window is released by mContainer.

Differential Revision: https://phabricator.services.mozilla.com/D157357
2022-09-22 09:41:04 +00:00
Gabriele Svelto
8b0f8edb2c Bug 1791531 - Do not assume that the battery listener has been registered correctly on macOS r=haik
Differential Revision: https://phabricator.services.mozilla.com/D157719
2022-09-22 09:29:42 +00:00
Valentin Gosu
325aad0ef3 Bug 1549678 - Add pref whether to retry failed proxies r=necko-reviewers,kershaw
This is a regression from:
Bug 1494364 - don't prune proxy if all non-direct proxies are disabled

This pref preserves existing behaviour (and regression) but allows users to opt out of this behaviour which might cause slow browsing when the proxies are not responsive.

We might implement a proper fix for this problem in Bug 1791655.

Differential Revision: https://phabricator.services.mozilla.com/D157825
2022-09-22 08:37:37 +00:00
Mike Hommey
3ddbde0457 Bug 1791952 - Show suppressed warnings before warning summary. r=firefox-build-system-reviewers,andi
This makes the warning summary more visible at the end of the
build log.

Differential Revision: https://phabricator.services.mozilla.com/D157899
2022-09-22 08:03:02 +00:00
Mike Hommey
534b95e2e2 Bug 1791480 - Handle the situation when clang doesn't have the same default C++ standard for host and target. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D157799
2022-09-22 08:01:17 +00:00
Mike Hommey
5db5ac20e0 Bug 1791886 - Stop running file-whitespace lint on python files. r=sylvestre DONTBUILD
They are covered by flake8 and black.

Differential Revision: https://phabricator.services.mozilla.com/D157871
2022-09-22 07:56:23 +00:00
Jari Jalkanen
9cdfca5ed9 Bug 1791343 - Avoid parent queries for known entries. r=dom-storage-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D157619
2022-09-22 07:17:12 +00:00
Jari Jalkanen
066150cc8f Bug 1791343 - Return error from FileSystemDatabaseManager on request to list deleted folders. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D157824
2022-09-22 07:17:11 +00:00
Jari Jalkanen
68c0d6801c Bug 1791343 - Have rootId constant available in file system database manager. r=dom-storage-reviewers,jesup,janv
Differential Revision: https://phabricator.services.mozilla.com/D157646
2022-09-22 07:17:11 +00:00
Alexandre Lissy
be1fb026ce Bug 1666703 - Assert that we have more than one voice r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D157456
2022-09-22 06:55:52 +00:00
Mozilla Releng Treescript
c56b90f373 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
brx -> ce84e4ea6174b84c01534f3166bc2fbe9a6ab29e
es-MX -> c33d91ea0de33ea254cdb7b6747a154ba20818e8
lo -> 15b33fc2d739e49b09af1e3e670b15053928fe61
si -> c456c855ba5d518f942d0edbbc93198a90911429
2022-09-22 06:58:09 +00:00
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