Commit Graph

19509 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
9f65d4a846 Bug 1722031 - Tweak accent-color foreground computation and let it ride the trains. r=mstange
The accent-color computation right now chooses between black and white,
which is not ideal.

I tried to make it so that authors could choose the foreground colors in
the linked CSSWG issue from the comment, but that didn't go anywhere.

I think choosing a contrasting color that is in-line and contrasting
enough with the accent-color chosen by the page when darkening is better
than just black or white.

If we want the black-or-white behavior we can just change
layout.css.accent-color.target-contrast-ratio to something large enough.

https://accent-color.glitch.me/ is a nice playground to see this patch
in action.

Differential Revision: https://phabricator.services.mozilla.com/D120723
2021-07-24 13:30:25 +00:00
Jeff Muizelaar
1194fe927f Bug 1722055 - Rename gfx.webrender.force-disabled. r=aosmond
Change the pref name in anticipation of removing it completely
to see what the fallout will be.

Differential Revision: https://phabricator.services.mozilla.com/D120735
2021-07-23 17:00:29 +00:00
Andrew Osmond
075a2854df Bug 1721191 - Disable fallback from WR/SW-WR to basic. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D120250
2021-07-23 12:10:19 +00:00
Andrew Osmond
3beeeb82bf Bug 1721190 - Allow fallback from WR to SW-WR on Android. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D120247
2021-07-23 10:52:06 +00:00
Sonia Singla
05e2031f5f Bug 1665638 - Remove layout.css.clip-path-path.enabled.r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120235
2021-07-22 08:04:47 +00:00
Paul Zuehlcke
f97e49d85c Bug 1713748 - Partition WebSocket nsWSAdmissionManager queue. r=timhuang,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D119534
2021-07-21 12:44:40 +00:00
Eden Chuang
65018bcd9d Bug 1720410 - Unregister SW when reach navigation fault threshold. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D119878
2021-07-20 23:35:11 +00:00
Jeff Muizelaar
9f6644c33d Bug 1721257 - Enable ICCv4 in Nightly and let it ride the trains on macOS. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D120270
2021-07-20 20:26:28 +00:00
Sean Feng
2aa145db40 Bug 1705141 - Implement imperative slotting API r=smaug,emilio
Differential Revision: https://phabricator.services.mozilla.com/D119444
2021-07-20 18:06:25 +00:00
Kagami Sascha Rosylight
b09a40408c Bug 1648944 - Part 1: Split select event flags into each event name r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D86700
2021-07-20 13:46:44 +00:00
Brindusan Cristian
7cd95d50e6 Backed out 5 changesets (bug 1648944) for causing wpt failures in idlharness.window.html.
CLOSED TREE

