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

20084 Коммитов

Автор SHA1 Сообщение Дата
Yury Delendik fae33ff23a Bug 1737405 - Disable wasm caching for release/beta. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D130403
2021-11-04 22:39:00 +00:00
Iulian Moraru bfcef5343a Backed out 3 changesets (bug 1726617) for causing mda failures on test_peerConnection_setParameters_scaleResolutionDownBy.html. CLOSED TREE
Backed out changeset 6fcd37deab57 (bug 1726617)
Backed out changeset ce2fff273989 (bug 1726617)
Backed out changeset c2b91ea8f0b1 (bug 1726617)
2021-11-05 00:15:00 +02:00
Csoregi Natalia 7ab05bef5f Merge mozilla-central to autoland. a=merge CLOSED TREE 2021-11-04 23:53:32 +02:00
Csoregi Natalia d2f8488b6a Backed out 7 changesets (bug 1729640) for causing permafailures on browser_web_process_isolation.js. a=backout
Backed out changeset 5b2a1799ce4e (bug 1729640)
Backed out changeset fcd4b833ad73 (bug 1729640)
Backed out changeset 5ff8d3adc6eb (bug 1729640)
Backed out changeset b8fd0343ca42 (bug 1729640)
Backed out changeset fbd6928e34ef (bug 1729640)
Backed out changeset 4ce2eebab0c4 (bug 1729640)
Backed out changeset c7c50c85f911 (bug 1729640)
2021-11-04 23:44:26 +02:00
John Lin 82dec2aaad Bug 1726617 - p1: use video encoder fallback wrapper in WebRTC. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D126975
2021-11-04 16:30:52 +00:00
Andrew Osmond a39c65797b Bug 1734649 - Part 4. Lift some conditions preventing WebGL OOP. r=jgilbert
Now that WebGL runs on the Renderer thread in the compositor process
when OOP, we can now lift the threadsafe condition on Linux preventing
WebGL OOP. Regardless of webgl.out-of-process's setting, we should
always prefer by default to run worker WebGL contexts OOP to avoid
similar threadsafe conflicts in the content process.

Differential Revision: https://phabricator.services.mozilla.com/D129896
2021-11-04 16:29:45 +00:00
Dimi df6cdccbaa Bug 1729640 - P6. Add a preference to enable setting `HighValueIsLoggedIn` permission when fission is off. r=farre
The preference should be enabled before rolling out "fission for authenticated sites"
to makes sure we have the permissions there when the feature is on.

Differential Revision: https://phabricator.services.mozilla.com/D127107
2021-11-04 11:17:05 +00:00
Dimi baec8fcc2f Bug 1729640 - P5. Add a preference to control the expiration time of login related high-value permission. r=farre
Right now, all high-value permissions have the same expiration time, but
we might want to set difference expiration time for different
high-value permission type in the future.

Differential Revision: https://phabricator.services.mozilla.com/D127106
2021-11-04 11:17:04 +00:00
Nicolas Silva 51efadfa3e Bug 1737648 - Don't batch uploads for items larger than a certain size. r=gfx-reviewers,bradwerth
The default size on most platforms is 256*256 which corresponds to the default blob tile size. I didn't check on android so I set it to 512*512 above which we never batch the upload so that the behavior is unchanged, but I suspect that a smaller threshold like 256*256 would also work better there.

On Windows with heavy blob image workloads, not batching gives a 20%-30% improvement to the time spent in update_texture_cache.

Differential Revision: https://phabricator.services.mozilla.com/D129516
2021-11-03 16:42:42 +00:00
Sandor Molnar 447e3e3ae0 Merge mozilla-central to autoland. a=merge CLOSED TREE 2021-11-02 23:38:06 +02:00
Sandor Molnar 1e7f7235cf Merge autoland to mozilla-central. a=merge 2021-11-02 23:25:38 +02:00
Emily McDonough cf66c49f6f Bug 1738358 - Pref on layout.css.page-size.enabled r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D129873
2021-11-02 20:07:10 +00:00
Sandor Molnar 177a5eac32 Backed out changeset 02ea2d15bf4c (bug 1732736) for preventing content from getting rendered (bug 1738977). a=backout CLOSED TREE 2021-11-02 22:03:30 +02:00
Sebastian Hengst 220b2dbfbb Bug 1738963 - correct early beta variable name guarding preference in StaticPrefs.yaml. r=emilio
The code added in bug 1738616 used `EARLY_BETA_OR_EARLIER` but
`IS_EARLY_BETA_OR_EARLIER` should be used.

Differential Revision: https://phabricator.services.mozilla.com/D130208
2021-11-02 19:11:22 +00:00
Emilio Cobos Álvarez c9b9e30776 Bug 1738663 - Add a pref to expose all shorthands in the computed style. r=layout-reviewers,mats
Make it always false for now, as we still need a solution for
layout-dependent shorthands like margin, padding, border, etc.

Differential Revision: https://phabricator.services.mozilla.com/D130039
2021-11-02 14:22:51 +00:00
Norisz Fay 47a4e47af2 Backed out 7 changesets (bug 1729640) for causing Bp-hybrid bustages on LoginDetectionService.o CLOSED TREE
Backed out changeset 4d3532da5652 (bug 1729640)
Backed out changeset 9ec5346cf9d9 (bug 1729640)
Backed out changeset 43dd05680186 (bug 1729640)
Backed out changeset f44a8f37d84c (bug 1729640)
Backed out changeset 66376bee8cef (bug 1729640)
Backed out changeset c7ffe85380d7 (bug 1729640)
Backed out changeset ae9c5de3902a (bug 1729640)
2021-11-02 16:33:01 +02:00
Dimi eb940edabd Bug 1729640 - P6. Add a preference to enable setting `HighValueIsLoggedIn` permission when fission is off. r=farre
The preference should be enabled before rolling out "fission for authenticated sites"
to makes sure we have the permissions there when the feature is on.

Differential Revision: https://phabricator.services.mozilla.com/D127107
2021-11-02 13:47:49 +00:00
Dimi 6e9172c15e Bug 1729640 - P5. Add a preference to control the expiration time of login related high-value permission. r=farre
Right now, all high-value permissions have the same expiration time, but
we might want to set difference expiration time for different
high-value permission type in the future.

Differential Revision: https://phabricator.services.mozilla.com/D127106
2021-11-02 13:47:49 +00:00
Emilio Cobos Álvarez d0295b6c6f Bug 1738781 - Invalidate anchor after layout if we can find a better one. r=dholbert
This is _very_ similar to code Blink has dealing with
content-visibility: auto:

  https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/layout/scroll_anchor.cc;l=658-659;drc=fd8802b593110ea18a97ef044f8a40dd24a622ec

They don't have this problem on the original test-case because they
incorrectly invalidate the anchor when focus changes regardless of
whether the focus is a "priority element" per spec.

So I think this is a better, more consistent behavior over all.

Differential Revision: https://phabricator.services.mozilla.com/D130130
2021-11-02 10:59:50 +00:00
Emilio Cobos Álvarez 88397b3a00 Bug 1738613 - Provide generic dark hyperlink system colors. r=dholbert
This will make sure they're used on Windows for the dark color scheme.

Differential Revision: https://phabricator.services.mozilla.com/D129993
2021-11-02 10:45:04 +00:00
Hiroyuki Ikezoe e5085ada71 Bug 1738839 - Drop layout.css.scroll-behavior.enabled. r=dholbert
It's been enabled by default for years since bug 1087559.

Differential Revision: https://phabricator.services.mozilla.com/D130147
2021-11-02 06:58:47 +00:00
Sebastian Hengst 22d3b81141 Merge mozilla-central to autoland. CLOSED TREE 2021-11-01 23:06:15 +01:00
Sebastian Hengst d21e359bd2 Merge autoland to mozilla-central. a=merge 2021-11-01 22:58:34 +01:00
sotaro c775c1f269 Bug 1732736 - Enable window occlusion on Nightly on Windows r=jrmuizel,gfx-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D127366
2021-11-01 21:28:44 +00:00
Emilio Cobos Álvarez 71e6f9ec23 Bug 1738616 - Enable color-scheme for nightly and early beta. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129995
2021-11-01 10:53:36 +00:00
criss b70d72fb37 Backed out 2 changesets (bug 1738616) for causing failures on system-color-compute.html. CLOSED TREE
Backed out changeset 4a5f291ac21e (bug 1738616)
Backed out changeset 900009f02d58 (bug 1738616)
2021-11-01 10:45:28 +02:00
Emilio Cobos Álvarez 9300aecfc2 Bug 1738616 - Enable color-scheme for nightly and early beta. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129995
2021-11-01 00:00:14 +00:00
Emilio Cobos Álvarez 69eeb9cb6c Bug 1738608 - Make autofill background configurable via system color prefs. r=mstange
And remove the autofill.background pref for 95 (or 96, depending on
when this lands) assuming nothing terrible causes us to turn it off on
94.

