Граф коммитов

735966 Коммитов

Автор SHA1 Сообщение Дата
longsonr b18d8167d2 Bug 1679206 - Use nsPlaceholderFrame::GetRealFrameForPlaceholder in ViewportFrame.cpp r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D97936
2020-11-24 22:07:26 +00:00
Makoto Kato f081504642 Bug 1678962 - Add Hiragino Sans to font.name-list.sans-serif.ja. r=jfkthame
From macOS Catalina, Hiragino Kaku Gothic ProN and etc aren't instaleld with
clean install. And default sans-serif font for Japanese is Hiragino Sans.

Differential Revision: https://phabricator.services.mozilla.com/D97900
2020-11-24 10:25:05 +00:00
Narcis Beleuzu efbd3dc42f Backed out 2 changesets (bug 1645528) for leakcheck failures on nsTArray. CLOSED TREE
Backed out changeset df3577321bfe (bug 1645528)
Backed out changeset fbc13c3ea551 (bug 1645528)
2020-11-25 02:59:47 +02:00
Robert Mader ab78a14b26 Bug 1645528 - Code cleanups r=mattwoodrow
Remove dead code that was left in D93173 so file histories would
get preserved.

Depends on D93173

Differential Revision: https://phabricator.services.mozilla.com/D96934
2020-11-24 22:15:17 +00:00
Robert Mader d2fe090741 Bug 1645528 - Connect nsRefreshDrivers in content processes with a widget-local vsync source r=mattwoodrow,emilio
To allow `requestAnimationFrame()` and similar things to run at monitor
speed if there is only a window-specific vsyncsource available.
This is the case for Wayland and, in the future, EGL/X11. Other backends
may opt for window specific vsyncsources as well at some point.

The idea is to, instead of using global vsync objects, expose a vsyncsource
from nsWindow and use it for refresh drivers. For the content process, move
VsyncChild to BrowserChild, so for each Browserchild there is only one
VsyncChild to which all refresh drivers connect.

IPC in managed either by PBrowser or PBackground. Right now, PBrowser is
only used on Wayland, as both PBrowser and the Wayland vsyncsource run
on the main thread. Other backends keep using the background thread for
now.

While at it, make it so that we constantly update the refresh rate. This
is necessary for Wayland, but also on other platforms variable refresh rates
are increasingly common. When using PVsync, limit updates to once in every
250ms in order to minimize overhead while still updating fast.

How to test:
 - run the Wayland backend
 - enable `widget.wayland_vsync.enabled`
 - optionally: disable `privacy.reduceTimerPrecision`
 - run `vsynctester.com` or `testufo.com`

Expected results:
Instead of fixed 60Hz, things should update at monitor refresh rate -
e.g. 144Hz

Original patch by Kenny Levinsen.

Differential Revision: https://phabricator.services.mozilla.com/D93173
2020-11-24 23:47:54 +00:00
Emilio Cobos Álvarez c3096d1e25 Bug 1679009 - Simplify some getters in CSSPseudoElement and KeyframeEffect. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D97939
2020-11-24 23:58:33 +00:00
Emilio Cobos Álvarez 472511bebf Bug 1679050 - Backed out changeset 73181c2aa309 (bug 1455479) for having too many false positives. r=backout,a=NarcisB
MANUAL PUSH: Backout on a CLOSED TREE
2020-11-25 00:41:59 +01:00
Narcis Beleuzu 0d0dc5c19a Backed out changeset 1f42c376724d (bug 1645528) for leakcheck failures on nsTArray. CLOSED TREE 2020-11-25 01:28:12 +02:00
Robert Mader 5f53d70c95 Bug 1645528 - Connect nsRefreshDrivers in content processes with a widget-local vsync source r=mattwoodrow,emilio
To allow `requestAnimationFrame()` and similar things to run at monitor
speed if there is only a window-specific vsyncsource available.
This is the case for Wayland and, in the future, EGL/X11. Other backends
may opt for window specific vsyncsources as well at some point.

The idea is to, instead of using global vsync objects, expose a vsyncsource
from nsWindow and use it for refresh drivers. For the content process, move
VsyncChild to BrowserChild, so for each Browserchild there is only one
VsyncChild to which all refresh drivers connect.

IPC in managed either by PBrowser or PBackground. Right now, PBrowser is
only used on Wayland, as both PBrowser and the Wayland vsyncsource run
on the main thread. Other backends keep using the background thread for
now.

While at it, make it so that we constantly update the refresh rate. This
is necessary for Wayland, but also on other platforms variable refresh rates
are increasingly common. When using PVsync, limit updates to once in every
250ms in order to minimize overhead while still updating fast.