Backed out changeset 598789cabb9f (bug 1648944)
Backed out changeset f464507bef57 (bug 1648944)
Backed out changeset fb2b9ceb7c69 (bug 1648944)
Backed out changeset a73cfada74cf (bug 1648944)
Backed out changeset 3f41877ffd14 (bug 1648944)
2021-07-20 13:29:49 +03:00
Kagami Sascha Rosylight
bed866904a Bug 1648944 - Part 1: Split select event flags into each event name r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D86700
2021-07-20 08:59:47 +00:00
Csoregi Natalia
d25e85fb5d Backed out changeset 92eb5955a19b (bug 1721191) with Bug 1721190 for gv-junit failures. CLOSED TREE 2021-07-19 21:53:53 +03:00
Shane Caraveo
0d1451a345 Bug 1720221 proxy failover to direct for system requests r=kershaw,necko-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D119695
2021-07-19 17:24:29 +00:00
Csoregi Natalia
bc30c1a09c Backed out changeset f0914306ef83 (bug 1721190) for geckoview failures on profileLocked. CLOSED TREE 2021-07-19 20:13:12 +03:00
Andrew Osmond
b4a010460b Bug 1721191 - Disable fallback from WR/SW-WR to basic. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D120250
2021-07-19 15:41:36 +00:00
Andrew Osmond
6579e91786 Bug 1721190 - Allow fallback from WR to SW-WR on Android. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D120247
2021-07-19 15:36:02 +00:00
Sonia Singla
28ced48ac1 Bug 1659266 - Remove layout.css.prefixes.columns. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120057
2021-07-19 09:20:14 +00:00
Bob Owen
189584d4f9 Bug 1716024 p1: Change CET support to compatible modules only. r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D117550
2021-07-19 07:36:19 +00:00
Ryan Hunt
f095d458ea Bug 1717914 - wasm: Add feature flags for Memory64. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D118644
2021-07-16 20:58:09 +00:00
Alexandru Michis
6b34ce568e Backed out changeset 2307d0bebc26 (bug 1720221) for causing python failures in configure/lint.py
CLOSED TREE
2021-07-16 17:59:23 +03:00
Shane Caraveo
f8ad91a90e Bug 1720221 proxy failover to direct for system requests r=kershaw,necko-reviewers,robwu
Differential Revision: https://phabricator.services.mozilla.com/D119695
2021-07-16 14:33:29 +00:00
Iulian Moraru
a6eeed2022 Backed out changeset ff3b52062c5a (bug 1659266) for causing build bustages on WebIDLPrefs. CLOSED TREE 2021-07-16 16:02:09 +03:00
Sonia Singla
0200117fc5 Bug 1659266 - Remove layout.css.prefixes.columns. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120057
2021-07-16 12:17:49 +00:00
Chris Peterson
df25aeaae0 Bug 1720633 - Remove old "network.http.spdy.bug1563538" pref checks. r=necko-reviewers,kershaw
h2 proxy bug 1563538 added a temporary "network.http.spdy.bug1563538" pref in case its tunnel stream fix needed to be disabled quickly. That was almost two years ago (Firefox 68) and we haven't needed to disable this pref yet, so we can probably remove this pref and the old code paths now.

Differential Revision: https://phabricator.services.mozilla.com/D119942
2021-07-16 05:33:15 +00:00
Brendan Dahl
20b4b87772 Bug 1720402 - Enable XFA support in the PDF viewer. r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D119828
2021-07-15 17:32:44 +00:00
Markus Stange
991385d5a7 Bug 1615213 - Support special back/forward mouse buttons. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D111982
2021-07-14 18:39:47 +00:00
Luca Greco
0995284f7d Bug 1638097 - ServiceWorkerManager should not store registration related to temporary addons. r=asuth
This patch include a small change to ServiceWorkerManager::StoreRegistration which does early exist
and not store the registration on disk if:
- the principal is from a WebExtension
- the addon is not enabled (or was already uninstalled) by the time we got to store the registration
- the addon is temporarily installed

At the moment it should not happen, but if ServiceWorkerManager::StoreRegistration was reached too late
for some reason and the registration was meant to be stored, the service worker would still be registered
again when the addon is started again on the next browser startup and stored on disk if it was meant to.

Depends on D119529

Differential Revision: https://phabricator.services.mozilla.com/D119530
2021-07-14 14:13:00 +00:00
Harry Twyford
9f250fa6e0 Bug 1719734 - Enable widget.macos.support-dark-appearance by default on Release. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D119440
2021-07-14 13:36:54 +00:00
Robert Mader
ab2349d790 Bug 1718570 - Implement full partial damage support, r=gfx-reviewers,aosmond,jnicol
This becomes possible as a side effect of making sure that the current
buffer content is always completely valid, by blitting from the
previous buffer, analogous to
`NativeLayerCA::HandlePartialUpdate` and
`WindowSurfaceWaylandMB::HandlePartialUpdate`.

Apart from reducing overpaint, this improves correctness is many
situations, avoiding glitches.

Note: the approach here may not be optimal concerning efficiency yet
and improvements are planed after further refactoring.

Depends on D118925

