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

21207 Коммитов

Автор SHA1 Сообщение Дата
Boris Chiou d19f353924 Bug 1694741 - Part 9: Enable the preference on Nightly. r=emilio
Both Blink and WebKit shipped this feature already, so it should be fine to
enable this on Nightly for testing.

Differential Revision: https://phabricator.services.mozilla.com/D152587
2022-08-22 20:18:41 +00:00
Boris Chiou b0e1f7a8ac Bug 1694741 - Part 1: Support width and height attributes in HTMLSourceElement's webidl. r=emilio
This also introduce a pref which protect these two attributes:
dom.picture_source_dimension_attributes.enabled.

These two dimension attributes will be mapped to the style of <img> elements
if the <source> element's parent is <picture>. This will be implemented
in the later patch. For now, we just implement the DOM interface.

Differential Revision: https://phabricator.services.mozilla.com/D152585
2022-08-22 20:18:37 +00:00
Marian-Vasile Laza b92a6b8396 Backed out 2 changesets (bug 1784590) for causing mochitest failures on test_privateBrowsing.html.
Backed out changeset 36d36e75930f (bug 1784590)
Backed out changeset 35dbbd6dbb70 (bug 1784590)
2022-08-22 22:50:41 +03:00
Kagami Sascha Rosylight bfc04ec1a4 Bug 1784590 - Part 1: Remove hide_in_pbmode prefs r=asuth
It turns out that websites break with different reasons when hiding things. At this point we want to stop revising the hack further and instead gather the data about how many websites are currently affected.

Differential Revision: https://phabricator.services.mozilla.com/D154578
2022-08-22 18:48:12 +00:00
Emilio Cobos Álvarez 9df7e6bca8 Bug 1782596 - Propagate preferred color-scheme to non-top frames. r=jwatt
The ColorSchemeMode::Preferred change doesn't make a difference (that
is, always use the preferred one), since when we only propagate from
top's embedder the embedder is chrome, which always has the preferred
color-scheme.

Differential Revision: https://phabricator.services.mozilla.com/D154931
2022-08-22 14:23:09 +00:00
Paul Zuehlcke 4a5b412e66 Bug 1785083 - Extend CookieBannerListService to sync rules from remote settings collection. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D154992
2022-08-19 18:56:16 +00:00
Butkovits Atila 9610bacc35 Backed out changeset 24d6d6816f34 (bug 1746524) as requested by Andrew. CLOSED TREE 2022-08-18 20:00:48 +03:00
Calixte 0a96678803 Bug 1785810 - Enabled PDF in nightly and early beta r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D154980
2022-08-18 14:24:00 +00:00
Andrew Osmond 5a36e3dd85 Bug 1785366 - Blocklist backdrop filter on some Ivy/Sandybridge Intel Windows drivers. r=jrmuizel,emilio
Backdrop filter crashes newer Intel drivers on Windows. This patch adds
support to the blocklist infrastructure for backdrop filter, and hooks
this up with the CSS property table.

Differential Revision: https://phabricator.services.mozilla.com/D154950
2022-08-18 12:29:20 +00:00
Emilio Cobos Álvarez 6d0f2b63a9 Bug 1682444 - Add basic support for nan / infinity in calc(). r=boris
Fix some tests to:

 * Not assume `double` precision.
 * Account for recent working group resolution with regards to NaN: https://github.com/w3c/csswg-drafts/issues/7067#issuecomment-1111211295

Not sure I caught all, but normalizing to 0 was already our existing
behavior. This feature needs more work before it can be enabled more
generally, so make it nightly-only, for now.

Also, it's unclear per spec what the serialization for infinity*1s or so
should be. Right now we serialize to <very-big-number>s, which seems
reasonable, but some tests (but not others!) expect different behavior.

I left those untouched for now.

Differential Revision: https://phabricator.services.mozilla.com/D154883
2022-08-18 08:54:30 +00:00
Emilio Cobos Álvarez 9cb731ca93 Bug 1774589 - Implement atan2(), and enable calc() trigonometric functions by default on nightly. r=boris
We now have test coverage, so let's do this.

The remaining failures are just about infinity/nan, which is a
completely different feature.

Differential Revision: https://phabricator.services.mozilla.com/D154831
2022-08-18 08:49:30 +00:00
Marian-Vasile Laza d774d6ecb3 Backed out changeset 49c7536f01db (bug 1785366) for causing xpcshell failures on test_css-properties-db.js. CLOSED TREE 2022-08-18 07:41:44 +03:00
Andrew Osmond 96648c7055 Bug 1785366 - Blocklist backdrop filter on some Ivy/Sandybridge Intel Windows drivers. r=jrmuizel,emilio
Backdrop filter crashes newer Intel drivers on Windows. This patch adds
support to the blocklist infrastructure for backdrop filter, and hooks
this up with the CSS property table.

