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

19319 Коммитов

Автор SHA1 Сообщение Дата
Toshihito Kikuchi 0b6b4d9629 Bug 1711610 - Should not trigger the memory pressure event if the available commit space is not low. r=gsvelto
After bug 1586236, we use the memory resource notification object to detect a low
memory situation on Windows, which is signaled when the available physical memory
is low.  If the available physical memory is low, however, it's possible that there
is still commit space enough for the application to run.  In such a situation, we
don't want to make aggressive efforts to reduce memory usage.

This patch makes sure we send the memory pressure event (both New and Ongoing) only
when the available commit space is lower than the threshold value defined by the pref
"browser.low_commit_space_threshold_mb".  Its default value is set to 200MB
based on our telemetry data indicating ~60% of OOM crashes with <100MB, ~75% with <300MB.

To use the pref in `nsAvailableMemoryWatcher`, this patch moves the call to
`AvailableMemoryTracker::Init()` to `XRE_mainRun()`.  It was in `NS_InitXPCOM`
because the old initialization code hooked APIs and needed to be done while
the process has only one thread (bug 741540).  The current `AvailableMemoryTracker`
does not use hooks, so it doesn't have to be initialized that early.

Differential Revision: https://phabricator.services.mozilla.com/D115605
2021-05-24 21:29:46 +00:00
Masayuki Nakano 277c0f6994 Bug 1712269 - Make IMContextWrapper not use a set of composition if committed string is inserted without native composition signals r=m_kato
In GTK widget, we dispatch a set of composition events when IME or something
inserts text which is different from typing character or without tying a key.
However, this causes non-cancelable beforeinput event and Chromium on Linux
does not dispatch keyboard events nor composition events in this case, and the
beforeinput event in this case is cancelable.

Therefore, we should take same behavior as on macOS which was implemented by
bug 1520983.

Differential Revision: https://phabricator.services.mozilla.com/D115681
2021-05-24 05:57:07 +00:00
Jon Bauman 71b1259afd Bug 1712368 - update mp4parse-rust to dd96773. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D115718
2021-05-22 16:28:08 +00:00
Kagami Sascha Rosylight abd3d9776e Bug 1712147 - Add more missing MOZ_JXL checks r=tnikkel
This removes the check from static prefs, mainly since it's hard to check MOZ_JXL in JS side. It can be a bit confusing but generally shouldn't be harmful.

Differential Revision: https://phabricator.services.mozilla.com/D115704
2021-05-22 05:33:48 +00:00
Olli Pettay 19f47e75ab Bug 1708042, add control priority to the main thread, r=bas
Differential Revision: https://phabricator.services.mozilla.com/D115404
2021-05-21 15:46:45 +00:00
Iulian Moraru e0b2722506 Backed out 3 changesets (bug 1708042) for causing wr failures on background-color-animation-in-body.html.
Backed out changeset f8febc2db198 (bug 1708042)
Backed out changeset a0fccd7121b5 (bug 1708042)
Backed out changeset ddc6d95f0601 (bug 1708042)
2021-05-21 16:39:38 +03:00
Henri Sivonen 657ec5c70e Bug 1711476 - Enable chardetng for the .jp TLD. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D115452
2021-05-21 12:23:23 +00:00
Alexandru Michis 84d8f14b41 Backed out 9 changesets (bug 1700623) for causing bc failures in browser_history_menu.js
CLOSED TREE

Backed out changeset 5eae296ad8b5 (bug 1700623)
Backed out changeset 97c3add3b00a (bug 1700623)
Backed out changeset 7ab483627a27 (bug 1700623)
Backed out changeset a4e673640de5 (bug 1700623)
Backed out changeset 513ea16be430 (bug 1700623)
Backed out changeset 88b4add342df (bug 1700623)
Backed out changeset c13bdee1b526 (bug 1700623)
Backed out changeset 26df421dac02 (bug 1700623)
Backed out changeset 6cd0b7a269e5 (bug 1700623)
2021-05-21 11:43:54 +03:00
Agi Sferro 8595d5de61 Bug 1701269 - Remove ui.android.mouse_as_touch. r=botond,owlish
Differential Revision: https://phabricator.services.mozilla.com/D109924
2021-05-20 22:03:05 +00:00
Emilio Cobos Álvarez d455c7de64 Bug 1712130 - Make print.print_via_parent a static pref. r=layout-reviewers,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D115612
2021-05-20 17:05:33 +00:00
Andreea Pavel 87ae6eae9f Backed out 3 changesets (bug 1695911, bug 1648825) for bc failures at browser_navigation.js on a CLOSED TREE
Backed out changeset 1d7e78cac600 (bug 1695911)
Backed out changeset d90566e41269 (bug 1648825)
Backed out changeset 5aece2a17f5d (bug 1648825)
2021-05-20 18:59:30 +03:00
Andreas Farre a0d376b551 Part 9: Bug 1700623 - Notify main thread about storage updates periodically. r=asuth
This is used to update session store storage contents continuously.