How to test:
 - run the Wayland backend
 - enable `widget.wayland_vsync.enabled`
 - optionally: disable `privacy.reduceTimerPrecision`
 - run `vsynctester.com` or `testufo.com`

Expected results:
Instead of fixed 60Hz, things should update at monitor refresh rate -
e.g. 144Hz

Original patch by Kenny Levinsen.

Differential Revision: https://phabricator.services.mozilla.com/D93173
2020-11-24 22:20:35 +00:00
Emilio Cobos Alvarez 0bac784233 Bug 1679156 - Disable "Current Page" checkbox in the Windows print dialog. r=bobowen
This was accidentally enabled when moving to the more modern print dialog API.

Differential Revision: https://phabricator.services.mozilla.com/D97933
2020-11-24 19:29:30 +00:00
Tom Schuster 0a5c89c984 Bug 1675240 - Stop using CallNonGenericMethod for RegExp.prototype getters. r=arai
This also implements an improved error message:
> TypeError: RegExp.prototype.global getter called on non-RegExp object: Math
This is similar to Chromes' message:
> RegExp.prototype.global getter called on non-RegExp object

Differential Revision: https://phabricator.services.mozilla.com/D95837
2020-11-24 21:50:13 +00:00
Jeff Muizelaar e8d0ea1988 Bug 1679180 - qcms: Remove some unneeded unsafe and extern "C". r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D97928
2020-11-24 19:42:35 +00:00
Dzmitry Malyshau 4a4e2b7a06 Bug 1655357 - Disable use of external textures on macOS in WebGPU r=aosmond
The external texture we create in WebGPU to present the canvas was taking
a different path on macOS with specific resolutions:
https://searchfox.org/mozilla-central/rev/85b84f82489451362a351b144fe5232a8e46c61c/gfx/layers/composite/TextureHost.cpp#590

Differential Revision: https://phabricator.services.mozilla.com/D97927
2020-11-24 19:43:31 +00:00
Jim Blandy 625017f3cd Bug 1678108: Invalidate DisplayItemCache entries when nsDisplayItem::RestoreState makes a change. r=miko
Partial fix.

If nsDisplayItem::RestoreState changes the state of an nsDisplayItem, that
invalidates any prior RetainedItems items sent to WebRender for it, and its
DisplayItemCache entry is invalid. Clear the cache index in the
nsDisplayItem.

RetainedDisplayListBuilder::PreProcessDisplayList doesn't have convenient access
to the DisplayItemCache, so don't clear the cache entry in the DisplayItemCache.
The cache itself will eventually realize the entry is unused and clear it.

Differential Revision: https://phabricator.services.mozilla.com/D97538
2020-11-21 22:56:42 +00:00
Robert Mader 95194022d1 Bug 1669275 - [WR/EGL/X11] Use GLX vsyncsource on mesa. r=stransky
This allows mesa to continue using the existing vsync implementation.

Differential Revision: https://phabricator.services.mozilla.com/D92466
2020-11-24 13:30:19 +00:00
André Bargull feb86ac641 Bug 1662977: Allow "maximumFractionDigits" option in Intl.NumberFormat to be less than the default minimum fraction digits. r=yulia
Implements the changes from the "has consensus" PR <https://github.com/tc39/ecma402/pull/471>.

The second pair of `DefaultNumberOption()` calls was inlined, because only the
fallback case is relevant anyway. Steps 12.d and 12.e from the spec PR were
combined into a single `if`-block. That way it also matches step 12.f more
closely.

Also changed the single `if` steps into an `if-else if` chain, because the
steps are mutually exclusive.

Depends on D95734

Differential Revision: https://phabricator.services.mozilla.com/D95735
2020-11-24 10:29:51 +00:00
André Bargull 30a7c547a0 Bug 1670062: Support "collation" option in Intl.Collator constructor. r=yulia
Implements the changes from the "has consensus" PR <https://github.com/tc39/ecma402/pull/459>.

Drive-by change:
- Enable a named groups RegExp test which wasn't enabled when bug 1362154 was implemented.

Differential Revision: https://phabricator.services.mozilla.com/D95734
2020-11-24 09:14:15 +00:00
Jan Horak c91827a4d2 Bug 1662552 Don't use temp filename in the print dialog when using flatpak; r=stransky
The fallback code is no longer required.

Differential Revision: https://phabricator.services.mozilla.com/D97599
2020-11-24 13:04:37 +00:00
Jan Horak fd06f27baf Bug 1675312 Fix flatpak detection; r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D97613
2020-11-24 12:41:58 +00:00
Martin Stransky 67b1b7685c Bug 1550074 - Firefox doesn't restart after being updated via package manager on Linux, r=jhorak
Regenerated the patch behalf of zawertun user.