Differential Revision: https://phabricator.services.mozilla.com/D154950
2022-08-18 03:21:27 +00:00
Marian-Vasile Laza 77fe747849 Backed out 5 changesets (bug 1682444, bug 1774589) for causing wpt failures on acos-asin-atan-atan2-serialize.html. CLOSED TREE
Backed out changeset 1d850765046a (bug 1774589)
Backed out changeset 08ec785b9923 (bug 1682444)
Backed out changeset bf0c0ff13cc1 (bug 1682444)
Backed out changeset bcf5fcb47b4a (bug 1774589)
Backed out changeset 03b2061c924b (bug 1774589)
2022-08-18 04:28:11 +03:00
Greg Tatum a90d82f617 Bug 1784489 - Pref on text recognition for nightly and early beta; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D154532
2022-08-18 00:33:35 +00:00
Boris Chiou ac0a5cdfb4 Bug 1785329 - Enable animation-composition on Nightly. r=hiro
It seems that making animation shorthand supports animation-composition may be
very tricky, so it's unlikely to include animation-composition into the
shorthand for now, per spec issue:
https://github.com/w3c/csswg-drafts/issues/6946.

WebKit also supports the longhand only on STP (Safari Technology Preview), so
it should be fine to enable the longhand property only on Firefox Nightly,
for experiemental testing.

Differential Revision: https://phabricator.services.mozilla.com/D154934
2022-08-17 23:39:55 +00:00
Timothy Nikkel 2aefbf2cde Bug 1758196. Let swipe to navigate on Windows ride the trains. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D154861
2022-08-17 22:42:37 +00:00
Emilio Cobos Álvarez 5e73feeb12 Bug 1682444 - Add basic support for nan / infinity in calc(). r=boris
Fix some tests to:

 * Not assume `double` precision.
 * Account for recent working group resolution with regards to NaN: https://github.com/w3c/csswg-drafts/issues/7067#issuecomment-1111211295

Not sure I caught all, but normalizing to 0 was already our existing
behavior. This feature needs more work before it can be enabled more
generally, so make it nightly-only, for now.

Also, it's unclear per spec what the serialization for infinity*1s or so
should be. Right now we serialize to <very-big-number>s, which seems
reasonable, but some tests (but not others!) expect different behavior.

I left those untouched for now.

Differential Revision: https://phabricator.services.mozilla.com/D154883
2022-08-17 21:12:08 +00:00
Emilio Cobos Álvarez 3372ba4c5d Bug 1774589 - Implement atan2(), and enable calc() trigonometric functions by default on nightly. r=boris
We now have test coverage, so let's do this.

The remaining failures are just about infinity/nan, which is a
completely different feature.

Differential Revision: https://phabricator.services.mozilla.com/D154831
2022-08-17 20:56:38 +00:00
Marian-Vasile Laza aaa3eeea77 Backed out changeset 592feee00d7b (bug 1784489) for causing bc failures on browser_contextmenu.js. CLOSED TREE 2022-08-17 23:32:54 +03:00
Greg Tatum 7955da4416 Bug 1784489 - Pref on text recognition for nightly and early beta; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D154532
2022-08-17 13:12:12 +00:00
Jonathan Kew b9285f930f Bug 1740530 - patch 5 - Implement support for COLRv1 glyphs represented as acyclic graphs of paint records. r=gfx-reviewers,lsalzman
Depends on D153870

Differential Revision: https://phabricator.services.mozilla.com/D152041
2022-08-17 10:59:35 +00:00
Razvan Cojocaru 88058d9bfe Bug 1781209 - Swipe navigation does not work when kinetic scroll is disabled. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D154239
2022-08-16 20:54:43 +00:00
Iulian Moraru 084a4c188b Backed out changeset 592feee00d7b (bug 1784489) for causing multiple failures. CLOSED TREE 2022-08-16 21:29:24 +03:00
Iulian Moraru 04e55eb8e5 Backed out 10 changesets (bug 1740530) for causing reftest failures on colrv1.
Backed out changeset 6f6a55195489 (bug 1740530)
Backed out changeset adc2b1544c4c (bug 1740530)
Backed out changeset cf530e9fea50 (bug 1740530)
Backed out changeset 10b6bafbbd9a (bug 1740530)
Backed out changeset 1c9205a0193f (bug 1740530)
Backed out changeset 06f7b45d044a (bug 1740530)
Backed out changeset 02d6294b7a6d (bug 1740530)
Backed out changeset 673f9010ea75 (bug 1740530)
Backed out changeset 429601610f26 (bug 1740530)
Backed out changeset e6523049b675 (bug 1740530)
2022-08-16 21:28:46 +03:00
Andreas Farre 4b493b6a30 Bug 1595491 - Part 1: Make <embed> and <object> behave more like <iframe>. r=smaug,emilio
By making image loading in <embed> and <object> behave more like when
an <iframe> loads an image, we can make sure that the synthetic
document generated is process switched if the image is cross
origin. This is done by making image loading in nsObjectLoadingContent
follow the document loading path.