Differential Revision: https://phabricator.services.mozilla.com/D119015
2021-07-14 10:05:08 +00:00
Sandor Molnar
dab21ee839 Backed out 2 changesets (bug 1719734, bug 1710934) for causing bc failures in browser_ext_themes_highlight. CLOSED TREE
Backed out changeset 74a832b24286 (bug 1719734)
Backed out changeset 9f6b5145351a (bug 1710934)
2021-07-13 18:29:26 +03:00
Sean Feng
ddb0f775b2 Bug 1720200 - Enable dom.events.coalesce.touchmove in all channels r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D119673
2021-07-13 14:26:32 +00:00
Harry Twyford
a5072aba3e Bug 1719734 - Enable widget.macos.support-dark-appearance by default on Release. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D119440
2021-07-13 14:20:42 +00:00
Masayuki Nakano
f334ac54b8 Bug 1715603 - part 2: Make AutoScrollChild not start autoscroll if a modifier key is pressed r=Gijs
Now, `nsIFrame::HandleEvent` moves selection at middle mouse button down.  This
occurs before dispatching the event into the system event group.  Therefore,
`AutoScrollChild` cannot prevent it.

On the other hand, Chrome does not start autoscroll when a modifier is pressed.
This means that our users may not be able to use middle click with modifiers
if web apps do not call `preventDefault()` as expected.  So, this difference
is a potential risk of web-compat.

Therefore, this patch makes `AutoScrollChild` stop starting autoscroll if
`Shift` key is pressed.

Differential Revision: https://phabricator.services.mozilla.com/D119253
2021-07-13 08:15:55 +00:00
Sandor Molnar
6c075398dd Backed out 2 changesets (bug 1718570, bug 1718569) for causing wpt failures in /css/css-flexbox/flexbox-align-self-vert-001. CLOSED TREE
Backed out changeset 59cdbaaa6a7b (bug 1718570)
Backed out changeset 489ce763c140 (bug 1718569)
2021-07-13 08:52:28 +03:00
Paul Bone
3402a68121 Bug 1718184 - pt 2. Add a comment about units for this pref r=nika
Differential Revision: https://phabricator.services.mozilla.com/D118792
2021-07-13 01:42:32 +00:00
Robert Mader
7f684896cb Bug 1718570 - Implement full partial damage support, r=gfx-reviewers,aosmond
This becomes possible as a side effect of making sure that the current
buffer content is always completely valid, by blitting from the
previous buffer, analogous to
`NativeLayerCA::HandlePartialUpdate` and
`WindowSurfaceWaylandMB::HandlePartialUpdate`.

Apart from reducing overpaint, this improves correctness is many
situations, avoiding glitches.

Note: the approach here may not be optimal concerning efficiency yet
and improvements are planed after further refactoring.

Depends on D118925

Differential Revision: https://phabricator.services.mozilla.com/D119015
2021-07-13 00:55:30 +00:00
Andrew Sutherland
6736ecda3b Bug 1503072 - Add mitigation to bypass SW on navigation fault. r=dom-worker-reviewers,necko-reviewers,valentin,edenchuang
We enable this mitigation by default because:
- The alternate UX is about:blank or corrupted content.  That's never good.
- We want to make sure that our test coverage handles this mitigation because
  it's want we want to ship.

However, we do explicitly disable it for all ServiceWorker WPT's via
`__dir__.ini` directive at the root of the service-workers test tree.

This is motivated by the
`/service-workers/service-worker/update-recovery.https.html` test which
intentionally tests a broken ServiceWorker being able to be updated.  It
explicitly tests that the intercepted broken iframe shouldn't successfully
load, but our mitigation makes it load, which breaks the test.

Depends on D111845

Differential Revision: https://phabricator.services.mozilla.com/D111993
2021-07-12 21:10:26 +00:00
Robert Mader
a2404c8fb7 Bug 1717351 - Enable Wayland multi-buffer software backend by default, r=stransky
As it gives us better guarantees about correctness, it allows us to enable
performance optimizations such as D118192, which reduces redraws.

