Commit Graph

19550 Commits

Author SHA1 Message Date
Markus Stange
33ad3f97af Bug 1723215 - Merge local and remote objdir prefs. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121436
2021-08-04 20:27:32 +00:00
Narcis Beleuzu
00977c4e37 Backed out changeset f8edef1f2a0a (bug 1706292) for wpt failures on /websockets/unload-a-document/001.html . CLOSED TREE 2021-08-04 22:26:19 +03:00
Paul Zuehlcke
0abff0009c Bug 1706292 - Cache InternalStorageAllowedCheck on inner window. r=timhuang,nika
Differential Revision: https://phabricator.services.mozilla.com/D120833
2021-08-04 16:03:09 +00:00
Marco Castelluccio
5770a04f8a Bug 1723959 - Disable XFA support in the PDF Viewer in release, only enable it for early betas. r=pdfjs-reviewers,calixte DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D121718
2021-08-04 15:25:20 +00:00
Kagami Sascha Rosylight
9697db7e82 Bug 1641280 - Part 3: Enable Web Share on Windows for nightly/beta r=smaug
Depends on D121421

Differential Revision: https://phabricator.services.mozilla.com/D121488
2021-08-04 13:53:13 +00:00
Kagami Sascha Rosylight
693b1afa39 Bug 1641280 - Part 2: Resolve WindowsUIUtils::Share without waiting action on Windows r=smaug,agashlin
Windows does not fire any DataPackage event when a user selects copy action from the OS dialog, potentially causing never-resolved promise. Windows still does not provide any other way to detect that action, even on Windows 11.

Per https://github.com/w3c/web-share/issues/188 Chromium gave up and decided not to wait for user action.

Given that Microsoft is not expected to fix the situation anytime soon, it's probably better to follow what others do.

Depends on D121420

tmp

Differential Revision: https://phabricator.services.mozilla.com/D121421
2021-08-04 13:53:12 +00:00
Alexandru Michis
ec4b92d7d0 Backed out 3 changesets (bug 1641280) for causing bustages.
CLOSED TREE

Backed out changeset aa2915f66825 (bug 1641280)
Backed out changeset 080107249a1c (bug 1641280)
Backed out changeset b183dae47176 (bug 1641280)
2021-08-04 16:45:32 +03:00
Kagami Sascha Rosylight
1a92fbedd0 Bug 1641280 - Part 3: Enable Web Share on Windows for nightly/beta r=smaug
Depends on D121421

Differential Revision: https://phabricator.services.mozilla.com/D121488
2021-08-04 13:27:15 +00:00
Kagami Sascha Rosylight
edb1e9956b Bug 1641280 - Part 2: Resolve WindowsUIUtils::Share without waiting action on Windows r=smaug,agashlin
Windows does not fire any DataPackage event when a user selects copy action from the OS dialog, potentially causing never-resolved promise. Windows still does not provide any other way to detect that action, even on Windows 11.

Per https://github.com/w3c/web-share/issues/188 Chromium gave up and decided not to wait for user action.

Given that Microsoft is not expected to fix the situation anytime soon, it's probably better to follow what others do.

Depends on D121420

tmp

Differential Revision: https://phabricator.services.mozilla.com/D121421
2021-08-04 13:27:15 +00:00
Alexandru Michis
5ca72bfc53 Backed out 7 changesets (bug 1650089) for causing xpcshell failures in test_ext_cookieBehaviors.js
Backed out changeset 336d6eb2fc15 (bug 1650089)
Backed out changeset 283ba29cdbeb (bug 1650089)
Backed out changeset c470e4c65117 (bug 1650089)
Backed out changeset 8fc2f428694d (bug 1650089)
Backed out changeset 37e5185dae14 (bug 1650089)
Backed out changeset a26afdc56d91 (bug 1650089)
Backed out changeset 32e207558b3d (bug 1650089)
2021-08-04 12:32:07 +03:00
Nika Layzell
e0fc657cb6 Bug 1650089 - Part 3: Rework DocumentChannel-triggered process switches to support null principals, r=annyG,kmag
This is a large refactoring of the DocumentChannel process switch codepath,
with the end goal of being better able to support future process switch
requirements such as dynamic isolation on android, as well as the immediate
requirement of null principal handling.