We also make sure that we pass the image size back to the embedder
element to not get stuck with the intrinsic size.

To avoid named targeting being able to target these synthetic
documents, as well as showing up in `Window.frames` and being counted
in `Window.length`, we keep a filtered list of non-synthetic browsing
contexts for that use-case.

This feature is controlled by two prefs:

* browser.opaqueResponseBlocking.syntheticBrowsingContext

  This triggers the creation of synthetic documents for images loaded
  in <object> or embed.

* browser.opaqueResponseBlocking.syntheticBrowsingContext.filter

  This turns on the filtering of synthetic browsing contexts in named
  targeting, `Window.length` and `Window.frames`.

Differential Revision: https://phabricator.services.mozilla.com/D148117
2022-08-16 16:42:58 +00:00
Greg Tatum 866f5bf48b Bug 1784489 - Pref on text recognition for nightly and early beta; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D154532
2022-08-16 15:15:42 +00:00
Jonathan Kew 0ee0c4c341 Bug 1740530 - patch 5 - Implement support for COLRv1 glyphs represented as acyclic graphs of paint records. r=gfx-reviewers,lsalzman
Depends on D153870

Differential Revision: https://phabricator.services.mozilla.com/D152041
2022-08-16 12:48:33 +00:00
Tim Huang bbb1959d03 Bug 1784900 - Enable Service Worker Partitioning. r=anti-tracking-reviewers,bvandersloot
Differential Revision: https://phabricator.services.mozilla.com/D154689
2022-08-16 12:20:59 +00:00
Paul Zuehlcke 017ccb0be2 Bug 1783019 - Implement cookie banner handling components. r=timhuang,necko-reviewers,valentin
This patch adds the following components:
 - nsICookieBannerService: Main service singleton managing the rules and initiating other components.
   It's exposed via Services.cookieBanners and can be configured via the cookiebanners.* prefs.
   To enable it set "cookiebanners.service.mode" to 1 or 2 and restart the browser.
 - nsCookieInjector: Looks up rules and injects cookies for matching top level loads.
 - nsICookieBannerListService: Imports and updates the cookie banner rules.
 - nsICookieBannerRule: Rules for a given domain.
 - nsICookieRule: Part of nsICookieBannerRule. Holds cookie specific rules.

Depends on D153641

Differential Revision: https://phabricator.services.mozilla.com/D153642
2022-08-16 12:07:13 +00:00
Noemi Erli dd80638572 Backed out 10 changesets (bug 1740530) for causing build bustage in COLRFonts.cpp CLOSED TREE
Backed out changeset afbcf312dbaf (bug 1740530)
Backed out changeset dfcb59684ed2 (bug 1740530)
Backed out changeset cc1a41e1bf44 (bug 1740530)
Backed out changeset 4c3cb20a5203 (bug 1740530)
Backed out changeset 275eb6c4900b (bug 1740530)
Backed out changeset 768df8b3c770 (bug 1740530)
Backed out changeset 4db61d87c172 (bug 1740530)
Backed out changeset a95e62dc9288 (bug 1740530)
Backed out changeset fdc71479fcd9 (bug 1740530)
Backed out changeset 8b26219a4294 (bug 1740530)
2022-08-16 14:31:39 +03:00
Jonathan Kew 85d0caa7ab Bug 1740530 - patch 5 - Implement support for COLRv1 glyphs represented as acyclic graphs of paint records. r=gfx-reviewers,lsalzman
Depends on D153870