Another advantage is that it does not need any extra knowledge about
compositors as it does not make any assumptions about buffer holding
behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D119668
2021-07-12 20:11:36 +00:00
Jonathan Kew
92deff6a93 Bug 1720131 - Enable the size-adjust descriptor and extended font-size-adjust property. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D119632
2021-07-12 19:59:46 +00:00
Iulian Moraru
ef7b6b88df Backed out 3 changesets (bug 1503072) for causing bc failures on browser_navigation_fetch_fault_handling.js. CLOSED TREE
Backed out changeset f8c6503512f5 (bug 1503072)
Backed out changeset c04927c15fd8 (bug 1503072)
Backed out changeset b7550232d4f1 (bug 1503072)
2021-07-12 15:19:09 +03:00
Andrew Sutherland
bd86df06b4 Bug 1503072 - Add mitigation to bypass SW on navigation fault. r=dom-worker-reviewers,necko-reviewers,valentin,edenchuang
We enable this mitigation by default because:
- The alternate UX is about:blank or corrupted content.  That's never good.
- We want to make sure that our test coverage handles this mitigation because
  it's want we want to ship.

However, we do explicitly disable it for all ServiceWorker WPT's via
`__dir__.ini` directive at the root of the service-workers test tree.

This is motivated by the
`/service-workers/service-worker/update-recovery.https.html` test which
intentionally tests a broken ServiceWorker being able to be updated.  It
explicitly tests that the intercepted broken iframe shouldn't successfully
load, but our mitigation makes it load, which breaks the test.

Depends on D111845

Differential Revision: https://phabricator.services.mozilla.com/D111993
2021-07-12 11:13:35 +00:00
Julian Descottes
dba554e505 Bug 1719667 - [remote] Do not set recommended preferences when not wanted r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D119409
2021-07-09 08:42:47 +00:00
Mike Kaply
65c099cdbf Bug 1719301 - Remove version number from Windows SSO pref and policy. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D119187
2021-07-06 18:18:53 +00:00
Jonathan Kew
81b88e2c93 Bug 1719239 - Disable support for content:none on elements due to webcompat issues. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D119188
2021-07-06 15:39:06 +00:00
Jed Davis
2257145e1c Bug 1635451 - Minimize content processes' connections to the X server. r=jgilbert,stransky,nika
This patch launches content processes with the `MOZ_HEADLESS` env var set
if they're using GTK with an X11 display (and there's no other reason
they'd need GTK).

The goal is to avoid exhausting Xorg's default limit of 256 clients if
there are many content processes due to Fission.  If these conditions
are met, the content process doesn't need to eagerly connect to the X
server.  This does not affect the sandbox policy, and content processes
can still use X if needed for, e.g.,  WebGL.

The boolean pref `dom.ipc.avoid-gtk`, set by default, controls this
feature.  In the future it could also be extended to minimize GTK use
with Wayland displays.

Note that disabling `widget.non-native-theme.enabled`, which is also
enabled by default, will restore the use of X11 in all content processes
even if this pref is set; the alternative is that widgets wouldn't render
in that case.

This change will also save some memory for now-unnecessary instances of
GTK's global state, and improve content process startup time.

Remove also the temp pref dom.ipc.remote-mozIcon because it cannot work
anymore with the content process being headless.

Differential Revision: https://phabricator.services.mozilla.com/D112197
2021-07-06 07:42:42 +00:00
Jed Davis
f925052cd2 Bug 1695381 - Use IPC for content processes' moz-icon URL loading. r=tnikkel,nika
Differential Revision: https://phabricator.services.mozilla.com/D118596
2021-06-26 01:15:01 +00:00
Toshihito Kikuchi
309abd3615 Bug 1713855 - Part1: Remove the Third-Party Modules section from about:support. r=Gijs
Now that the about:third-party page landed (bug 1695817), we can remove the predecessor.
This patch reverts the Part10 patch of bug 1669036 (d9f8cdf2877b), keeping the other patches
which are required for about:third-party page.

Differential Revision: https://phabricator.services.mozilla.com/D118382
2021-06-25 22:22:03 +00:00
Andrew Creskey
32478151d9 Bug 1716606 - Replace keyup handling of history metadata typing metrics with C++ implementation r=Standard8,smaug
Due to measured performance issues in the Chrome process, moving this code to C++.

Differential Revision: https://phabricator.services.mozilla.com/D118178
2021-06-25 19:40:36 +00:00
Randell Jesup
5a97b746f9 Bug 1717122: Reduce preallocated processes for low-memory machines r=nika
Differential Revision: https://phabricator.services.mozilla.com/D118228
2021-06-25 18:57:23 +00:00