Differential Revision: https://phabricator.services.mozilla.com/D97881
2020-11-24 10:53:57 +00:00
Magnus Melin 75d02b4702 Bug 1679148 - declare template for ParamTraits, so that Thunderbird builds succeed. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D97926
2020-11-24 14:44:29 +00:00
longsonr 93e54c5e35 Bug 1678947 - check placeholder frame is not null r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D97914
2020-11-24 13:31:06 +00:00
Magnus Melin dadc5f27cf Bug 1673931 - reinstate nsContentUtils #include "nsIURIWithSpecialOrigin.h" which is used by Thunderbird. r=sg DONTBUILD
From https://hg.mozilla.org/mozilla-central/rev/85bdc36c7591ae83275321c078d2183bf422c592

Differential Revision: https://phabricator.services.mozilla.com/D97924
2020-11-24 14:18:38 +00:00
Csoregi Natalia a810f4e72c Backed out changeset cf796da336c8 (bug 1678310) due to causing memory crashes. CLOSED TREE 2020-11-24 13:00:45 +02:00
Florent Viard fc9a18178f Bug 1674622 - Fixes timings/time fields for har import/export; r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D96210
2020-11-18 12:39:08 +00:00
Christoph Kerschbaumer a1c2ca7af2 Bug 1678310: Expose siteOriginNoSuffix on nsIPrincipal r=baku
Differential Revision: https://phabricator.services.mozilla.com/D97605
2020-11-24 09:04:56 +00:00
Jean-Yves Avenard 77767c56aa Bug 1676999 - P2. Disable windows hardware acceleration if the RDD crashed. r=mattwoodrow,mjf
Depends on D97753

Differential Revision: https://phabricator.services.mozilla.com/D97754
2020-11-24 06:38:29 +00:00
Jean-Yves Avenard 1ec040c4a0 Bug 1676999 - P1. Remove preference. r=bobowen
The RDD process can no longer work without having access to win32k ; enabling this pref would lead to a crash on Nightly and failure to work elsewhere.

Differential Revision: https://phabricator.services.mozilla.com/D97753
2020-11-20 17:22:51 +00:00
Masayuki Nakano 85b84f8248 Bug 1677684 - part 2: Make `ContentCache` cache character rects in last commit composition string for undoing the commit r=m_kato
Usually, IME sets selection and considers candidate list position at starting
new composition.  However, Apple Japanese IME sometimes consider the candidate
list position at retrieving the character rects before setting selection.
Therefore, we need to store last commit string's character rects, but don't
need to store it in long time because Kakutei-Undo is supported by Japanese
IMEs and they work only immediately after committing a composition.  E.g.,
after moving caret, it won't be available.

Depends on D97838

Differential Revision: https://phabricator.services.mozilla.com/D97839
2020-11-24 01:31:46 +00:00
Masayuki Nakano 0869a8137b Bug 1677684 - part 1: Make `ContentCache` manage composition start offset with `Maybe` instead of using a magic number r=m_kato
Currently, it manages the composition start offset with `uint32_t` and setting
it to `UINT32_MAX` when there is no composition.  But this is now rewritable
with `Maybe<uint32_t>` for easier to read.

Differential Revision: https://phabricator.services.mozilla.com/D97838
2020-11-23 09:29:34 +00:00
Jeff Gilbert caff5f6125 Bug 1679052 - Mark now-passing test.
Differential Revision: https://phabricator.services.mozilla.com/D97897
2020-11-23 21:48:44 +00:00
Renovate Bot b1cecbf72f Bug 1679065 - Update dependency pylint to v2.6.0 r=linter-reviewers,marco DONTBUILD
Reported here: https://github.com/sylvestre/gecko-dev/pull/207/files

Differential Revision: https://phabricator.services.mozilla.com/D97896
2020-11-23 21:22:30 +00:00
championshuttler 41d3960fca Bug 1679056 - Update to flake8 3.8.4.r=sylvestre
PR can be found here:
https://github.com/sylvestre/gecko-dev/pull/165

./mach lint -l flake8

Differential Revision: https://phabricator.services.mozilla.com/D97895
2020-11-23 20:27:21 +00:00
Andrey Bienkowski 0077ffa9ac Bug 1678314 - Add instructions to run mach lint to the contributors' quick reference. r=sylvestre,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D97585
2020-11-23 20:28:23 +00:00
Renovate Bot 4a5fc87a13 Bug 1679053 - Update dependency codespell to v2 r=linter-reviewers,championshuttler,marco DONTBUILD
PR can be found here:
https://github.com/sylvestre/gecko-dev/pull/309