The major changes include:
1. The logic is in C++ and has less failure cases, meaning it should be harder
   for us to error out unexpectedly and not process switch.
2. Process selection decisions are more explicit, and tend to rely less on
   state such as the current remoteType when possible. This makes reasoning
   about where a specific load will complete easier.
3. Additional checks are made after a "WebContent" behavior is selected to
   ensure that if an existing document in the same BCG is found, the load will
   finish in the required content process. This should make dynamic checks such
   as Android's logged-in site isolation easier to implement.
4. ProcessIsolation logging is split out from DocumentChannel so that it's
   easier to log just the information related to process selection when
   debugging.
5. Null result principal precursors are considered when performing process
   selection.

Other uses of E10SUtils for process selection have not yet been migrated to the
new design as they have slightly different requirements. This will be done in
follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D120673
2021-08-03 18:17:54 +00:00
Gijs Kruitbosch
1e4a561ac0 Bug 1721627 - crash on requests to non-existing chrome: and resource: files on infra, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D120557
2021-08-03 16:46:34 +00:00
Noemi Erli
6cd9318b66 Backed out 7 changesets (bug 1650089) foe causing bustages in ProcessIsolation.cpp
Backed out changeset 4e73beb8872c (bug 1650089)
Backed out changeset 092451e931ce (bug 1650089)
Backed out changeset ca9ba60010c6 (bug 1650089)
Backed out changeset ee61b69ba556 (bug 1650089)
Backed out changeset 091c4efa36a7 (bug 1650089)
Backed out changeset dbdee40ef8a0 (bug 1650089)
Backed out changeset 54d12a4333a0 (bug 1650089)
2021-08-03 20:15:54 +03:00
Ryan VanderMeulen
9d24b9f088 Bug 1722989 - Update freetype2 to 2.11.0. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D121248
2021-08-03 16:12:25 +00:00
Edgar Chen
f7e947ba90 Bug 1723396 - Ship Custom Elements disabledFeatures; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D121491
2021-08-03 15:53:46 +00:00
Nika Layzell
35dca5bd20 Bug 1650089 - Part 3: Rework DocumentChannel-triggered process switches to support null principals, r=annyG,kmag
This is a large refactoring of the DocumentChannel process switch codepath,
with the end goal of being better able to support future process switch
requirements such as dynamic isolation on android, as well as the immediate
requirement of null principal handling.

The major changes include:
1. The logic is in C++ and has less failure cases, meaning it should be harder
   for us to error out unexpectedly and not process switch.
2. Process selection decisions are more explicit, and tend to rely less on
   state such as the current remoteType when possible. This makes reasoning
   about where a specific load will complete easier.
3. Additional checks are made after a "WebContent" behavior is selected to
   ensure that if an existing document in the same BCG is found, the load will
   finish in the required content process. This should make dynamic checks such
   as Android's logged-in site isolation easier to implement.
4. ProcessIsolation logging is split out from DocumentChannel so that it's
   easier to log just the information related to process selection when
   debugging.
5. Null result principal precursors are considered when performing process
   selection.

Other uses of E10SUtils for process selection have not yet been migrated to the
new design as they have slightly different requirements. This will be done in
follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D120673
2021-08-03 15:39:34 +00:00
Dorel Luca
24feffa455 Backed out 2 changesets (bug 1721627) for Talos failures. CLOSED TREE
Backed out changeset bc5e08d27347 (bug 1721627)
Backed out changeset a670f5679e0b (bug 1721627)
2021-08-03 03:57:21 +03:00
Gijs Kruitbosch
50385d763f Bug 1721627 - crash on requests to non-existing chrome: and resource: files on infra, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D120557
2021-08-02 16:55:35 +00:00
Cosmin Sabou
79810cb376 Backed out 4 changesets (bug 1721686) for wasm related spidermonkey failures. CLOSED TREE
Backed out changeset 248879341368 (bug 1721686)
Backed out changeset 7ff074e3a920 (bug 1721686)
Backed out changeset 226e4f35aa52 (bug 1721686)
Backed out changeset 7bbc69180316 (bug 1721686)
2021-07-30 20:01:06 +03:00
Ryan Hunt
5e3fa5be27 Bug 1721686 - wasm: Add mozIntGemm() to WebAssembly namespace in privileged content. r=yury
Differential Revision: https://phabricator.services.mozilla.com/D120662
2021-07-30 15:39:36 +00:00
Csoregi Natalia
2aa97aea10 Merge autoland to mozilla-central. a=merge 2021-07-30 00:43:06 +03:00
Csoregi Natalia
bc4c680c8d Backed out 3 changesets (bug 1722258) for causing Bug 1722935. a=backout
Backed out changeset cf8a1175abd1 (bug 1722258)
Backed out changeset 41176d476eb7 (bug 1722258)
Backed out changeset 4149d596d03d (bug 1722258)
2021-07-29 20:19:48 +03:00
Tim Huang
cd54328176 Bug 1720294 - Part 1: Add a pref 'network.http.referer.disallowCrossSiteRelexingDefault'. r=ckerschb
Add a pref to control if Firefox to disallow relaxing the referrer
policy for cross-site requests. If it's set, we will ignore
'unsafe-url', 'no-referrer-when-downgrade' and
'origin-when-cross-origin' for cross-site requests.