Depends on D111435

Differential Revision: https://phabricator.services.mozilla.com/D114586
2021-05-20 12:48:24 +00:00
Olli Pettay 80a68b9bcf Bug 1708042, add control priority to the main thread, r=bas
Differential Revision: https://phabricator.services.mozilla.com/D115404
2021-05-20 12:42:31 +00:00
Tim Huang 4101564f3d Bug 1706606 - Part 2: Strip target query string for top-level redirects. r=valentin,necko-reviewers,dimi
We strip the target query string for top-level http redirects. We will only strip
if the redirect URI is a third-party URI.

Differential Revision: https://phabricator.services.mozilla.com/D114357
2021-05-20 11:22:13 +00:00
Tim Huang 7870615129 Bug 1706607 - Add prefs for the URL query string stripping. r=dimi
We add two prefs in this patch, including
'privacy.query_stripping.enabled' and
'privacy.query_stripping.strip_list'.

The pref 'privacy.query_stripping.enabled' is the general controller of
the URL query string stripping. And the pref
'privacy.query_stripping.strip_list' is the list of the query strings
that should be stripped from the URL.

Differential Revision: https://phabricator.services.mozilla.com/D113841
2021-05-20 11:22:11 +00:00
Niklas Goegge 89ec1c06e5 Bug 1695911 - Flip dom.security.secFetch.enabled pref to true. r=ckerschb,annevk
Differential Revision: https://phabricator.services.mozilla.com/D115484
2021-05-20 11:06:11 +00:00
Danilo Bargen b70d8a2bdb Bug 1695519 - Remove obsolete checks and references related to wyciwyg protocol. r=Gijs,annevk
Support for the wyciwyg protocol was removed two years ago (see bug 1489308).

Differential Revision: https://phabricator.services.mozilla.com/D114418
2021-05-20 08:41:29 +00:00
Jonathan Kew 5e9a828adc Bug 1711064 - patch 1 - Add a pref to control whether linkifying Save-as-PDF output is enabled. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D115514
2021-05-20 08:25:44 +00:00
alwu 8ef3987605 Bug 1711590 - Renable deactivate timer and set its expired time to 24hrs. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D115302
2021-05-20 00:31:09 +00:00
Dana Keeler a6eb3f69cd Bug 1711599 - remove unused HSTS dynamic preloading implementation r=rmf,remote-protocol-reviewers,marionette-reviewers,whimboo
This patch removes the ability for Firefox profiles to receive dynamic HSTS
preloading information via kinto/remote settings. This feature was implemented
some time ago but was never used. It is being removed to make upcoming changes
easier.

Differential Revision: https://phabricator.services.mozilla.com/D115315
2021-05-20 00:27:12 +00:00
Kagami Sascha Rosylight 91c03540cf Bug 1711850 - Enable MOZ_JXL only for Nightly builds r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D115512
2021-05-19 17:46:23 +00:00
Emilio Cobos Álvarez 2fce796fb3 Bug 1711724 - Ship CanvasRenderingContext2D.createConicGradient. r=annevk
Passes all the WPTs afaict.

Differential Revision: https://phabricator.services.mozilla.com/D115471
2021-05-19 09:26:35 +00:00
Jonathan Kew cf297d803f Bug 1708768 - Make InitFontList safe to call off-main-thread on macOS, and run font-list initialization on a separate thread during startup. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D115295
2021-05-18 11:10:43 +00:00
Jonathan Kew 137c757143 Bug 1708768 - Create a pref to defer gfxPlatformFontList initialization until first use, and enable this on macOS. r=lsalzman
This gives the RegisterFonts thread more time to complete its work, so that
the main thread doesn't have to wait for it in InitFontList.