Differential Revision: https://phabricator.services.mozilla.com/D129988
2021-10-31 21:28:58 +00:00
Emilio Cobos Álvarez 1421e7f545 Bug 1525107 - Make Canvas/CanvasText and Link colors color-scheme-aware. r=dholbert
For that, add `.dark` version of the browser.display* prefs that control
the light version of these colors.

The default for background/foreground colors are taken from the
GenericDarkColors used in LookAndFeel.

The defaults for links are based on this discussion:

  https://github.com/whatwg/html/issues/5426#issuecomment-904021675

(So they effectively match Chrome).

Whether the dark colors should be exposed in about:preferences (like the
light colors are) is TBD.

With this patch, we pass all the tests in:

  /html/semantics/document-metadata/the-meta-element/color-scheme/

Use the colors to paint the default canvas background and the default
colors.

There are three "regressions", though they are really progressions: we
now render the reference as the test expects (before we rendered a light
canvas background even for the reference).

Apart of these iframe tests (which we should look into, I filed
https://bugzilla.mozilla.org/show_bug.cgi?id=1738380), there are three
remaining test failures.

Two of them are due to `color: initial` not changing based on the
color-scheme. Safari also fails these tests, and the thing they're
really testing is whether system colors are preserved at computed-value
time:

  https://github.com/w3c/csswg-drafts/issues/3847

Regarding that change, I'm not so sure the trade-offs there are worth
it, as that not only complicates interpolation (we wouldn't be able to
use system colors in color-mix among others, see
https://github.com/w3c/csswg-drafts/issues/5780) plus it changes
inheritance behavior in sorta unexpected ways, see:

  https://github.com/w3c/csswg-drafts/issues/6773

Which I just filed because apparently no browser implements this
correctly. So for now will punt on those (keep matching Safari).

There's an svg-as-image test:

  https://searchfox.org/mozilla-central/rev/f8576fec48d866c5f988baaf1fa8d2f8cce2a82f/testing/web-platform/tests/css/css-color-adjust/rendering/dark-color-scheme/svg-as-image.html

Which isn't using the feature at all and I'm not sure why is it supposed
to pass (why prefers-color-scheme: dark is supposed to match that SVG
image). This test fails in all browsers apparently:

  https://wpt.fyi/results/css/css-color-adjust/rendering/dark-color-scheme/svg-as-image.html?label=master&label=experimental&aligned

I sent https://github.com/web-platform-tests/wpt/pull/31407 to remove
it and hopefully get it reviewed by some Chromium folks.

Differential Revision: https://phabricator.services.mozilla.com/D129746
2021-10-29 19:58:25 +00:00
Sandor Molnar 561514f385 Backed out changeset b70cded0d229 (bug 1738358) for causing wpt failures in /css/css-values/viewport-units-css2-001. CLOSED TREE 2021-10-29 04:19:27 +03:00
Emily McDonough ba9c617ddf Bug 1738358 - Pref on layout.css.page-size.enabled r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D129873
2021-10-28 22:45:18 +00:00
Sandor Molnar 74bf4d6ffa Backed out 3 changesets (bug 1736066) for causing webgl failures in gfx/2d/Logging. CLOSED TREE
Backed out changeset 99a4bb2e493b (bug 1736066)
Backed out changeset 948a1595c3d8 (bug 1736066)
Backed out changeset b371e1b31863 (bug 1736066)
2021-10-28 22:10:39 +03:00
Jeff Gilbert 81443b1859 Bug 1736066 - Add prefs for `gl.khr-debug`. r=gfx-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D129739
2021-10-28 17:30:42 +00:00
Sean Feng 5283aecc5d Bug 1468476 - Make soft reload only force validates top level document r=necko-reviewers,nika,dragana,asuth
Currently, soft reload uses the `VALIDATE_ALWAYS` flag to not only
force revalidate the top level document, but also subresources.
This causes content to be refetched from the web even if there
are caches that are still valid and can be used.

Chrome already has such behaviour to not revalidate all resources.

Differential Revision: https://phabricator.services.mozilla.com/D122270
2021-10-28 16:11:56 +00:00
Alexandru Michis 363dc1e112 Backed out 3 changesets (bug 1732792, bug 1733481) for causing talos crashes in ConditionVariableImpl and xpcshell failures in test_remote_settings_utils.js.
CLOSED TREE

Backed out changeset 309190b4a49d (bug 1732792)
Backed out changeset 600e6dfd7436 (bug 1732792)
Backed out changeset 834441a08cc0 (bug 1733481)
2021-10-27 22:37:07 +03:00
Bryce Seager van Dyk d3d8c4792a Bug 1714621 - Add functionality to verify GMP's update xml content signatures. r=Gijs,robwu
Also driveby fix a log string to print the proper function name.

Differential Revision: https://phabricator.services.mozilla.com/D127566
2021-10-27 17:51:28 +00:00
Shane Caraveo b683ebea88 Bug 1733481 retry telemetry requests when a proxy fails r=chutten,robwu,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D127170
2021-10-27 16:16:50 +00:00
Narcis Beleuzu 8d46d339ac Backed out 4 changesets (bug 1714621) for xpcshell failures on test_GMPInstallManager.js . CLOSED TREE
Backed out changeset 700c2785dba6 (bug 1714621)
Backed out changeset 5791dc3eaa95 (bug 1714621)
Backed out changeset 5eaba5f37b3f (bug 1714621)
Backed out changeset 753d457df764 (bug 1714621)
2021-10-27 06:47:57 +03:00
Bryce Seager van Dyk 07506353a2 Bug 1714621 - Add functionality to verify GMP's update xml content signatures. r=Gijs,robwu
Also driveby fix a log string to print the proper function name.

Differential Revision: https://phabricator.services.mozilla.com/D127566
2021-10-27 02:37:09 +00:00
Marian-Vasile Laza 84fc0a136f Backed out changeset 3882acd862fc (bug 1733481) for causing build bustages on HttpBaseChannel.cpp. CLOSED TREE 2021-10-27 01:37:32 +03:00
Shane Caraveo 863c48338b Bug 1733481 retry telemetry requests when a proxy fails r=chutten,robwu,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D127170
2021-10-26 20:32:52 +00:00
Narcis Beleuzu 331a8b2a4f Backed out changeset 054e0b5325a3 (bug 1733481) for xpcshell failures on /test_failover_retry.js CLOSED TREE 2021-10-26 21:57:33 +03:00
Shane Caraveo 5b177fc77d Bug 1733481 retry telemetry requests when a proxy fails r=chutten,robwu,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D127170
2021-10-26 18:16:38 +00:00
Luca Greco b74268bdf7 Bug 1636629 - Permission check on stream filter parent creation. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D128737
2021-10-26 16:44:10 +00:00
Sandor Molnar 799be2330b Backed out changeset 5a4d9d296d42 (bug 1733481) for causing xpc failures in unit/test_failover_retry. CLOSED TREE 2021-10-26 18:39:07 +03:00
Shane Caraveo 15e1356e3b Bug 1733481 retry telemetry requests when a proxy fails r=chutten,robwu,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D127170
2021-10-26 14:41:11 +00:00
Bob Owen 93b7d525df Bug 1713973 p4: Test brokered complex breaker against Uniscribe in content. r=jfkthame
Depends on D129143

Differential Revision: https://phabricator.services.mozilla.com/D129144
2021-10-26 09:58:52 +00:00
Makoto Kato e55adae53e Bug 1205133 - Ship inputmode attribute. r=smaug,preferences-reviewers
Since we have fixed all compatibility bugs and dependencies, so let's
ship this attribute since all browsers already support this.

Differential Revision: https://phabricator.services.mozilla.com/D129229
2021-10-26 09:20:47 +00:00
Iulian Moraru a946af09ec Backed out 2 changesets (bug 1636629) for causing xpcshell failures on test_ext_permissions_api.js. CLOSED TREE
Backed out changeset 9791a5dc84d8 (bug 1636629)
Backed out changeset 8ec39d08c9af (bug 1636629)
2021-10-25 22:17:27 +03:00
Luca Greco ab508f1a0e Bug 1636629 - Permission check on stream filter parent creation. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D128737
2021-10-25 17:49:34 +00:00
Gijs Kruitbosch a5f2c36235 Bug 1732347 - enable download improvements pref on Nightly r=RT
Differential Revision: https://phabricator.services.mozilla.com/D129398
2021-10-25 16:16:13 +00:00
Denis Palmeiro a728edfd6d Bug 1736057 - Enable off thread full parsing by default for external JS scripts r=smaug,bas
The results from a nightly experiment, found at https://protosaur.dev/partybal/bug_1722551_pref_full_js_parsing_experiment_nightly_94_94.html, indicate that there is a 2% improvement in the page load time by enabling full parsing for external JS scripts.  This is most noticeable in the low cpu segment, where improvements of up to 10% can be seen.  This all comes at a memory increase of about 1% in the median, and 4% in the worst case.

Differential Revision: https://phabricator.services.mozilla.com/D129158
2021-10-25 14:54:26 +00:00
Valentin Gosu 351529bccf Bug 1737080 - Disable moving cookies to save power r=florian
Differential Revision: https://phabricator.services.mozilla.com/D129392
2021-10-25 13:56:30 +00:00
Tim Chevalier be12c6c29d Bug 1729563 - Add shell flag for change-array-by-copy methods r=mgaudet,arai
Add a build flag and shell flag for enabling change-array-by-copy methods.
    The flags currently have no effect.

Differential Revision: https://phabricator.services.mozilla.com/D127201
2021-10-22 18:38:09 +00:00
Butkovits Atila 868d142f3a Backed out 3 changesets (bug 1729563) for causing python failures. CLOSED TREE
Backed out changeset 4376dd492672 (bug 1729563)
Backed out changeset 4ebf6330fb4e (bug 1729563)
Backed out changeset f01c6f2e678d (bug 1729563)
2021-10-22 09:34:43 +03:00
Tim Chevalier 2dcddd4f98 Bug 1729563 - Add shell flag for change-array-by-copy methods r=mgaudet,arai
Add a build flag and shell flag for enabling change-array-by-copy methods.
    The flags currently have no effect.

Differential Revision: https://phabricator.services.mozilla.com/D127201
2021-10-22 06:04:29 +00:00
Julian Descottes 64526df84a Bug 1735359 - [devtools] Enable DevTools auto theme by default r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D128268
2021-10-21 21:08:24 +00:00
Emilio Cobos Álvarez f317384568 Bug 1736518 - Make browser.tabs.drawInTitlebar a tri-state. r=stransky,Gijs
To more properly support Linux having a different default at runtime.

Expose the resolved value in appinfo for convenience, and use it in the
front-end as needed.

Differential Revision: https://phabricator.services.mozilla.com/D129004
2021-10-21 09:07:12 +00:00
Csoregi Natalia 0aabf6df40 Backed out 2 changesets (bug 1667913) for causing assertion failures on Marking.cpp. CLOSED TREE
Backed out changeset 1688c63ebe62 (bug 1667913)
Backed out changeset 00cc848acd05 (bug 1667913)
2021-10-21 03:58:43 +03:00
Steve Fink 7aeea8eb2e Bug 1667913 - Enable incremental weakmap marking in the browser r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D91665
2021-10-20 13:52:35 +00:00
Emilio Cobos Álvarez 736cd85309 Bug 1736141 - Derive a content theme from newtab page background, and use it for non-chrome docshells. r=mstange,dao
We use "is-in-chrome-docshell" rather than "is a chrome doc" so that about:
pages that are loaded in the content area (like about:addons etc) follow the
general content theme as well.

Cache the relevant color schemes since having that many branches on the default
system theme made me a bit uncomfortable, and this code can be called quite a
lot... Though it probably isn't such a huge deal. This makes us initialize the
theme right away, so make sure subclasses do the right thing. This in practice
was only an issue for GTK, which does cache the "system theme is dark" bit.

Differential Revision: https://phabricator.services.mozilla.com/D128674
2021-10-20 08:25:57 +00:00
Manuel Bucher 90522eeeca Bug 1734579 - Make block size of encrypted edns padding configurable r=necko-reviewers,valentin
Additionally changing the paddding block size to the recommended default
of 128 bytes by RFC 8467 Sec 4.1

Differential Revision: https://phabricator.services.mozilla.com/D127957
2021-10-20 07:51:14 +00:00
Brad Werth 641690fbbd Bug 1733500: Enable video specialization for M1 Macs. r=mstange
This is now safe and sufficient because software-encoded videos are no longer
permitted for video specialization.

Differential Revision: https://phabricator.services.mozilla.com/D128921
2021-10-19 20:45:03 +00:00
Jeff Muizelaar d0524132fe Bug 1736672 - Enable NV12 IOSurfaces by default. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D128919
2021-10-19 19:21:36 +00:00
Nicolas Silva 962e3b930f Bug 1723134 - Make SwapInterval configurable via prefs for EGL and GLX. r=gfx-reviewers,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D128476
2021-10-19 15:04:08 +00:00
Niklas Goegge 1244799959 Bug 1732052: Remove pref privacy.file_unique_origin r=ckerschb,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D126898
2021-10-19 12:57:34 +00:00
Robert Mader 873d1bdc06 Bug 1644606 - Add a pref to select between GLES and desktop GL contexts on EGL, r=gfx-reviewers,nical
This preference was requested by driver developers, simplifying
debugging processes. It is especially useful on Linux, but may
be handy on other platforms as well.

As a side effect it also ensures the two places with fallback paths
behave the same again on Android.

Depends on D128411

Differential Revision: https://phabricator.services.mozilla.com/D128592
2021-10-19 11:11:47 +00:00
Marian-Vasile Laza 35bb26d03e Backed out changeset af60c05d5dae (bug 1723134) for causing buid bustages on RenderCompositorEGL.cpp. 2021-10-19 13:52:26 +03:00
Timothy Nikkel 35a0a509c6 Bug 1734571. Remove old unused layers tiling left over code bits. r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D127787
2021-10-19 10:12:25 +00:00
Nicolas Silva d3c8057ea3 Bug 1723134 - Make SwapInterval configurable via prefs for EGL and GLX. r=gfx-reviewers,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D128476
2021-10-19 09:22:01 +00:00
Nika Layzell 90a12e2587 Bug 1725572 - Part 3: Recover from a missing subframe BrowsingContext in ConstructBrowser, r=smaug
If the BrowsingContext is missing in ConstructBrowser, previously we would fail
out, crashing the content process. With this new change, we instead exit
successfully, destroying the `ManagedEndpoint` instances due to the earlier
changes in this bug, and displaying the subframe as crashed.

As we don't know how to reproduce the case which caused this crash, this change
instead triggers the failure using a custom pref, which can be used to request
that attempts to create a BrowserParent for a specific BrowsingContext fail in
the same way as it would for a missing BrowsingContext, allowing us to test the
behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D128778
2021-10-18 22:59:18 +00:00
John Lin d89f68f599 Bug 1734547 - mactch H.264 platform codec prefs for WebRTC tests. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D128542
2021-10-18 18:50:56 +00:00
msub2 ec13fe8427 Bug 1616394 - Convert quantization const in XRNativeOriginLocalFloor to a preference. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D128695
2021-10-18 15:15:49 +00:00
Lars T Hansen 6cfaf94769 Bug 1727084 - Memory64 - Preliminaries. r=yury
Scaffolding: Add assertions everywhere execution currently depends on
a memory being a memory32.  These assertions will disappear by and by.

Add some useful predicates and guard memory64 on !huge-memory.

Make it possible for the initial heap size to be a 64-bit value,
update WasmBCE.cpp to deal with this, and note in a comment that this
does not affect asm.js at all.

Exclude Cranelift and MIPS64 from memory64 in moz.configure; this
is extra work that does not pay off at this time.

Enable the inclusion of memory64 code by default in moz.configure.

Flip the about:config switch to false so that we can land in Nightly
without exposing content to m64 until we have completed Milestone 2.

Test cases are in the last patch in the queue.

Differential Revision: https://phabricator.services.mozilla.com/D124887
2021-10-18 09:58:13 +00:00
Julian Descottes 0fd5bdd82c Bug 1735358 - [devtools] Switch back default theme from auto to light/dark r=nchevobbe
Depends on D128093

We will attempt to re-enable the auto theme by default in Bug 1735359

Differential Revision: https://phabricator.services.mozilla.com/D128239
2021-10-18 07:54:45 +00:00
criss 46c110a0d3 Backed out 9 changesets (bug 1727084) for causing spidermonkey bustages on WasmMemory.cpp. CLOSED TREE
Backed out changeset 25456db35c17 (bug 1727084)
Backed out changeset 27db0e6a7010 (bug 1727084)
Backed out changeset 1ab8383d17ee (bug 1727084)
Backed out changeset 6089b4360edc (bug 1727084)
Backed out changeset b9d32ef0ad83 (bug 1727084)
Backed out changeset 359e414a1d7f (bug 1727084)
Backed out changeset d13d8c76693a (bug 1727084)
Backed out changeset 63ce829d63b4 (bug 1727084)
Backed out changeset 5315e548b651 (bug 1727084)
2021-10-18 11:52:31 +03:00
Lars T Hansen 96fecc40b8 Bug 1727084 - Memory64 - Preliminaries. r=yury
Scaffolding: Add assertions everywhere execution currently depends on
a memory being a memory32.  These assertions will disappear by and by.

Add some useful predicates and guard memory64 on !huge-memory.

Make it possible for the initial heap size to be a 64-bit value,
update WasmBCE.cpp to deal with this, and note in a comment that this
does not affect asm.js at all.

Exclude Cranelift and MIPS64 from memory64 in moz.configure; this
is extra work that does not pay off at this time.

Enable the inclusion of memory64 code by default in moz.configure.

Flip the about:config switch to false so that we can land in Nightly
without exposing content to m64 until we have completed Milestone 2.

Test cases are in the last patch in the queue.

Differential Revision: https://phabricator.services.mozilla.com/D124887
2021-10-18 07:31:54 +00:00
Yury Delendik 469b4875d8 Bug 1487113 - Add pref javascript.options.wasm_caching. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D27101
2021-10-15 21:13:44 +00:00
Iulian Moraru b3b30b910b Backed out changeset 8d4598bfbe3a (bug 1735358) for causing mochitest failures on browser_toolbox_theme_registration.js. CLOSED TREE 2021-10-16 00:21:51 +03:00
Julian Descottes d1f57ecd6d Bug 1735358 - [devtools] Switch back default theme from auto to light/dark r=nchevobbe
Depends on D128093

We will attempt to re-enable the auto theme by default in Bug 1735359

Differential Revision: https://phabricator.services.mozilla.com/D128239
2021-10-15 20:27:28 +00:00
Emilio Cobos Álvarez 48d5122fc4 Bug 1736078 - Remove widget.macos.support-dark-appearance. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D128627
2021-10-15 18:53:53 +00:00
Emilio Cobos Álvarez c4b7109fac Bug 1736038 - Remove -moz-toolbar-prefers-color-scheme. r=dao
By making prefers-color-scheme return the ColorSchemeForChrome(), which
accounts for the Firefox theme.

Differential Revision: https://phabricator.services.mozilla.com/D128611
2021-10-15 16:53:08 +00:00
Emilio Cobos Álvarez fb8e2b5796 Bug 1736038 - Simplify some color-scheme handling in core. r=mstange
Remove the follow-firefox-theme pref as now that's default everywhere,
and document better the behavior of the color-scheme property by
reworking and commenting the logic on it a bit.

Differential Revision: https://phabricator.services.mozilla.com/D128610
2021-10-15 16:53:08 +00:00
Emilio Cobos Álvarez 36c2a542fd Bug 1529323 - Make prefers-color-scheme follow the Firefox theme, not the system theme (by default). r=mstange,dao,extension-reviewers,robwu
Given all our UI is using -moz-toolbar-prefers-color-scheme, this seems
like a more reasonable default nowadays. Allow for it to be
configurable via the existing pref.

Differential Revision: https://phabricator.services.mozilla.com/D128527
2021-10-15 16:23:36 +00:00
Markus Stange 12287d863d Bug 1735893 - Add pref to use NV12 when uploading software-decoded video to an IOSurface. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D128512
2021-10-14 20:17:02 +00:00
Marian-Vasile Laza f3ed253216 Backed out 3 changesets (bug 1729563) as req by mgaudet (for causing Bug 1735775). CLOSED TREE
Backed out changeset dc52f8437ba0 (bug 1729563)
Backed out changeset baf92822b1bf (bug 1729563)
Backed out changeset 118e645725d0 (bug 1729563)
2021-10-14 19:33:36 +03:00
Hiroyuki Ikezoe f73bb3f591 Bug 1730998 - Remove apz peek messages stuff. r=botond
This stuff is now a no-op because the RequestContentRepaint message has a
higher priority than vsync.

Depends on D127033

Differential Revision: https://phabricator.services.mozilla.com/D127593
2021-10-14 09:43:03 +00:00
Chris Peterson 362e26da3b Bug 1723674 - Implement crypto.randomUUID(). r=keeler,nika
Google shipped crypto.randomUUID() in Chrome 92.

WICG draft specification for crypto.randomUUID():
https://wicg.github.io/uuid/

Differential Revision: https://phabricator.services.mozilla.com/D124313
2021-10-14 03:28:49 +00:00
Cosmin Sabou f5c2dbdc13 Backed out changeset 089c068b5541 (bug 1667913) for causing assertion failures related to Marking.cpp. CLOSED TREE 2021-10-13 21:51:40 +03:00
Steve Fink 8410eb9001 Bug 1667913 - Enable incremental weakmap marking in the browser r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D91665
2021-10-13 17:12:09 +00:00
Tim Chevalier bc93b45e77 Bug 1729563 - Add shell flag for change-array-by-copy methods r=mgaudet
Add a build flag and shell flag for enabling change-array-by-copy methods.
The flags currently have no effect.

Differential Revision: https://phabricator.services.mozilla.com/D127201
2021-10-13 14:43:19 +00:00
Dragana Damjanovic 9bca41ff8b Bug 1730935 - Disable Opportunistic Encryption, the feature has a low usage. r=kershaw,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D127426
2021-10-12 19:22:15 +00:00
Valentin Gosu 2458825e35 Bug 1506194 - Re-enable predictor prefetch on nightly r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D11519
2021-10-12 15:41:16 +00:00
Kershaw Chang 40dab11b6b Bug 1544127 - Always release load info on main thread, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D127675
2021-10-12 14:20:41 +00:00
Emilio Cobos Álvarez a884350674 Bug 1670480 - Add an "auto" theme for devtools which follows the browser's color scheme. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128093
2021-10-12 09:25:05 +00:00
Frederik Braun f4e0c8a772 Bug 1735117 - Restrict systemprincipal from loading type *STYLESHEET* via HTTP, HTTPS r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D128057
2021-10-12 07:42:14 +00:00
Kershaw Chang 6f1e16637d Bug 1732150 - Remove MITIGATION_DYNAMIC_CODE_DISABLE when we want to parsing PAC on socket process, r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D127552
2021-10-11 19:17:58 +00:00
Valentin Gosu 4ca55f4398 Bug 1733958 - Set network.cache.bug1708673 to false r=nhnt11
Bug 1731054 and bug 1708673 caused a performance regression.
We should disable the pref (on beta) to fix the regression while we investigate the causes.

Differential Revision: https://phabricator.services.mozilla.com/D128052
2021-10-11 14:24:56 +00:00
Valentin Gosu 105438b5b5 Bug 1721448 - Add a max-length for all URLs r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D126214
2021-10-11 12:38:29 +00:00
Cristian Tuns 557947a3d8 Backed out 2 changesets (bug 1732150, bug 1475641) for causing GTest failures on SocketProcessChild.cpp. CLOSED TREE
Backed out changeset 45877c2e8d6b (bug 1475641)
Backed out changeset d6684da1c643 (bug 1732150)
2021-10-11 07:07:33 -04:00
Emilio Cobos Álvarez a968c81236 Bug 560067 - Remove image.mem.allow_locking_in_content_processes. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D122115
2021-10-11 10:25:47 +00:00
Kershaw Chang 467f33dd4d Bug 1732150 - Remove MITIGATION_DYNAMIC_CODE_DISABLE when we want to parsing PAC on socket process, r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D127552
2021-10-11 08:30:41 +00:00
stransky bfd5190061 Bug 1734368 [Wayland] Use async FlushRendering on Wayland, r=sotaro
Synced FlushRendering() causes deadlock on Wayland.
Main thread is blocked at MessageChannel::WaitForSyncNotify() and it's not processing events from system.
Rendering thread is blocked at RendererOGL::UpdateAndRender() / eglQuerySurface(). Mesa is waiting for free back buffer
at get_back_bo(), it's spinning wl_display_roundtrip_queue() and waiting for free buffer but it doesn't get one as main loop is blocked.

Differential Revision: https://phabricator.services.mozilla.com/D127878
2021-10-09 15:26:49 +00:00
Iulian Moraru fbb38e7e80 Backed out 3 changesets (bug 1729563) for causing spidermonkey build bustages on unscopables.js. CLOSED TREE
Backed out changeset bc37e17a2ad6 (bug 1729563)
Backed out changeset 10a0cbbb62fd (bug 1729563)
Backed out changeset 8da51dd69cee (bug 1729563)
2021-10-08 18:38:36 +03:00
Tim Chevalier 937632cada Bug 1729563 - Add shell flag for change-array-by-copy methods r=mgaudet
Add a build flag and shell flag for enabling change-array-by-copy methods.
The flags currently have no effect.

Differential Revision: https://phabricator.services.mozilla.com/D127201
2021-10-08 15:12:15 +00:00
John Lin 27b2030726 Bug 1654112 - remove MediaCodecVP8Codec. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D115531
2021-10-07 12:11:40 -07:00
Sergey Galich f00d159f71 Bug 1730194 - Prevent Copy button to send information to Cloud Clipboard and Clipboard History on Windows r=dimi,johannh,cmartin
Differential Revision: https://phabricator.services.mozilla.com/D125831
2021-10-07 15:32:03 +00:00
Randell Jesup ef6201cb3e Bug 1698522: Process name setting cleanup r=nika,dveditz
Differential Revision: https://phabricator.services.mozilla.com/D108446
2021-10-07 14:57:10 +00:00
Emilio Cobos Álvarez 73805fe284 Bug 1734325 - Make the disable_xul_cache pref prevent chrome resources from getting cached. r=smaug
Do some drive-by clean-up, and remove telemetry for this since add-ons
can no longer tweak this pref.

Differential Revision: https://phabricator.services.mozilla.com/D127812
2021-10-07 13:29:00 +00:00
Manuel Bucher 3cc3731145 Bug 1543811 - EDNS Padding support for encrypted DNS transports r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D126480
2021-10-07 10:55:21 +00:00
Jens Stutte 8e6e0ce8c0 Bug 1731564: Use motivated SpinEventLoopUntil inside modules/*. r=Gijs,KrisWright
Depends on D127230

Differential Revision: https://phabricator.services.mozilla.com/D127231
2021-10-07 08:06:13 +00:00
june wilde 692c22b993 Bug 1670058 - support Global Privacy Control signal; r=smaug,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D126966
2021-10-07 07:55:30 +00:00
Marian-Vasile Laza 18fb16c542 Backed out 18 changesets (bug 1731564) for causing build bustages on SpinEventLoopUntil. CLOSED TREE
Backed out changeset 0464dbdc8584 (bug 1731564)
Backed out changeset 0d996df13545 (bug 1731564)
Backed out changeset 5630a0e7a109 (bug 1731564)
Backed out changeset 37b41d187cdb (bug 1731564)
Backed out changeset d37700fa60b6 (bug 1731564)
Backed out changeset b0ce7db44b99 (bug 1731564)
Backed out changeset aa5ec3aa1535 (bug 1731564)
Backed out changeset 73b648f1fa70 (bug 1731564)
Backed out changeset bb8fb0f9833e (bug 1731564)
Backed out changeset 0d8905144f5d (bug 1731564)
Backed out changeset 2cfb094a1ec3 (bug 1731564)
Backed out changeset 78d3b0257a6a (bug 1731564)
Backed out changeset e9d32926e93c (bug 1731564)
Backed out changeset 874cab520ce5 (bug 1731564)
Backed out changeset d8071cc32bd9 (bug 1731564)
Backed out changeset 283c5393cbbc (bug 1731564)
Backed out changeset 317bc38e3de5 (bug 1731564)
Backed out changeset 53e3f4862439 (bug 1731564)
2021-10-07 00:09:19 +03:00
Jens Stutte 09fbcfad19 Bug 1731564: Use motivated SpinEventLoopUntil inside modules/*. r=Gijs,KrisWright
Depends on D127230

Differential Revision: https://phabricator.services.mozilla.com/D127231
2021-10-06 19:45:15 +00:00
Jon Bauman 97efb10d2e Bug 1725190 - Incorrect file extension when downloading CR3 files. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D127291
2021-10-06 19:02:15 +00:00
Emilio Cobos Alvarez 51b1017370 Bug 1734226 - Use a single pref to determine whether system colors follow the Firefox theme. r=desktop-theme-reviewers,dao
Now that windows is going to support dark colors, we want to make it
behave like other platforms in this regard.

Having a single pref for this seems better.

Differential Revision: https://phabricator.services.mozilla.com/D127624
2021-10-06 15:29:59 +00:00
Sandor Molnar c4af240897 Backed out 4 changesets (bug 1730998) for frequent Android gv-junit failures. CLOSED TREE
Backed out changeset 92641110e5c9 (bug 1730998)
Backed out changeset 7e496a4d1b55 (bug 1730998)
Backed out changeset 60d769e12932 (bug 1730998)
Backed out changeset 64a2b879aa79 (bug 1730998)
2021-10-06 16:43:50 +03:00
sotaro bbbd304278 Bug 1732733 - Add support of window occlusion on Windows by disabling it by pref r=jrmuizel,gfx-reviewers
Implementation is basically borrowed from chromium's NativeWindowOcclusionTrackerWin. For now, window occlusion could be applied only to toplevel window with compositor. Overview of current implementation is the following.
https://github.com/sotaroikeda/firefox-diagrams/blob/master/widget/widget_WinWindowOcclusionTracker_94.pdf

Capability of window occlusion is disabled by pref. VirtualDesktop handling is going to be handled by Bug 1732737.
nsPrintDialogUtil.cpp is moved to non-unified source to avoid build failure.

Differential Revision: https://phabricator.services.mozilla.com/D126710
2021-10-06 07:21:59 +00:00
Hiroyuki Ikezoe 508b513463 Bug 1730998 - Remove apz peek messages stuff. r=botond
This stuff is now a no-op because the RequestContentRepaint message has a
higher priority than vsync.

Differential Revision: https://phabricator.services.mozilla.com/D127593
2021-10-06 01:07:37 +00:00
Alexandru Michis 485a54ca75 Backed out changeset b61b692cfbce (bug 1670058) for causing bustages in nsHttpChannel.cpp
CLOSED TREE
2021-10-05 19:49:52 +03:00
june wilde e864a69420 Bug 1670058 - support Global Privacy Control signal; r=smaug,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D126966
2021-10-05 15:00:30 +00:00
Emilio Cobos Álvarez e50c80851e Bug 1734115 - Add basic support for dark form controls to nsNativeBasicTheme. r=mstange
For that:

 * Tweak the standin system colors to match the non-native theme.

 * Use those system colors for button and field backgrounds.

 * Rename the "should use system colors" bit to "is high contrast",
   which is what it really is (specially now that we use system colors
   also in non-high-contrast).

Border colors and other colors like the <input type=range> and such
might need some extra tweaking perhaps, but this is a decent start and
looks good in https://crisal.io/tmp/form-controls.html afaict (dark mode
toggle needs the color-scheme pref enabled of course).

Differential Revision: https://phabricator.services.mozilla.com/D127533
2021-10-05 14:40:52 +00:00
alwu 4b8179ea2b Bug 1722171 - use time threshold to determine if we need to skip to next key frame. r=bryce
In bug1692881, we introduced a mechanism to skip to next key frame if video decoding is too slow, which aims to help slow decoding issue on high resolution videos. Eg. 4k+.

However, there are some cases which would also lead to slow decoding. Eg. when internal seek (seek on one track only) happens on a place where we can't seek to directly, we need to seek to the previous keyframe and then decode all of them until we get the target frame.

That could lead to spending huge amount of time if the target frame is far from the keyframe, and causes decoded video frame later than the media time because audio won't stop playing during video seek. However, in above example, there would only be few frames later than the media time, and the video will soon catch up with the time.

As we only want to trigger this mechanism for continually slow decoding problem, and completely removing this mechanism would lead us fallback to the situation where some 4K+ videos would be frozen all the time during the playback.

In this patch, we introduce a method which still keep this mechanism but won't perform that as aggressive as before, this uses the time threshold to seek to the next keyframe when video has been late for too long.

Differential Revision: https://phabricator.services.mozilla.com/D126858
2021-10-05 00:00:02 +00:00
Emilio Cobos Alvarez 3e78dd6549 Bug 1030660 - Disable ClearBogusContentEncodingIfNeeded. r=necko-reviewers,valentin
Other browsers don't do this and it causes compat issues.

Differential Revision: https://phabricator.services.mozilla.com/D127255
2021-10-02 16:40:36 +00:00
Dragana Damjanovic 04599ffe8f Bug 1718520 - Disable early-data if a SSL_ERROR_PROTOCOL_VERSION_ALERT is received r=mt
If amount of origins that have early-data disabled exceeds certain amount, disable early-data for all origins

This is controlled by prefs.

Differential Revision: https://phabricator.services.mozilla.com/D126555
2021-10-01 12:14:21 +00:00
Timothy Nikkel 8e8f11e1e6 Bug 1733520. Remove apz.nonwr.activate_all_scroll_frames* prefs. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D127219
2021-10-01 09:13:32 +00:00
Mike Hommey 5245f8491f Bug 1733545 - Remove REQUIRES_UNIFIED_BUILD from third-party directories that don't need it. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D127229
2021-10-01 09:01:27 +00:00
Emilio Cobos Álvarez 11e13ddfae Bug 1733340 - Disable backdrop-filter for now. r=jnicol
There are a fair amount of performance and correctness issues that need
to be worked on, and at least I don't have the time to work on them
right now, so let's disable it until some of the issues blocking
bug 1578503 are fixed.

Differential Revision: https://phabricator.services.mozilla.com/D127085
2021-09-30 11:07:11 +00:00
Emily McDonough 7833c4252b Bug 1723239 - Enable layout.css.page-size.enabled in Nightly r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D126161
2021-09-29 20:05:47 +00:00
Brad Werth 09ff3640b9 Bug 1733148: Turn off video specialization for M1 Macs. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D126952
2021-09-29 17:49:22 +00:00
Butkovits Atila b50c2af0df Backed out changeset b9506763c2f6 (bug 1723239) for causing xpcshell failures in test_css-properties-db.js. CLOSED TREE 2021-09-29 05:42:05 +03:00
Emily McDonough 7f9fd32891 Bug 1723239 - Enable layout.css.page-size.enabled in Nightly r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D126161
2021-09-28 22:56:37 +00:00
Dimi 461b6bb1e9 Bug 1732901 - Enable multi-page login form in beta and release r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D126779
2021-09-28 18:07:57 +00:00
Emilio Cobos Álvarez 63a33c5d0c Bug 1730867 - Use native scrollbars on Android. r=mstange
We only draw a scrollbar thumb, so it's easy enough (fair amount of
boilerplate, though).

For now I've done the trivial thing (keep painting a round thumb without
other fancy things), as that's what we were doing, but in the future we
should consider drawing a stroke around the thumb like cocoa does to add
more contrast.

This patch does change behavior in some cases. For example dark websites
now get a lighter, easier to distinguish scrollbar, thanks to the
scrollbar darkening code in nsNativeBasicTheme.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D125826
2021-09-28 17:04:34 +00:00
Sandor Molnar 79f93e7a8b Backed out changeset fa3496e5bb76 (bug 1732726) for causing multiple failures on win webrender. CLOSED TREE 2021-09-28 20:55:56 +03:00
Csoregi Natalia 58cdf74c34 Backed out 3 changesets (bug 1730867) for multiple reftest failures. CLOSED TREE
Backed out changeset aed4ce969bb6 (bug 1730867)
Backed out changeset 84abb450636b (bug 1730867)
Backed out changeset bbd4d5126a19 (bug 1730867)
2021-09-28 19:47:49 +03:00
Makoto Kato 5f5a220996 Bug 1648332 - Ship enterkeyhint in release. r=smaug
`enterkeyhint` defines action label to present the enterkey of virtual
keyboard.

Actually, This attribute and setter/getter support on WebKit and Blink.
Even if desktop browsers (WebKit/macOS, Blink/Windows, Blink/macOS and
Blink/Linux) cannot set the enter key label on virtual keyboard, this is
supported.

So I would like to ship this to all platforms.

If this value is changed on desktop browser, it is unaffected.

Differential Revision: https://phabricator.services.mozilla.com/D126171
2021-09-28 13:29:53 +00:00
Emilio Cobos Álvarez 5510570ab7 Bug 1730867 - Use native scrollbars on Android. r=mstange
We only draw a scrollbar thumb, so it's easy enough (fair amount of
boilerplate, though).

For now I've done the trivial thing (keep painting a round thumb without
other fancy things), as that's what we were doing, but in the future we
should consider drawing a stroke around the thumb like cocoa does to add
more contrast.

This patch does change behavior in some cases. For example dark websites
now get a lighter, easier to distinguish scrollbar, thanks to the
scrollbar darkening code in nsNativeBasicTheme.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D125826
2021-09-28 12:52:42 +00:00
Nicolas Silva e648f2a4c5 Bug 1732726 - Use PBO uploads on Windows. r=gfx-reviewers,gw
A couple of years ago we had observed that the way ANGLE emulated PBOs was slower than using glTexSubImage2D.
Since then ANGLE added a fast path which performs better, especially in frames with a large amount of pixels are uploaded.

Switching to PBOs on windows gives us better performance overall and will let us remove some code paths.

Differential Revision: https://phabricator.services.mozilla.com/D126697
2021-09-28 09:57:47 +00:00
Valentin Gosu 0504488366 Bug 1731054 - Reenable bug1708673 without perf regression r=necko-reviewers,kershaw
Depends on D126360

Differential Revision: https://phabricator.services.mozilla.com/D126361
2021-09-28 07:08:28 +00:00
criss b7aa1288e9 Backed out 5 changesets (bug 1730867) for causing multiple reftest failures. CLOSED TREE
Backed out changeset 3a0215aefdf5 (bug 1730867)
Backed out changeset 6d0aac048440 (bug 1730867)
Backed out changeset 12f9678771c8 (bug 1730867)
Backed out changeset 315dd0b76f3f (bug 1730867)
Backed out changeset 894f76b91190 (bug 1730867)
2021-09-28 06:41:46 +03:00
criss 9d7155125b Backed out 2 changesets (bug 1731792) for causing devtools failures on browser_console_error_source_click.js
Backed out changeset 567d4eb7bc83 (bug 1731792)
Backed out changeset db57b8568ae9 (bug 1731792)
2021-09-28 06:15:28 +03:00
Nika Layzell 2793bb97a7 Bug 1731792 - Part 1: Avoid cycling between processes when navigating within a tab, r=smaug
This patch replaces the previous process selection infrastructure with a
new setup implemented entirely in C++, which should more accurately
track the set of processes in use, and should encourage re-use of the
existing content process when navigating by not counting the current
tab.

This approach intentionally allows for process switching to another
process during navigation if there is uneven load between processes to
encourage balanced process use.

I think this may also fix some of the session restore issues with many
tabs using the same process, rather than being spread over 4, as we now
track a tab earlier in its lifecycle before the BrowserParent instance
is created.

Differential Revision: https://phabricator.services.mozilla.com/D126405
2021-09-27 22:34:20 +00:00
Butkovits Atila 24d8b4f45f Backed out 2 changesets (bug 1731792) for causing mochitest failures.
Backed out changeset 44c28a29bbd8 (bug 1731792)
Backed out changeset 51bdb1d4baab (bug 1731792)
2021-09-27 18:54:29 +03:00
Emilio Cobos Álvarez 8696d678e8 Bug 1730867 - Use native scrollbars on Android. r=mstange
We only draw a scrollbar thumb, so it's easy enough (fair amount of
boilerplate, though).

For now I've done the trivial thing (keep painting a round thumb without
other fancy things), as that's what we were doing, but in the future we
should consider drawing a stroke around the thumb like cocoa does to add
more contrast.

This patch does change behavior in some cases. For example dark websites
now get a lighter, easier to distinguish scrollbar, thanks to the
scrollbar darkening code in nsNativeBasicTheme.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D125826
2021-09-27 13:56:49 +00:00
Nika Layzell e1a2352d73 Bug 1731792 - Part 1: Avoid cycling between processes when navigating within a tab, r=smaug
This patch replaces the previous process selection infrastructure with a
new setup implemented entirely in C++, which should more accurately
track the set of processes in use, and should encourage re-use of the
existing content process when navigating by not counting the current
tab.

This approach intentionally allows for process switching to another
process during navigation if there is uneven load between processes to
encourage balanced process use.

I think this may also fix some of the session restore issues with many
tabs using the same process, rather than being spread over 4, as we now
track a tab earlier in its lifecycle before the BrowserParent instance
is created.

Differential Revision: https://phabricator.services.mozilla.com/D126405
2021-09-27 13:49:32 +00:00
Tetsuharu Ohzeki 9fe3e79bd8 Bug 1732328 - Remove dead gfx.layerscope.*** pref. r=gfx-reviewers,jrmuizel
There is no actual user of `gfx.layerscope.enabled` that toggle
LayerScope now. We can remove them.

Differential Revision: https://phabricator.services.mozilla.com/D126511
2021-09-25 16:22:24 +00:00
Cristian Tuns b517c9f37b Backed out changeset dd075a074e45 (bug 1730518) for causing content crashes (bug 1732479). CLOSED TREE 2021-09-24 14:42:22 -04:00
Stephen A Pohl 5b382e5ac7 Bug 1732367: Turn on by default exiting of fullscreen on escape key press on macOS. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D126534
2021-09-23 20:09:44 +00:00
Paul Adenot 84d65ae0d2 Bug 1730518 - Use less memory for the AudioIPC shmem on Window 32-bits. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D126521
2021-09-23 16:21:02 +00:00
Nicolas Silva 0752cfb5cb Bug 1731610 - Add new prefs in WebRender with less boilerplate. r=gfx-reviewers,jrmuizel
Right now adding a dynamic pref for webrender involves plumbing in gfxPlatform, gfxVars, CompositBridgeParent, WebRenderBridgeParent, WebRenderAPI, the bindings, and then messaging the pref change to the right thread in WebRender.

That's quite a bit time consuming for something we tend to do for multiple things.

We already have a pretty good system for boolean debug prefs where the pref only needs to be listed in gfxPlatform and in the DebugPref enum of webrender_api/lib.rs, which has led us to use it for non-debug purposes.

This patch adds a system similar to the DebugFlags with values passed in a bitfield to be able to use gfxVars. In WebRender the parameters are key-value pairs which flow through the pipeline so that any component can react to them. A followup will add integer parameters.

The patch also moves a few prefs to this system and adds a pref to use PBO uploads.

Differential Revision: https://phabricator.services.mozilla.com/D126100
2021-09-23 15:17:46 +00:00
Tetsuharu Ohzeki 6e5b4a4b03 Bug 1732225 - Remove unused layers.bench.enabled pref. r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D126439
2021-09-23 13:57:38 +00:00
Tetsuharu Ohzeki c826c6f392 Bug 1732227 - Remove unused layers.componentalpha.enabled pref. r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D126446
2021-09-23 13:57:29 +00:00
Jonathan Kew 681e970a3c Bug 1715507 - Support different levels of font-visibility per context, depending on tracking/fingerprinting protection settings. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D124196
2021-09-23 13:36:17 +00:00
Benjamin VanderSloot db3aaa0e59 Bug 1671182 - Remove "cache" feature from Clear-Site-Data. r=johannh
Reflecting our discussion, the cache clearing is now gated behind a flag, privacy.clearsitedata.cache.enabled.

Differential Revision: https://phabricator.services.mozilla.com/D126229
2021-09-23 13:00:32 +00:00
Tetsuharu Ohzeki 0544054e5f Bug 1732221 - Remove unused layers.geometry.*** prefs. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D126434
2021-09-23 04:03:57 +00:00
criss 030acf123e Backed out changeset 93c3353b48f1 (bug 1723239) for causing failures on css/cssom/page-descriptors.html. CLOSED TREE 2021-09-23 03:43:14 +03:00
Emily McDonough bd8d70ec16 Bug 1723239 - Enable layout.css.page-size.enabled in Nightly r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D126161
2021-09-22 23:02:36 +00:00
Micah Tigley 0743fa1388 Bug 1731668 - Move downloads spam prevention work behind a pref. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D126296
2021-09-22 22:38:17 +00:00
Cristian Tuns 676acd6c27 Backed out changeset 03a33d194255 (bug 1731668) for causing mochitest failures on browser_download_spam_permissions.js. CLOSED TREE 2021-09-22 12:23:56 -04:00
Micah Tigley 5ecbe6bdff Bug 1731668 - Move downloads spam prevention work behind a pref. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D126296
2021-09-22 15:26:59 +00:00
Narcis Beleuzu a750766613 Backed out changeset da95455590d7 (bug 1475641) for marionette crashes on test_profile_management.py . CLOSED TREE 2021-09-22 01:19:18 +03:00
Kershaw Chang 72e0fa0067 Bug 1475641 - Move PAProxyAutoConfig to socket process, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D125855
2021-09-21 19:54:29 +00:00
Brad Werth ef0c1fc263 Bug 1731815: Set pref gfx.core-animation.specialize-video to true for all users. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D126250
2021-09-21 15:55:40 +00:00
Butkovits Atila 4b46b9b45b Backed out 3 changesets (bug 1719939, bug 1726437, bug 1730262) for causing failures on test_browserGlue_migration_ctrltab_recently_used_order.js.
Backed out changeset ea1653e9644f (bug 1719939)
Backed out changeset 01f90db715a7 (bug 1726437)
Backed out changeset c0e23b2acfbb (bug 1730262)
2021-09-21 05:15:31 +03:00
Junjie Ying 9b3839d3ba Bug 1719939 - Remove last fragments of code manually checking the browser.proton.enabled pref. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D125345
2021-09-21 00:03:49 +00:00
Sean Feng fc3b778ccf Bug 1591366 - Improve nested grid layout performance r=mats
This patch improves nested grid layout performance by caching the grid
items' block axis measurement to avoid potentially doing exponential
reflows.

Differential Revision: https://phabricator.services.mozilla.com/D115711
2021-09-20 19:52:45 +00:00
Brad Werth 8313bf8e70 Bug 1653417 Part 1: Define a pref for specialized video layers on macOS. r=gfx-reviewers,jrmuizel
If this pref is set, native layers will use a specialized video layer api for
fullscreen video content, which will reduce power consumption. It will do this
by isolating the fullscreen video layer from other layers. It may also remove
non-video content accompanying the fullscreen video. Content behind the video
*will* be replaced with a black fullscreen rectangle.

Future bugs will aim to reduce this side effect.

Differential Revision: https://phabricator.services.mozilla.com/D124999
2021-09-20 18:58:36 +00:00
Kershaw Chang 21d1774ea9 Bug 1726528 - Add a pref to control whether to enable echConfig for http3, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D123125
2021-09-20 14:24:14 +00:00
Dragana Damjanovic 2b5f1f4393 Bug 1728648 - Use the TLS token cache in necko on release as well. r=necko-reviewers,bbeurdouche,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D125985
2021-09-20 14:20:43 +00:00
Kershaw Chang 519e179d25 Bug 1731192 - Enable "network.send_ODA_to_content_directly" by default, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D125930
2021-09-20 08:41:54 +00:00
Noemi Erli bb5d736641 Backed out 2 changesets (bug 1591366) for causing failures in table-grid-item-dynamic-004.html CLOSED TREE
Backed out changeset 19be43686dc0 (bug 1591366)
Backed out changeset a2b6f6abda6e (bug 1591366)
2021-09-18 02:42:58 +03:00
Sean Feng 586a33d2b9 Bug 1591366 - Improve nested grid layout performance r=mats
This patch improves nested grid layout performance by caching the grid
items' block axis measurement to avoid potentially doing exponential
reflows.

Differential Revision: https://phabricator.services.mozilla.com/D115711
2021-09-17 21:06:52 +00:00
Boris Chiou 63df6026b6 Bug 1676782 - Part 2: Hook @scroll-timeline rule into style system. r=emilio
We add scroll-timeline rule into the stylesheet rule type, and add a new
perference to protect it: layout.css.scroll-linked-animations.enabled.

We will use this perference for animation-timeline property as well.

Differential Revision: https://phabricator.services.mozilla.com/D125765
2021-09-17 20:25:36 +00:00
John Lin 8417837791 Bug 1665776 - p10: enable platform encoder for WebRTC in debug builds. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D121027
2021-09-17 19:11:02 +00:00
Marian-Vasile Laza 381c254e6d Backed out 3 changesets (bug 1487113) for causing hazard bustages. CLOSED TREE
Backed out changeset 13bf04fc644f (bug 1487113)
Backed out changeset 5b7fe5d564aa (bug 1487113)
Backed out changeset 02236ccd64b4 (bug 1487113)
2021-09-17 22:58:33 +03:00
Morgan Reschenberg c7aea51785 Bug 1593273: Default browser.display.use_system_colors to true on windows, false elsewhere r=emilio,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D125268
2021-09-17 16:45:12 +00:00
Yury Delendik b8f6bd6a71 Bug 1487113 - Add pref javascript.options.wasm_caching. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D27101
2021-09-17 12:16:24 +00:00
Nika Layzell b194c469ca Bug 1727158 - Part 2: Bump processCount.webIsolated to 4 on desktop, r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D125293
2021-09-16 16:59:31 +00:00
Kris Wright 1fcf5f3822 Bug 1730958 - Fix some #ifdefs in static prefs. r=necko-reviewers,valentin
It looks like these were formatted wrong by mistake, and so the final `else` value in both instances was being used as the default value on all platforms.

Differential Revision: https://phabricator.services.mozilla.com/D125753
2021-09-16 16:05:36 +00:00
Florian Quèze ea8cd97bee Bug 1730239 - Offer a way to profile a specific process from about:processes, r=dthayer,fluent-reviewers,flod.
Differential Revision: https://phabricator.services.mozilla.com/D125257
2021-09-16 09:36:06 +00:00
Tim Huang 374fb44e84 Bug 1664995 - Part 1: Make OCSP cache to be aware of the partitionKey in the originAttributes. r=keeler
The patch add partitionKey into the certIDHash to isolate OCSP by the
partitionKey.

Differential Revision: https://phabricator.services.mozilla.com/D123957
2021-09-16 09:20:39 +00:00
Butkovits Atila 42611d5b3f Backed out changeset f2f9361b8e5e (bug 1593273) for causing failures at test_default_background.xhtml. 2021-09-16 02:46:17 +03:00
Morgan Reschenberg ceca77b740 Bug 1593273: Default browser.display.use_system_colors to true on windows, false elsewhere r=emilio,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D125268
2021-09-15 22:27:27 +00:00
Csoregi Natalia 36745a5320 Backed out 2 changesets (bug 1730250, bug 1730239) for failures on browser_aboutprocesses_default_options.js. CLOSED TREE
Backed out changeset 654b2804c1e9 (bug 1730250)
Backed out changeset 30e717035a25 (bug 1730239)
2021-09-15 23:15:29 +03:00
Csoregi Natalia 450bb4a4ae Backed out 13 changesets (bug 1665776) for causing failures on test_peerConnection_stats.html. CLOSED TREE
Backed out changeset 4b0d4001f1f1 (bug 1665776)
Backed out changeset 73ed5fe5e08f (bug 1665776)
Backed out changeset d1f7b6269840 (bug 1665776)
Backed out changeset 1611a0c8732c (bug 1665776)
Backed out changeset 15600cb52973 (bug 1665776)
Backed out changeset 5c0df59f6d97 (bug 1665776)
Backed out changeset 7cb0765f266c (bug 1665776)
Backed out changeset 07a4e96d4f2d (bug 1665776)
Backed out changeset 4e9613c3f492 (bug 1665776)
Backed out changeset c42a861fa5aa (bug 1665776)
Backed out changeset c1747633cf3a (bug 1665776)
Backed out changeset aeacd2804c75 (bug 1665776)
Backed out changeset 1e367c8a87bb (bug 1665776)
2021-09-15 23:12:53 +03:00
Florian Quèze 0d0fbc9191 Bug 1730239 - Offer a way to profile a specific process from about:processes, r=dthayer,fluent-reviewers,flod.
Differential Revision: https://phabricator.services.mozilla.com/D125257
2021-09-15 18:52:30 +00:00
John Lin 242c567964 Bug 1665776 - p10: enable platform encoder for WebRTC in debug builds. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D121027
2021-09-15 15:59:45 +00:00
Emilio Cobos Álvarez 0fc915272e Bug 1729894 - Now that WR is everyhwere, enable backdrop-filter on early-beta / nightly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D125054
2021-09-15 11:33:29 +00:00
Valentin Gosu 990245fb6a Bug 1729897 - CSP Upgrade-insecure-requests is upgrading localhost websocket r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D125533
2021-09-15 11:28:13 +00:00
Cristian Tuns f2f6eac4d6 Backed out 3 changesets (bug 1487113) for causing mochitest failures. CLOSED TREE
Backed out changeset b20e5d76c77e (bug 1487113)
Backed out changeset b0b2b27dcb68 (bug 1487113)
Backed out changeset 9214b396eb84 (bug 1487113)
2021-09-14 17:38:32 -04:00
Yury Delendik f03ccb4ccd Bug 1487113 - Add pref javascript.options.wasm_caching. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D27101
2021-09-14 20:12:52 +00:00
Andreas Farre cb4a04bbbd Bug 1727367 - Part 1: Add prefs for max session store form entry size. r=kashav
Add prefs:
* browser.sessionstore.dom_form_limit
  Limit for how long a value from a form can be to be included in
  session store collection.

* browser.sessionstore.dom_form_max_limit
  Limit how much total data we collect from forms from one site, as in
  the sum of length of values plus sum of length of xpath/id.

Differential Revision: https://phabricator.services.mozilla.com/D125195
2021-09-14 15:02:20 +00:00
criss 71bcf7f68f Backed out changeset 9888c5676034 (bug 1727158) for causing failures on image-loading-lazy-negative-margin.html 2021-09-14 17:02:43 +03:00
Valentin Gosu 0500b123b6 Bug 1718267 - Flip network.cache.bug1708673 to false to fix browsertime regression r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D125398
2021-09-14 07:48:37 +00:00
Nika Layzell d676bbdc6d Bug 1727158 - Part 2: Bump processCount.webIsolated to 4 on desktop, r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D125293
2021-09-14 01:30:51 +00:00
Sandor Molnar c86cd1bc00 Backed out changeset 0568cca2f4bb (bug 1718267) for causing xpc failures in netwerk/test/unit/test_predictor. CLOSED TREE 2021-09-14 00:26:22 +03:00
Valentin Gosu 8000373ec5 Bug 1718267 - Flip network.cache.bug1708673 to false to fix browsertime regression r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D125398
2021-09-13 20:43:12 +00:00
Marian-Vasile Laza fd405f793b Backed out changeset 80c0c730e1aa (bug 1729894) for causing mochitest failures on browser_styleeditor_autocomplete.js. CLOSED TREE 2021-09-13 23:00:00 +03:00
Emilio Cobos Álvarez 92dab3e4de Bug 1729894 - Now that WR is everyhwere, enable backdrop-filter on early-beta / nightly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D125054
2021-09-13 18:22:42 +00:00