Differential Revision: https://phabricator.services.mozilla.com/D119971
2021-07-29 15:23:05 +00:00
Emilio Cobos Álvarez
a6332e6c05 Bug 1722908 - Make accent-color foreground-computation prefs atomic. r=jnicol
When there are remote processes  we query all colors on the main thread
as part of the pref update, but otherwise this code can totally run OMT,
and we hit the thread-safety assert in:

  https://searchfox.org/mozilla-central/rev/cfc40681e13089f92fb3f5f67d5d527fb04d9505/modules/libpref/init/StaticPrefListBegin.h#23

Differential Revision: https://phabricator.services.mozilla.com/D121199
2021-07-29 14:26:13 +00:00
Jeff Gilbert
9ce93546e4 Bug 1722782 - Re-enable but deprecate WEBGL_debug_renderer_info. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D121149
2021-07-29 07:22:09 +00:00
Dorel Luca
f8c23e7e7f Backed out 5 changesets (bug 1650089) for Browser-chrome failures in browser/components/originattributes/test/browser/browser_firstPartyIsolation_aboutPages.js. CLOSED TREE
Backed out changeset 26ddad079ad3 (bug 1650089)
Backed out changeset 5ae2b2641484 (bug 1650089)
Backed out changeset c5d267a1907c (bug 1650089)
Backed out changeset d9eeca699dec (bug 1650089)
Backed out changeset 8bb303f6831a (bug 1650089)
2021-07-29 05:53:31 +03:00
Nika Layzell
3072efd270 Bug 1650089 - Part 3: Rework DocumentChannel-triggered process switches to support null principals, r=annyG,kmag
This is a large refactoring of the DocumentChannel process switch codepath,
with the end goal of being better able to support future process switch
requirements such as dynamic isolation on android, as well as the immediate
requirement of null principal handling.

The major changes include:
1. The logic is in C++ and has less failure cases, meaning it should be harder
   for us to error out unexpectedly and not process switch.
2. Process selection decisions are more explicit, and tend to rely less on
   state such as the current remoteType when possible. This makes reasoning
   about where a specific load will complete easier.
3. Additional checks are made after a "WebContent" behavior is selected to
   ensure that if an existing document in the same BCG is found, the load will
   finish in the required content process. This should make dynamic checks such
   as Android's logged-in site isolation easier to implement.
4. ProcessIsolation logging is split out from DocumentChannel so that it's
   easier to log just the information related to process selection when
   debugging.
5. Null result principal precursors are considered when performing process
   selection.

Other uses of E10SUtils for process selection have not yet been migrated to the
new design as they have slightly different requirements. This will be done in
follow-up bugs.

Differential Revision: https://phabricator.services.mozilla.com/D120673
2021-07-29 01:40:20 +00:00
Matt Woodrow
0c782c8447 Bug 1722258 - Add FallbackRenderer to replace BasicLayerManager usage. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D120921
2021-07-28 20:58:23 +00:00
Brendan Dahl
beb05bcde3 Bug 1722750 - Enable XFA support in the PDF viewer for release. r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D121109
2021-07-28 17:38:29 +00:00
Emilio Cobos Álvarez
e584d51e3a Bug 1721359 - With allow-gtk-dark-theme, keep content pages using system color scheme. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D120824
2021-07-28 10:34:02 +00:00
Dimi Lee
9d9f69540c Bug 1721971 - Disable multi-page login forms support on release channel r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D120704
2021-07-28 06:37:49 +00:00
Julian Descottes
95bb71d6cc Bug 1719692 - [remote] Stop using MarionettePrefs.logLevel and use remote.log.level instead r=webdriver-reviewers,whimboo
Depends on D120894