In the worst case, where the registration thread still hasn't finished
by the time we call gfxPlatformFontList::PlatformFontList() the first time,
it's still no worse than previously, it just reorders some of the work
that has to be done before we can render any content.

Depends on D114863

Differential Revision: https://phabricator.services.mozilla.com/D114865
2021-05-18 11:10:43 +00:00
Masayuki Nakano 038b637268 Bug 1520983 - part 2: Make `IMEInputHandler::InsertTextAsComittingComposition()` use `eContentCommandInsertText` event if there is no composition r=m_kato
Like the other browsers, we should stop dispatching a set of composition
events when `insertText:` is called by Emoji picker, accent character
picker of some Western keyboard layouts.  Then, corresponding
`beforeinput` event becomes cancelable like the other browsers'.

Differential Revision: https://phabricator.services.mozilla.com/D114827
2021-05-18 06:30:36 +00:00
Butkovits Atila f3f08e64ba Backed out 2 changesets (bug 1520983) for causing build bustages. CLOSED TREE
Backed out changeset c09060ee8358 (bug 1520983)
Backed out changeset b4c25d047cee (bug 1520983)
2021-05-18 07:47:57 +03:00
Matthew Gaudet f96354b904 Bug 1710510 - Pref-flip Ergonomic Brand Checks r=arai
Differential Revision: https://phabricator.services.mozilla.com/D115093
2021-05-18 02:21:01 +00:00
James Teh a58f564775 Bug 1710976: Add a pref for caching of content process a11y trees in the parent process. r=eeejay
This isn't used yet, but it will be used in quite a few different places henceforth.

Differential Revision: https://phabricator.services.mozilla.com/D115042
2021-05-18 00:13:31 +00:00
Masayuki Nakano 684add0c4c Bug 1520983 - part 2: Make `IMEInputHandler::InsertTextAsComittingComposition()` use `eContentCommandInsertText` event if there is no composition r=m_kato
Like the other browsers, we should stop dispatching a set of composition
events when `insertText:` is called by Emoji picker, accent character
picker of some Western keyboard layouts.  Then, corresponding
`beforeinput` event becomes cancelable like the other browsers'.

Differential Revision: https://phabricator.services.mozilla.com/D114827
2021-05-17 23:52:43 +00:00
Henrik Skupin d546c8341c Bug 1710839 - [remote] Remove remote.enabled preference. r=remote-protocol-reviewers,Gijs,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D115239
2021-05-17 20:20:15 +00:00
Iulian Moraru b6ba6af634 Backed out 3 changesets (bug 1708768) for causing font related crashes (bug 1711332). a=backout DONTBUILD
Backed out changeset fa037550d6e8 (bug 1708768)
Backed out changeset 10b30c8d4b86 (bug 1708768)
Backed out changeset c03c7df7cd61 (bug 1708768)
2021-05-16 11:46:34 +03:00
Jonathan Kew 0e23ebf8cd Bug 1708768 - Create a pref to defer gfxPlatformFontList initialization until first use, and enable this on macOS. r=lsalzman
This gives the RegisterFonts thread more time to complete its work, so that
the main thread doesn't have to wait for it in InitFontList.

In the worst case, where the registration thread still hasn't finished
by the time we call gfxPlatformFontList::PlatformFontList() the first time,
it's still no worse than previously, it just reorders some of the work
that has to be done before we can render any content.

Differential Revision: https://phabricator.services.mozilla.com/D114865
2021-05-14 18:05:44 +00:00
Emilio Cobos Alvarez 2ec499c7b2 Bug 1708829 - Make sure that delta* getters account for scroll speed override correctly. r=masayuki
Depends on D114052

Differential Revision: https://phabricator.services.mozilla.com/D114737
2021-05-14 17:44:29 +00:00
Emilio Cobos Álvarez 36b7e1c765 Bug 1708829 - Expose WheelEvent.wheelDelta{,X,Y} for compat with other engines. r=masayuki
The behavior for non-trusted events matches Safari (Chrome does return
deltaX in that case, which seems pretty bogus, because the sign of the
wheelDelta* is the opposite as the delta* props).