Differential Revision: https://phabricator.services.mozilla.com/D97892
2020-11-23 20:19:36 +00:00
Sylvestre Ledru 6cc0abebf9 Bug 1679053 - Fix a typo in the doc r=linter-reviewers,championshuttler,marco DONTBUILD
Fix with:
$ ./mach lint -l codespell --fix

Differential Revision: https://phabricator.services.mozilla.com/D97891
2020-11-23 20:19:28 +00:00
Renovate Bot 97196a2329 Bug 1679054 - Update dependency sphinx-copybutton to v0.3.1 r=firefox-source-docs-reviewers,championshuttler DONTBUILD
Reported here:
https://github.com/sylvestre/gecko-dev/pull/227

Differential Revision: https://phabricator.services.mozilla.com/D97893
2020-11-23 20:04:24 +00:00
Simon Giesecke 123e0b6901 Bug 1660470 - Fix Linux AArch64 bustage. r=bustage-fix
Differential Revision: https://phabricator.services.mozilla.com/D97894
2020-11-23 19:54:38 +00:00
Jeff Gilbert 7c18ab1921 Bug 1679052 - Constrain src and dst rects for eldritch blitFramebuffer rects. r=lsalzman
E.g. Blitting 1,1,-1,-1 to 0,2,2,0.
Some drivers have trouble with this.

Primarily tested by:
* conformance2/rendering/blitframebuffer-filter-outofbounds.html
* conformance2/rendering/blitframebuffer-outside-readbuffer.html

Differential Revision: https://phabricator.services.mozilla.com/D97890
2020-11-23 19:54:41 +00:00
Kris Wright fdf4934ae9 Bug 1664916 - Add rosetta status for about:support r=fluent-reviewers,haik,Gijs
This commit adds a rosetta status to three different places:
- `nsSystemInfo`, to check for rosetta status per apple specifications. We also use the same check in `nsCocoaFeatures` in D89961.
- `Troubleshoot.jsm`, to add rosetta status data (should it exist) to use in about:support
- `About:Support` itself, if the device is running MacOS

Differential Revision: https://phabricator.services.mozilla.com/D94930
2020-11-23 19:36:29 +00:00
Markus Stange 62bf65b60d Bug 1672091 - Disable the fade-in animation on macOS Big Sur, to work around a macOS bug (FB8828157) that causes the panel shadow to be missing. r=dao
The fade-out animation is kept.

To work around the bug, the first paint of the panel window needs to be done at
full window opacity. Reducing the window opacity after the shadow has been
computed works correctly.

Differential Revision: https://phabricator.services.mozilla.com/D97863
2020-11-23 18:54:17 +00:00
Robert Mader c2fc1023f9 Bug 1679022 - Silence warnings about non-essential extensions during EGL init, r=jgilbert
We already explicitly warn if essential extensions are missing -
these warnings clutter debug logs quite a bit.

Differential Revision: https://phabricator.services.mozilla.com/D97883
2020-11-23 18:15:36 +00:00
Mihai Alexandru Michis 24d579a549 Backed out changeset fe5358bad29f (bug 1662552) for causing bustages in nsPrintDialogGTK.cpp
CLOSED TREE
2020-11-23 19:45:54 +02:00
Mihai Alexandru Michis af53dcea91 Backed out changeset f903eb4c6a07 (bug 1550074) for causing bustages in BinaryPath.h
CLOSED TREE
2020-11-23 19:21:55 +02:00
Cristina Coroiu f795b6e3c2 Backed out 2 changesets (bug 1654817) on request by aklotz
Backed out changeset bf721cd8ab14 (bug 1654817)
Backed out changeset fb1c314e6394 (bug 1654817)
2020-11-23 19:12:29 +02:00
Martin Stransky f9c110d75b Bug 1550074 - Firefox doesn't restart after being updated via package manager on Linux, r=jhorak
Regenerated the patch behalf of zawertun user.

Differential Revision: https://phabricator.services.mozilla.com/D97881
2020-11-23 15:31:28 +00:00
Jan Horak f560b8b61a Bug 1662552 Don't use temp filename in the print dialog when using flatpak; r=stransky
The fallback code is no longer required.

Differential Revision: https://phabricator.services.mozilla.com/D97599
2020-11-23 15:41:14 +00:00
Simon Giesecke 8fc9b0ee7c Bug 1677284 - Fix Windows AARch64 bustage. a=bustage-fix
CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D97884
2020-11-23 16:54:12 +00:00
Simon Giesecke 9e50b6ee02 Bug 1678562 - Avoid including AnimationEffect.h in Animation.h. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D97743

Depends on D97740
2020-11-23 16:12:55 +00:00
Simon Giesecke 32be7f4b06 Bug 1676357 - Hide dependencies of CompositableForwarder. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D97740

Depends on D97739
2020-11-23 16:12:50 +00:00