Differential Revision: https://phabricator.services.mozilla.com/D120895
2021-07-27 19:03:29 +00:00
Julian Descottes
056dff5133 Bug 1700392 - [remote] Replace usage of marionette format.js by remote/shared/Format.jsm r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D120894
2021-07-27 19:03:29 +00:00
Emilio Cobos Álvarez
2d383015d6 Bug 1722413 - Enable system accent color for selection and form controls on Android by default. r=agi
With bug 1249548 fixed on Android, we can do this trivially.

Differential Revision: https://phabricator.services.mozilla.com/D120911
2021-07-27 18:24:40 +00:00
Sean Feng
99f9496939 Bug 1722574 - Tweak lazy-loading root margin defaults to 800px in all directions for EARLY_BETA_OR_EARLIER r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120991
2021-07-27 17:20:45 +00:00
Emilio Cobos Álvarez
cd1744924f Bug 1722397 - Add a way to use the native accent color for selection and form controls on Android. r=agi
I tied it to the use-theme-accent bit in non-native-theme just for
convenience (so that form controls just react to this).

This works nicely, but I didn't turn this on by default because the
accessiblecaret images are hardcoded-blue pngs, and they look ugly
without being the same color as the native accent.

Differential Revision: https://phabricator.services.mozilla.com/D120898
2021-07-27 17:12:15 +00:00
Emilio Cobos Álvarez
02bbf0389a Bug 1722299 - Initial support for the color-scheme CSS property. r=mstange
Add initial support for the color-scheme CSS property, allowing pages to
choose between light and dark system colors per-element, and such.

Things that are left to do so that this can be enabled by default:

 * Dark system colors on Windows / Android / Standins.
 * Dark Canvas/CanvasText/Link visited colors (which right now are set
   via PreferenceSheet).
 * Dark form controls in nsNativeBasicTheme.
 * Processing the color-scheme meta tag to fill-in
   Document::mColorSchemeBits.

But this seems like enough progress to be landable on its own.

Differential Revision: https://phabricator.services.mozilla.com/D120843
2021-07-27 15:50:48 +00:00
Bob Owen
c62903a0c0 Bug 1722326: Turn on CET compatible modules only for the socket process on Nightly. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D120856
2021-07-27 14:32:08 +00:00
Emilio Cobos Álvarez
f501d497d2 Bug 1720710 - Add system-ui boilerplate. r=jfkthame
Alias -apple-system to it, and put it behind a pref for now. This is
pretty boring (read: uncontroversial hopefully) code. The follow-up work
is modifying StaticPresData to look up the fonts using system APIs,
probably. Maybe a bit more work if on macOS they can't be named.

Differential Revision: https://phabricator.services.mozilla.com/D119984
2021-07-27 11:11:51 +00:00
Emilio Cobos Álvarez
143c3e18d7 Bug 1722400 - Remove layout.css.image-set.enabled. r=TYLin
We shipped this in 88.

Differential Revision: https://phabricator.services.mozilla.com/D120899
2021-07-27 06:59:39 +00:00
Jeff Gilbert
7693691314 Bug 1722113 - Expose sanitized UNMASKED_RENDERER as RENDERER. r=lsalzman,tjr
Add prefs:
* webgl.enable-renderer-query: true
* webgl.sanitize-unmasked-renderer: false
Rename prefs:
* webgl.renderer-string-override => webgl.override-unmasked-renderer
* webgl.vendor-string-override => webgl.override-unmasked-vendor

webgl.enable-renderer-query is treated as false if RFP is enabled.
webgl.override-unmasked-renderer overrides UNMASKED_RENDERER and
is then sanitized for RENDERER if enabled.

Differential Revision: https://phabricator.services.mozilla.com/D120775
2021-07-27 01:18:29 +00:00
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