Differential Revision: https://phabricator.services.mozilla.com/D114052
2021-05-14 15:17:33 +00:00
Sandor Molnar 7b4d940c00 Backed out 2 changesets (bug 1708829) for causing mochitest plain failures in test_continuous_wheel_events. CLOSED TREE
Backed out changeset 28faebd5fc72 (bug 1708829)
Backed out changeset 044c2060da7d (bug 1708829)
2021-05-14 17:12:03 +03:00
Andrew Osmond 05d9f058fd Bug 1711118 - Part 3. Allow D3D11 compositing with Software WebRender in release. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D115081
2021-05-14 13:01:22 +00:00
Andrew Osmond 8f5da297a9 Bug 1711118 - Part 2. Allow Software WebRender without the GPU process in release. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D115079
2021-05-14 13:01:21 +00:00
Andrew Osmond b3a88ee4db Bug 1711118 - Part 1. Allow Software WebRender for all desktop users in release. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D115078
2021-05-14 13:01:21 +00:00
Emilio Cobos Alvarez 21021ee18d Bug 1708829 - Make sure that delta* getters account for scroll speed override correctly. r=masayuki
Depends on D114052

Differential Revision: https://phabricator.services.mozilla.com/D114737
2021-05-14 12:41:30 +00:00
Emilio Cobos Álvarez cbcedecf48 Bug 1708829 - Expose WheelEvent.wheelDelta{,X,Y} for compat with other engines. r=masayuki
The behavior for non-trusted events matches Safari (Chrome does return
deltaX in that case, which seems pretty bogus, because the sign of the
wheelDelta* is the opposite as the delta* props).

Differential Revision: https://phabricator.services.mozilla.com/D114052
2021-05-14 12:41:30 +00:00
Dana Keeler e98d7a0010 Bug 1696997 - enable osclientcerts by default in release r=mbirghan
This enables the module that queries OS storage for client certificates when
TLS client authentication is requested by a server. This applies to macOS and
Windows only.

Differential Revision: https://phabricator.services.mozilla.com/D107558
2021-05-13 22:45:20 +00:00
Andrew Osmond c82b7d67c2 Bug 1704792 - Part 3. Make display list items request blobs for SVG images. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D111838
2021-05-13 16:24:07 +00:00
Emilio Cobos Álvarez 9e80cd9710 Bug 1708384 - Properly hide -moz-context-properties from content. r=dholbert
Depends on D114481

Differential Revision: https://phabricator.services.mozilla.com/D114482
2021-05-12 21:45:18 +00:00
Emilio Cobos Álvarez 41179cf5d6 Bug 1708384 - Properly hide -moz-control-character-visibility from content. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D114481
2021-05-12 21:45:18 +00:00
Dragana Damjanovic ea19316503 Bug 1710816 - Enable HTTP/3 by default r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D114956
2021-05-12 18:39:41 +00:00
Nicolas B. Pierron 965cab1dbc Bug 1458339 part 2 - Use shared memory to initialize the JS engine. r=smaug,tcampbell,necko-reviewers
This modification relies on the shared memory implemented in Bug 1698045 and on
the ability to encode and decode self-hosted content from Bug 1668361 to
optimize the JS engine initialization by making the parent process encode the
self-hosted stencil, such that all other runtime initialization would only have
to decode it, including content processes.

Differential Revision: https://phabricator.services.mozilla.com/D110578
2021-05-12 13:57:56 +00:00
Paul Bone 883b7bec01 Bug 1629064 - pt 4. Add a pref for the maximum number of concurrent GCs r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D105957
2021-05-12 06:46:09 +00:00
Emilio Cobos Álvarez abc8380317 Bug 1710369 - Remove unused code for dealing with plugins in EventStateManager. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D114716
2021-05-10 10:29:20 +00:00
Robert Mader 583024121b Bug 1710180 - Make sure some widget.wayland prefs don't change at runtime, r=stransky
We have some settings that we don't handle well if they change
at runtime. Make them mirror:once.

In the case of `wideget.wayland_vsync.enabled`, this was practically
already the case but in a deprecated way. While on it, use the chance to
rename it to `widget.wayland.vsync.enabled` so it matches other
configs.

Differential Revision: https://phabricator.services.mozilla.com/D114664
2021-05-10 09:01:40 +00:00
Matt Woodrow 728f5a24cf Bug 1708325 - Allow doing an extra refresh driver tick for user input events. r=mstange,bas
Differential Revision: https://phabricator.services.mozilla.com/D113737
2021-05-10 00:00:51 +00:00