Differential Revision: https://phabricator.services.mozilla.com/D152041
2022-08-16 10:39:52 +00:00
Emilio Cobos Álvarez 7a044adc89 Bug 1784943 - Enable bug 1483798 in all channels. r=boris
As per spec
(https://drafts.csswg.org/cssom/#extensions-to-the-window-interface).

This has been 9 months on nightly without regressions reported.

Differential Revision: https://phabricator.services.mozilla.com/D154685
2022-08-16 06:18:26 +00:00
Andrew Osmond 5b2fd01232 Bug 1783309 - Convert OffscreenCanvas domain allowlist pref to DataMutexString. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D153831
2022-08-16 01:00:23 +00:00
Andrew Osmond 8d1323b0e8 Bug 1782722 - Make WebGL override unmasked renderer/vendor pref accesses thread safe. r=gfx-reviewers,lsalzman,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D153469
2022-08-16 01:00:22 +00:00
Andrew Osmond e8f9ed23ec Bug 1783299 - Add support for threadsafe mirrored StaticPref strings. r=KrisWright
Prior to this patch, one would need to manually instantiate a copy of a
string from a preference on the main thread in order to access it in a
threadsafe manner on another thread.

This patch adds support for a `DataMutexString` threadsafe type for
mirror: always type StaticPrefs, and works similarly to the existing
atomic types.

Differential Revision: https://phabricator.services.mozilla.com/D153829
2022-08-16 01:00:21 +00:00
Dan Robertson 00d8c08f59 Bug 1770515 - Let dominant axis locking ride the trains on mac. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D154254
2022-08-15 13:58:39 +00:00
Frederic Wang 3c65c69660 Bug 1783995 - Remove MathML preference deprecated_menclose_notation_radical. r=emilio
- Remove the preference and corresponding tests.
- nsMathMLmencloseFrame continues to implement the radical notation for
  now, since it's still used by nsMathMLmsqrtFrame. Ideally, we should
  refactor our code so that msqrt/mroot share the same implementation.

Differential Revision: https://phabricator.services.mozilla.com/D154194
2022-08-15 08:55:50 +00:00
Valentin Gosu 00ed953e23 Bug 1705676 - Purge HTTP disk cache using backgroundtasks (out-of-process) r=nalexander,necko-reviewers,dragana
Purge HTTP disk cache using backgroundtasks

Motivation:

In the History settings preferences panel you may choose to
`Clear History when Firefox closes` - which sets the
`privacy.sanitize.sanitizeOnShutdown` pref.
If the `Cache` checkbox is also checked it sets the
`privacy.clearOnShutdown.cache` pref to true.

When both of these prefs are true `CacheObserver::ClearCacheOnShutdown()`
will return true, which will cause Firefox to clear the HTTP disk cache
during shutdown. This will block shutdown for howeverlong this takes. If the
user has a slow disk, or the user is on Windows and something is blocking the
deletion of those files, this will trigger a shutdown hang making Firefox
crash. This leads to a bad user experience as trying to start Firefox again
during this time will show the "Firefox is already running message".
Eventually a crash dump is produced. Bug 1356853 and bug 1682899 are caused
by this specific issue.

In order to avoid these crashes and a bad user experience we have
a few options:

1. Completely disable the disk cache when a user checks this box.
  This option will degrade the user's browsing experience.
2. Don't delete the folder at shutdown
  Whether we do this by removing the checkbox or simply not respecting
  the pref value, users who already have this setting would be surprised
  if the cache folder stops being deleted.
3. Use a thread pool to delete the files
  While it's likely to speed up the deletion at least a little bit,
  this would introduce additional complexity while not completely
  fixing the issue. A slow disk will still block shutdown.
4. Delete the cache at shutdown using a separate process
  This is likely the best option. It has the advantage of not blocking
  shutdown while at the same time maintaining similar properties to the
  existing functionality:
  - The cache folder is deleted at shutdown.
  - Has the same behaviour if Firefox gets killed or crashes for different issues.
  - Behaves similarly if the OS is forcefully shutdown during or before we begin to purge.
  - Additionaly, because we rename the folder prior to dispatching the background task, if the purging isn't completed we
    - don't rebuild the cache from an incomplete folder on next restart
    - are able to resume the purging after Firefox startup

A particularly special case is the Windows shutdown.
If the user shuts down windows that will try to close Firefox. If the shutdown
takes too long, the user will see the "Close anyway" button and may click
it thus preventing the cache purge to complete.
When using a background task we have a similar situation, but the button won't
even appear. So after the next Firefox restart we will check if the cache
needs to be purged.

Largely, the new behaviour will be:
- At shutdown we conditionally dispatch a background task to delete the folder
- If creating the process fails (for some reason) we fallback to the old way
  of synchronously deleting the folder.
- The task will then try to delete the folder in the background
- If for some reason it fails, we will dispatch a new background task shortly
  after Firefox restarts to clean up the old folders.

Differential Revision: https://phabricator.services.mozilla.com/D126339
2022-08-15 07:07:45 +00:00
Robert Mader cf107073bf Bug 1784453 - Use correct compiler macro for ARM builds,
`_ARM64_` appears to be a Windows-only thing.

Fixes D154506

Differential Revision: https://phabricator.services.mozilla.com/D154589
2022-08-13 17:17:53 +00:00
Sandor Molnar 8aada8ee04 Backed out 2 changesets (bug 1595491) for causing build bustages in docshell/base/BrowsingContext.cpp CLOSED TREE
Backed out changeset 3687b7153c44 (bug 1595491)
Backed out changeset 91d87de145e3 (bug 1595491)
2022-08-12 19:50:20 +03:00
Yulia Startsev ddbc6378de Bug 1784477 - Remove Dynamic Import option; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D154529
2022-08-12 16:18:44 +00:00
Andreas Farre ec3d91462e Bug 1595491 - Part 1: Make <embed> and <object> behave more like <iframe>. r=smaug,emilio
By making image loading in <embed> and <object> behave more like when
an <iframe> loads an image, we can make sure that the synthetic
document generated is process switched if the image is cross
origin. This is done by making image loading in nsObjectLoadingContent
follow the document loading path.

We also make sure that we pass the image size back to the embedder
element to not get stuck with the intrinsic size.

To avoid named targeting being able to target these synthetic
documents, as well as showing up in `Window.frames` and being counted
in `Window.length`, we keep a filtered list of non-synthetic browsing
contexts for that use-case.

This feature is controlled by two prefs:

* browser.opaqueResponseBlocking.syntheticBrowsingContext

  This triggers the creation of synthetic documents for images loaded
  in <object> or embed.

* browser.opaqueResponseBlocking.syntheticBrowsingContext.filter

  This turns on the filtering of synthetic browsing contexts in named
  targeting, `Window.length` and `Window.frames`.

Differential Revision: https://phabricator.services.mozilla.com/D148117
2022-08-12 15:48:26 +00:00
Robert Mader e990df3d9c Bug 1784453 - Prefer GLES by default on Linux-ARM, r=gfx-reviewers,nical
On most ARM devices the integrated GPUs and their drivers are
usually better optimized for GLES than desktop GL. Thus lets
prefer GLES on ARM builds, potentially reducing bug and improving
performance.

In case of v3d this is also needed to turn on HW-WR by default
as we disable it due to the first default GL context not supporting
GL >= 3.0.

Notes:
 - Unfortunately we can't straightly use `StaticPrefs` in `glxtest`
 - We need to ask for a 2.x context as GLES defaults to 1.x. Asking
   for 2.x should, however, should give us a 3.x/4.x one if supported.

Differential Revision: https://phabricator.services.mozilla.com/D154506
2022-08-12 14:04:35 +00:00
Tom Schuster d37dd913aa Bug 1779184 - Logging. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D153361
2022-08-12 10:33:25 +00:00
Emilio Cobos Álvarez ff538cab0e Bug 1784349 - Don't use -moz-bool-pref for flexbox -moz-box emulation. r=dholbert,perftest-reviewers,sparky
Use a bool pref media query which allows dynamic changes to get
reflected instantly.

Differential Revision: https://phabricator.services.mozilla.com/D154449
2022-08-11 23:22:52 +00:00
Calixte 3cf759f201 Bug 1784272 - Enable editing in the PDF viewer r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D154393
2022-08-11 17:29:37 +00:00
Janvi Bajoria 82a08acc5c Bug 1779127 - PIP fullscreen button r=kpatenio,niklas,desktop-theme-reviewers,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152252
2022-08-11 17:08:17 +00:00
Frederic Wang df0d17b174 Bug 1783841 - Remove MathML preferences deprecated_style_attributes and mathsize_names. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D154087
2022-08-11 10:20:41 +00:00
Andrew McCreight 68fb70b8e6 Bug 1746524 - Enable browser.tabs.documentchannel.parent-controlled pref. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D150421
2022-08-10 20:50:57 +00:00
Brad Werth e45f347e15 Bug 1772024 Part 2: Fix clause for Apple Silicon for video specialize pref. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D154290
2022-08-10 20:31:16 +00:00
Emilio Cobos Álvarez e23e2a0212 Bug 1783934 - Add a chrome-only -moz-box-layout: legacy | flex, and use that to implement flexbox emulation. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D154153
2022-08-10 19:46:37 +00:00
Norisz Fay df7a75af14 Backed out changeset 44255b7d9b1c (bug 1746524) for causing xpcshell failures on test_ext_userScripts_register.js CLOSED TREE 2022-08-10 21:06:23 +03:00
Marian-Vasile Laza 8274331cda Backed out changeset 449fe2d946ea (bug 1783934) for causing mochitest failures on test_animation-type-longhand.html. CLOSED TREE 2022-08-10 19:48:38 +03:00
Emilio Cobos Álvarez f4206bdde5 Bug 1783934 - Add a chrome-only -moz-box-layout: legacy | flex, and use that to implement flexbox emulation. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D154153
2022-08-10 15:47:41 +00:00
Emilio Cobos Álvarez 9f8d56e747 Bug 1783940 - Remove -moz-* display values enabled-in-content prefs. r=dholbert
We have unshipped these since forever, no point in keeping the pref
around. Move the relevant tests to chrome ref/mochitests.

Differential Revision: https://phabricator.services.mozilla.com/D154152
2022-08-10 15:43:51 +00:00
Tooru Fujisawa 2260a5120e Bug 1595259 - Part 3: Update fdlibm to 369ea0520a3061c07400d7cd32172efb6af39815. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D154079
2022-08-10 07:00:31 +00:00
Tooru Fujisawa b70dbe55b7 Bug 1595259 - Part 2: Update patches. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D154078
2022-08-10 07:00:31 +00:00
Tooru Fujisawa 925004d845 Bug 1595259 - Part 1: Use python3 in modules/fdlibm/update.sh. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D154077
2022-08-10 07:00:30 +00:00
Sandor Molnar 2fd0743a13 Backed out changeset 28c712b01ff9 (bug 1783940) for causing mochitest plain failures in layout/generic/test/test_dynamic_reflow_root_disallowal.html 2022-08-10 02:26:47 +03:00
Emilio Cobos Álvarez 8efdb3cc26 Bug 1783940 - Remove -moz-* display values enabled-in-content prefs. r=dholbert
We have unshipped these since forever, no point in keeping the pref
around. Move the relevant tests to chrome ref/mochitests.

Differential Revision: https://phabricator.services.mozilla.com/D154152
2022-08-09 21:59:45 +00:00
Sandor Molnar 519b18befe Backed out 3 changesets (bug 1595259) for causing build bustages. CLOSED TREE
Backed out changeset b9f69ae62997 (bug 1595259)
Backed out changeset 313d7588e499 (bug 1595259)
Backed out changeset 3de1cc55fdbb (bug 1595259)
2022-08-09 20:51:28 +03:00
Andrew McCreight 9b40d5974a Bug 1746524 - Enable browser.tabs.documentchannel.parent-controlled pref. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D150421
2022-08-09 17:13:02 +00:00
Tooru Fujisawa b010a15625 Bug 1595259 - Part 3: Update fdlibm to 369ea0520a3061c07400d7cd32172efb6af39815. r=mgaudet
Depends on D154078

Differential Revision: https://phabricator.services.mozilla.com/D154079
2022-08-09 16:09:57 +00:00
Tooru Fujisawa a0ad1d3f81 Bug 1595259 - Part 2: Update patches. r=mgaudet
Depends on D154077

Differential Revision: https://phabricator.services.mozilla.com/D154078
2022-08-09 16:09:56 +00:00
Tooru Fujisawa c4405ed5dc Bug 1595259 - Part 1: Use python3 in modules/fdlibm/update.sh. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D154077
2022-08-09 16:09:56 +00:00
Iulian Moraru e0ce4ec1ed Backed out changeset bcc86b98d4f9 (bug 1783841) for causing reftest mathml related failures. CLOSED TREE 2022-08-09 19:23:24 +03:00
Frederic Wang db39310640 Bug 1783841 - Remove MathML preferences deprecated_style_attributes and mathsize_names. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D154087
2022-08-09 14:12:48 +00:00
Razvan Cojocaru 31923e13de Bug 1753814 - Add an option to configure the maximum amount of pinch zoom that is available. r=dlrobertson
Differential Revision: https://phabricator.services.mozilla.com/D153888
2022-08-09 12:47:59 +00:00
Andrew Osmond 24dd519dd4 Bug 1779009 - Ship OffscreenCanvas to release. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D152918
2022-08-08 13:01:53 +00:00
Tom Schuster 34c8b152df Bug 1779184 - Start rewrite of Sanitizer API for elements. r=emilio
There are still a lot of TODOs, but I want to make some incremental progress on this.

Differential Revision: https://phabricator.services.mozilla.com/D152271
2022-08-08 09:23:55 +00:00
Masayuki Nakano c15a8dbac2 Bug 1782852 - part 3: Revert the pref value to enable legacy editor commands in late beta and release r=smaug
This is my silly mistake. I set reverted value to the prefs and the expectation
of WPTs. We need to enable them in late beta and release and disable them in
early beta and nightly.

Differential Revision: https://phabricator.services.mozilla.com/D153885
2022-08-07 00:21:32 +00:00
Shane Caraveo 3978bd8144 Bug 1783078 require web_accessible_resources for any extension loads from a content script r=robwu,ckerschb
Enforce requiring web accessible resources in MV3 and use a pref to turn on later for MV2.

Differential Revision: https://phabricator.services.mozilla.com/D153677
2022-08-05 04:36:30 +00:00
Masayuki Nakano 5b6dc29ff6 Bug 1782852 - part 2: Disable Gecko specific commands which are disabled only in the Nightly channel in early beta too r=smaug
This is a trial to get reports of breakage of web apps in the wild from (early)
beta users. Currently we don't have any bug reports from Nightly users of
disabling `contentReadOnly` and `insertBROnReturn` commands, but according
to the telemetry in the Beta channel, there are some web apps using them
(perhaps, for feature detection or one of finger prints) because we get over
1k pings per day.

`contentReadOnly`:
https://telemetry.mozilla.org/new-pipeline/evo.html#!aggregates=True%2520percentage&cumulative=0&end_date=2022-07-25&include_spill=0&keys=!__none__!__none__&max_channel_version=beta%252F103&measure=USE_COUNTER2_DOCUMENTEXECCOMMANDCONTENTREADONLY_DOCUMENT&min_channel_version=beta%252F100&processType=*&product=Firefox&sanitize=0&sort_keys=submissions&start_date=2022-06-27&trim=0&use_submission_date=0

`insertBROnReturn`:
https://telemetry.mozilla.org/new-pipeline/evo.html#!aggregates=True%2520percentage&cumulative=0&end_date=2022-07-25&include_spill=0&keys=!__none__!__none__&max_channel_version=beta%252F103&measure=USE_COUNTER2_DOCUMENTQUERYCOMMANDSUPPORTEDORENABLEDINSERTBRONRETURN_DOCUMENT&min_channel_version=beta%252F100&processType=*&product=Firefox&sanitize=0&sort_keys=submissions&start_date=2022-06-27&trim=0&use_submission_date=0

If we won't have any regression reports with this, for example, it's used only
for a finger print, perhaps, we could try to roll out to disable these commands.

Differential Revision: https://phabricator.services.mozilla.com/D153721
2022-08-05 02:55:23 +00:00
Masayuki Nakano bea9bf4233 Bug 1782852 - part 1: Get rid of unused editor commands in the wild r=smaug
`increaseFontSize`, `decreaseFontSize`, `gethtml`, `heading` and `readonly`
commands were disabled for a year in all channels, but no regression reports
have been filed.  Therefore, we can delete the commands and the telemetry
probes.

Note that `cmd_getContents` command which is the internal command of `gethtml`
is not used in comm-central too.  Therefore, this patch deletes the command
handler, `nsClipboardGetContentsCommand`, and `Command::GetHTML` too.

Differential Revision: https://phabricator.services.mozilla.com/D153720
2022-08-05 02:55:22 +00:00
Boris Chiou 82bf45d69f Bug 1746528 - Remove aspect-ratio preference. r=emilio
We shipped this in Firefox 89, one year ago. It should be okay to drop
this preference now.

Differential Revision: https://phabricator.services.mozilla.com/D153680
2022-08-04 17:58:03 +00:00
Fabrice Desré c50cb528fc Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-03 16:39:41 +00:00
Andreea Pavel 3ccd75af8d Backed out changeset b9d2965591b9 (bug 1761040) for landing with wrong author CLOSED TREE DONTBUILD 2022-08-03 18:55:00 +03:00
Andreea Pavel fdb7cb2ecd Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-03 15:27:43 +00:00
Lee Salzman 6e50eec03b Bug 1773712 - Enable accelerated Canvas2D on macOS nightly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D148917
2022-08-03 15:16:28 +00:00
Jan-Niklas Jaeschke 536950b708 Bug 1772399: Disable dom.select_events.textcontrols.selectstart. r=edgar
Disabled pref dom.select_events.textcontrols.selectstart also for nightly build.

Differential Revision: https://phabricator.services.mozilla.com/D153561
2022-08-03 14:53:30 +00:00
Bogdan Szekely 9b19959381 Backed out changeset 07e7637819ec (bug 1773712)for causing reftest failures on 1304353-text-global-composite-op-1.html 2022-08-03 10:03:39 +03:00
Kelsey Gilbert 8969436550 Bug 1778144 - Add limit webgl.fake-verts.max=10M. r=gfx-reviewers,lsalzman
Otherwise seemingly lightweight but unusual calls like
drawArrays(offset:1.5billion) will try to allocate a very large gpu
buffer, which sometimes takes a very long time.

This is unusual and we shouldn't encourage it, so let's just add a
limit. 10M is 160MB, which is generally big enough but not too big.

Differential Revision: https://phabricator.services.mozilla.com/D153533
2022-08-03 06:11:14 +00:00
Daisuke Akatsuka afb41c840f Bug 1782557: Get sponsored session timeout pref only when needed. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D153421
2022-08-03 01:26:40 +00:00
Geoff Lankow 057be4d33e Bug 1780137 - Make browser.sessionstore.platform_collection false for Thunderbird. r=calu
Differential Revision: https://phabricator.services.mozilla.com/D153441
2022-08-03 00:40:42 +00:00
Marian-Vasile Laza 1748a6af5e Backed out changeset 2430b3a3c59b (bug 1780137) for causing linting failures on firefox.js. CLOSED TREE 2022-08-03 02:37:27 +03:00
Hiroyuki Ikezoe 74df765210 Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. r=tnikkel,desktop-theme-reviewers,sfoster
Both Chrome and Edge on Windows also move the swipe-to-nav arrow icon, the
distance of move seems to be a fixed value, it doesn't depend on the browser
window size. So we also use a fixed value, 100px here.

Chrome on Mac also moves the icon, but in a slightly different way. The icon is
a semicircle shape, it never leaves the edge of the browser window even if it's
moving during swipe gestures. So we introduce a new preference named
"browser.swipe.navigation-icon-move-distance" to implement platform dependent
swipe-to-nav icon behaviors. As of now the value on platforms other than Windows
is zero so that the icon never moves on the platforms.

Depends on D152951

Differential Revision: https://phabricator.services.mozilla.com/D150433
2022-08-02 23:08:46 +00:00
Geoff Lankow 2da11a22fe Bug 1780137 - Make browser.sessionstore.platform_collection false for Thunderbird. r=calu
Differential Revision: https://phabricator.services.mozilla.com/D153441
2022-08-02 23:01:22 +00:00
Andrew Osmond f39bf41b7f Bug 1782731 - Make gfx.font_rendering.fontconfig.max_generic_substitutions threadsafe. r=jfkthame
This pref could be accessed off the main thread with workers. Convert it
to a threadsafe StaticPref.

Differential Revision: https://phabricator.services.mozilla.com/D153470
2022-08-02 20:58:41 +00:00
Lee Salzman b8c6b1034f Bug 1773712 - Enable accelerated Canvas2D on macOS nightly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D148917
2022-08-02 19:26:49 +00:00
criss 0d7af74214 Backed out changeset 32689459fc62 (bug 1782731) for causing reftest failures. CLOSED TREE 2022-08-02 21:34:06 +03:00
Andrew Osmond 94fc207dd3 Bug 1782731 - Make gfx.font_rendering.fontconfig.max_generic_substitutions threadsafe. r=jfkthame
This pref could be accessed off the main thread with workers. Convert it
to a threadsafe StaticPref.

Differential Revision: https://phabricator.services.mozilla.com/D153470
2022-08-02 15:07:34 +00:00
Jens Stutte 3ca1fb43c7 Bug 1777198 - Cancel content JS execution on quit-application-granted or on normal content process shutdown. r=smaug
We want to signal content processes to cancel content JS unconditionally on shutdown.
In the case of parent shutdown this has to happen as early as "quit-application-granted", given that both extensions and session storage shutdown rely on the possibility to interact with content processes (which is not possible when they are inside long running JS).
In addition in the case of a normal child shutdown we cancel content JS execution, too.
For now we put this behind the pref "dom.abort_script_on_child_shutdown" which remains default off.

Depends on D150539

Differential Revision: https://phabricator.services.mozilla.com/D150598
2022-08-02 14:02:40 +00:00
Jan de Mooij 420304b600 Bug 1774178 - Add a pref to disable Spectre mitigations for Fission content processes. r=nika,tjr,iain
These flags are usually initialized very early on, but because child processes are
pre-allocated and then later specialized for a specific process type, we need to
reset them later. This patch adds a new API for this that has some extra assertions.

Differential Revision: https://phabricator.services.mozilla.com/D152373
2022-08-02 13:23:58 +00:00
Sandor Molnar 646227cd7d Backed out 2 changesets (bug 1777198) for causing build bustage in dom/ipc/ProcessHangMonitor.cpp CLOSED TREE
Backed out changeset 472fe2d7af01 (bug 1777198)
Backed out changeset 0b9cb5b44360 (bug 1777198)
2022-08-02 14:08:45 +03:00
Jon Coppeard 0ebad143ef Bug 1770768 - Part 3: Add browser prefs for the new GC parameters r=mccr8,sfink
Differential Revision: https://phabricator.services.mozilla.com/D152864
2022-08-02 10:05:05 +00:00
Jens Stutte f9302b34cc Bug 1777198 - Cancel content JS execution on quit-application-granted or on normal content process shutdown. r=smaug
We want to signal content processes to cancel content JS unconditionally on shutdown.
In the case of parent shutdown this has to happen as early as "quit-application-granted", given that both extensions and session storage shutdown rely on the possibility to interact with content processes (which is not possible when they are inside long running JS).
In addition in the case of a normal child shutdown we cancel content JS execution, too.
For now we put this behind the pref "dom.abort_script_on_child_shutdown" which remains default off.

Depends on D150539

Differential Revision: https://phabricator.services.mozilla.com/D150598
2022-08-02 09:08:23 +00:00
Norisz Fay 17e1015627 Backed out 2 changesets (bug 1776795) for causing bc failures on browser_test_swipe_gesture.js CLOSED TREE
Backed out changeset 7bed4509ae7c (bug 1776795)
Backed out changeset 344336b54939 (bug 1776795)
2022-08-02 10:48:53 +03:00
Hiroyuki Ikezoe 0cc2a4681a Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. r=tnikkel,desktop-theme-reviewers,sfoster
Both Chrome and Edge on Windows also move the swipe-to-nav arrow icon, the
distance of move seems to be a fixed value, it doesn't depend on the browser
window size. So we also use a fixed value, 100px here.

Chrome on Mac also moves the icon, but in a slightly different way. The icon is
a semicircle shape, it never leaves the edge of the browser window even if it's
moving during swipe gestures. So we introduce a new preference named
"browser.swipe.navigation-icon-move-distance" to implement platform dependent
swipe-to-nav icon behaviors. As of now the value on platforms other than Windows
is zero so that the icon never moves on the platforms.

Differential Revision: https://phabricator.services.mozilla.com/D150433
2022-08-02 06:49:55 +00:00
Andreea Pavel 89d63c91e6 Backed out changeset a907159a482f (bug 1761040) for causing build bustages on a CLOSED TREE 2022-08-02 04:59:08 +03:00