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

763170 Коммитов

Автор SHA1 Сообщение Дата
Agi Sferro 84763440d5 Bug 1718341 - Use generated emulator when running WR Android jobs. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D119222
2021-07-15 23:22:16 +00:00
Agi Sferro 164fc2191d Bug 1718341 - Generate Android AVD in TL job instead of using tooltool r=aklotz,nalexander
Tooltool images are hard to update because we don't provide a script to
generate the image and documentation is often inaccurate.

This patch makes it so we generate the AVD in the android-sdk TL job instead.

Differential Revision: https://phabricator.services.mozilla.com/D119221
2021-07-15 23:22:15 +00:00
Agi Sferro eebbe208b3 Bug 1718341 - Run instrumented build on x86_64. r=aklotz,glandium
The ARM emulator images have very poor support and haven't been updated for a
long time.

Normally x86_64 images need KVM acceleration which is not available on build
machines (see Bug 1545497). We can work around this by starting the emulator
with the command line |--no-accel|.

Differential Revision: https://phabricator.services.mozilla.com/D119223
2021-07-15 23:22:15 +00:00
Agi Sferro eb60dc64d3 Bug 1718341 - Rename arm-4.3 -> arm r=aklotz,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D119220
2021-07-15 23:22:15 +00:00
Agi Sferro c81c238801 Bug 1718341 - Rename androidx86_7_0.py to android-x86_64. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D119219
2021-07-15 23:22:14 +00:00
Cosmin Sabou 3cd7630738 Backed out changeset 2c1257a95130 (bug 1720591) for causing build bustages complaining about patch_main. CLOSED TREE 2021-07-16 02:49:45 +03:00
Mike Hommey db8698c2aa Bug 1720772 - Upgrade sysroot libstdc++ to 7.5.0-6. r=firefox-build-system-reviewers,mhentges
7.3.0-1 was used because it was the last 7.x that provided the libstdc++6
package. Unfortunately, once libstdc++ is removed from the clang
toolchain, which makes the one from the sysroot used instead, it causes
an ASan issue which goes away when using a more recent version (which the
libstdc++ from clang was: it was 7.5).

So we take the last 7.x that exists, and tweak it so that it generates
the necessary libstdc++6 package.

Differential Revision: https://phabricator.services.mozilla.com/D120012
2021-07-15 21:32:04 +00:00
Cosmin Sabou 079ca856bb Backed out changeset 561cbc6c105d (bug 1720772) on the suspicion of causing the builds to not be scheduled. CLOSED TREE 2021-07-16 02:12:54 +03:00
Jed Davis 4737104967 Bug 1440103 - Fix handle leak in IPC process launching. r=handyman
We use the process handle returned from `CreateProcess` to derive
another handle with more permissions, but the original handle is never
closed.  This bug appears to be fairly old: it existed before this code
was converted to use MozPromise.

Currently we provide the original handle to external consumers of the
launch promise; this patch resolves the promise with the privileged
handle instead and closes the original one.  (One consumer uses the
handle only to obtain the pid, and the rest don't use it at all, so this
shouldn't change anything.)

As a related cleanup, `ProcessLaunchPromise` is now exclusive (because
it's resolved with resources which are consumed) and no longer declared
in the header file (because it's used only internally).

Differential Revision: https://phabricator.services.mozilla.com/D119820
2021-07-15 22:20:34 +00:00
Florian Quèze 3c58a9068f Bug 1720289 - fix the OpaqueResponseUtils includes, r=kershaw,necko-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D120013
2021-07-15 22:04:24 +00:00
Florian Quèze ca7bbcc752 Bug 1720374 - Remove MOZ_GECKO_PROFILER ifdefs that are not useful, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D119810
2021-07-15 22:04:23 +00:00
Florian Quèze 292c1a1f60 Bug 1720368 - Remove MOZ_GECKO_PROFILER ifdefs around profiler_init and profiler_shutdown calls, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D119809
2021-07-15 22:04:23 +00:00
Florian Quèze 57d1e300f5 Bug 1720362 - Remove the last MOZ_GECKO_PROFILER ifdefs in ipc code, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D119801
2021-07-15 22:04:22 +00:00
Florian Quèze c4c51c4002 Bug 1720358 - Make AutoProfilerLabel available even when MOZ_GECKO_PROFILER is not defined, and remove ifdefs, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D119795
2021-07-15 22:04:22 +00:00
Florian Quèze 4f6e64dec4 Bug 1720289 - remove MOZ_GECKO_PROFILER ifdefs around network markers, r=necko-reviewers,gerald,kershaw.
Differential Revision: https://phabricator.services.mozilla.com/D119740
2021-07-15 22:04:21 +00:00
Dana Keeler 4d9a172951 Bug 1718844 - handle certificates not being available in the remembered client authentication decision dialog r=rmf,fluent-reviewers
This patch updates the remembered client authentication decision tab of the
certificate manager to gracefully handle cases where a certificate
corresponding to a remembered decision has been deleted from the user's
certificate store or if it lives on a token that has been removed.

Differential Revision: https://phabricator.services.mozilla.com/D119794
2021-07-15 21:47:39 +00:00
Dana Keeler 8a1b124e00 Bug 1710355 - replace the unmaintained memmap crate with memmap2 in cert_storage r=rmf
Differential Revision: https://phabricator.services.mozilla.com/D119563
2021-07-15 21:47:12 +00:00
Mitchell Hentges b5d3b00394 Bug 1720591: Remove unused patch_main() for Python < 3.4 on Windows r=ahal
Now that we use Python 3.6+, this code is obsolete.

Differential Revision: https://phabricator.services.mozilla.com/D119929
2021-07-15 21:44:37 +00:00
surajeet310 cb818a9aa9 Bug 1717651 - Removed instances of 'ensure_subprocess_env' from tools/tryselect/selectors r=mhentges
'ensure_subprocess_env' is obsolete now as Python 2 is no longer used in tools/tryselect/selectors .

Differential Revision: https://phabricator.services.mozilla.com/D119979
2021-07-15 21:40:50 +00:00
surajeet310 ec79e93bd5 Bug 1717651 - Removed instances of 'ensure_subprocess_env' from python/mozversioncontrol r=mhentges
Since Python 2 is no longer used in python/mozversioncontrol, hence 'ensure_subprocess_env' is obsolete.

Differential Revision: https://phabricator.services.mozilla.com/D119905
2021-07-15 21:34:08 +00:00
Mike Hommey cf31a4d0e7 Bug 1720772 - Upgrade sysroot libstdc++ to 7.5.0-6. r=firefox-build-system-reviewers,mhentges
7.3.0-1 was used because it was the last 7.x that provided the libstdc++6
package. Unfortunately, once libstdc++ is removed from the clang
toolchain, which makes the one from the sysroot used instead, it causes
an ASan issue which goes away when using a more recent version (which the
libstdc++ from clang was: it was 7.5).

So we take the last 7.x that exists, and tweak it so that it generates
the necessary libstdc++6 package.

Differential Revision: https://phabricator.services.mozilla.com/D120012
2021-07-15 21:32:04 +00:00
Nika Layzell 7ad5d70418 Bug 1718333 - Remove unnecessary AssertLinkThread assertions, r=handyman
After looking through the methods which have this assertion, I couldn't
find any examples of places where not having a specific "link thread"
sequence would cause any issues. I think these assertions can and should
be removed.

The main change required by this was to remove the `!NS_IsMainThread()`
assertion from the SchedulerGroup listener. Due to how callbacks work,
it would be possible for a vsync message to be detected by a
MessageChannel from the main thread if it was sent before the channel
was bound. I don't believe that this change should cause any issues.

Differential Revision: https://phabricator.services.mozilla.com/D119348
2021-07-15 21:09:55 +00:00
Nika Layzell 40807ad2ea Bug 1715167 - Part 7: Add tests for precursor principals, r=ckerschb,ngogge
These test various ways of loading documents which will end up with null
principals, and verify that they are loaded with the expected precursor URI.

Depends on D119693

Differential Revision: https://phabricator.services.mozilla.com/D119694
2021-07-15 21:09:16 +00:00
Nika Layzell e620d25a35 Bug 1715167 - Part 6: Use the unsandboxed result principal as precursor for sandbox principals, r=ckerschb,ngogge
This change stores a generated nsID directly on the LoadInfo, rather
than the full SandboxedLoadingPrincipal. This allows for the sandboxed
principal to be constructed from GetChannelResultPrincipal using the
unsandboxed result principal as a precursor, rather than the loading
principal.

The nsID is reset by HttpChannelBase whenever a non-internal redirect
occurs to reduce the chance of multiple null result principals during a
redirect with the same nsID, but different precursors.

Depends on D119692

Differential Revision: https://phabricator.services.mozilla.com/D119693
2021-07-15 21:09:15 +00:00
Nika Layzell 37b7c93371 Bug 1715167 - Part 5: Add a precursorPrincipal attribute to nsIPrincipal, r=ckerschb,ngogge
This provides a getter which can be used to interact with the precursor
attribute of the null principal.

Depends on D119691

Differential Revision: https://phabricator.services.mozilla.com/D119692
2021-07-15 21:09:15 +00:00
Nika Layzell dd4aed4589 Bug 1715167 - Part 4: Set precursor for redirect principal to inherit, r=ckerschb,necko-reviewers,ngogge,kershaw
When a navigation redirects, the principalToInherit is reset back to a null
principal for security reasons. This helps prevent a redirect from loading
attacker controlled content with the wrong principal. This patch gives this new
principalToInherit a precursor origin based on the resource which is being
redirected.

One time when this may come up is when an extension redirects a http: request
to a `data:` URI through the request API. Before this change, the load would
complete with a precursorless null principal, but after this change the
precursor refers to the redirected-from URL.

Depends on D119690

Differential Revision: https://phabricator.services.mozilla.com/D119691
2021-07-15 21:09:14 +00:00
Nika Layzell 6ef5d5d817 Bug 1715167 - Part 3: Track precursor origins for URI_INHERITS_SECURITY_CONTEXT responses, r=ckerschb,ngogge
If a URI has the URI_INHERITS_SECURITY_CONTEXT flag it will not be given
a content principal by CreateContentPrincipal. This patch changes the
algorithm for creating result principals for network requests such that
the null principal created in this situation has a precursor principal
tracked on it.

Depends on D119689

Differential Revision: https://phabricator.services.mozilla.com/D119690
2021-07-15 21:09:14 +00:00
Nika Layzell 0f45db2f10 Bug 1715167 - Part 2: Track precursor origins through CreateWithInheritedAttributes, r=ckerschb,ngogge
This method will be the primary way to track the precursor for a null
principal, and will automatically handle tracking precursors in some common
cases.

While sandboxed principals are created with `CreateWithInheritedAttributes`,
they unfortunately currently use the wrong precursor principal, which will be
fixed in a later part.

Depends on D119688

Differential Revision: https://phabricator.services.mozilla.com/D119689
2021-07-15 21:09:14 +00:00
Nika Layzell 42b622269c Bug 1715167 - Part 1: Add the ability to track precursor origin on null principals, r=ckerschb
This patch only adds the machinery for tracking a precursor origin to the
principal, and does not actually track the precursor origin in any situations.
That is done in follow-up patches.

Differential Revision: https://phabricator.services.mozilla.com/D119688
2021-07-15 21:09:13 +00:00
Molly Howell c8456941cf Bug 1709978 - Disable app update when running as a packaged app. r=agashlin,preferences-reviewers
This patch disables the update service as if it were disabled by policy
whenever a package identify is present. User interfaces are treated as if
the updater had not been included in the build, because that prevents any of
our usual update UI from being shown, and in particular ensures that we do not
generate messages about an administrator handling updates, as would normally
happen when disabling updates via policy.

The telemetry environment's update.enabled flag is deliberately left alone in
this patch, because the mere fact of using an app package does not really say
anything about whether the user intends to allow automatic updating or not.

Depends on D114427

Differential Revision: https://phabricator.services.mozilla.com/D114886
2021-07-15 20:58:21 +00:00
Mike Hommey 7b9151399e Bug 1720625 - Use a sysroot for the host part of the build on CI. r=firefox-build-system-reviewers,andi
Followup for bug 1719229 ; some builds have not been tweaked to use the
x86_64-linux-gnu sysroot.

In a few cases, this also use a sysroot for the target part when that
wasn't already the case.

Differential Revision: https://phabricator.services.mozilla.com/D119957
2021-07-15 20:55:05 +00:00
Mike Hommey b3a25bc860 Bug 1720641 - Don't include mozalloc.h from the cmath wrapper. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D119956
2021-07-15 20:41:54 +00:00
Sandor Molnar d7d1a498e5 Backed out changeset 28c7b58df8e4 (bug 1696842) for causing perf regressions. CLOSED TREE 2021-07-15 23:41:25 +03:00
Mike Hommey 5e626fc599 Bug 1720639 - Execute analyze.py with mach python. r=sfink
which implies python3, rather than whatever is in the analyze.py shebang.
But also change the shebang for good measure.

Differential Revision: https://phabricator.services.mozilla.com/D119943
2021-07-15 20:29:19 +00:00
amy churchwell 0c7d4a9357 Bug 1719727 - Change "Personalize" on New Tab to gear icon. r=prathiksha,fluent-reviewers,Gijs,thecount
Differential Revision: https://phabricator.services.mozilla.com/D119657
2021-07-15 19:36:50 +00:00
Mike Kaply 4ed207b4a1 Bug 1717676 - Unblock McAfee DLP > 11.6.300.2 r=tkikuchi
Differential Revision: https://phabricator.services.mozilla.com/D118515
2021-07-15 19:27:24 +00:00
Eden Chuang 7b948f8c6c Bug 1712593 - Adding diagnostic assertion for unexpected WorkerPrivate deletion. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D118480
2021-07-15 19:24:46 +00:00
Kershaw Chang 6d7d02f5f7 Bug 1720648 - Make necko work with neqo 0.4.28, r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D119991
2021-07-15 19:19:55 +00:00
Kershaw Chang 2c55ee8adf Bug 1720648 - Neqo v0.4.28, r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D119990
2021-07-15 19:19:55 +00:00
Morgan Reschenberg 5c59e82313 Bug 1716828: Notify VoiceOver of announcements from a11yUtils with AXAnnouncementRequested r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D119300
2021-07-15 19:12:09 +00:00
Morgan Reschenberg 5dd0009d35 Bug 1719736: Have mozAccessible protocol inherit from NSObject r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D119445
2021-07-15 19:12:09 +00:00
Alexandre Lissy 41550dc422 Bug 1695195 - Set SandboxReporter profiler thread name r=jld
Differential Revision: https://phabricator.services.mozilla.com/D119361
2021-07-15 19:06:35 +00:00
Anuj Gautam 557acb4135 Bug 1720761: Added kali to the list of debian configurations. r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D120003
2021-07-15 19:06:10 +00:00
Sandor Molnar e1f7148a90 Backed out 2 changesets (bug 1717486, bug 1718713) for causng eslint failures. CLOSED TREE
Backed out changeset 57c50b132961 (bug 1718713)
Backed out changeset 00b064dbf950 (bug 1717486)
2021-07-15 22:07:54 +03:00
Kajal Sah ddbe972bac Bug 1718713 - Creates dummy custom element in new screenshot. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D119209
2021-07-15 18:40:43 +00:00
Kajal Sah aae9da6492 Bug 1717486 Creates browser/components/screenshots directory.r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D118573
2021-07-15 18:40:43 +00:00
Sandor Molnar 46a8a1bb7d Backed out changeset 2582c97cd813 (bug 1717891) for causing newtab failures. CLOSED TREE 2021-07-15 21:35:38 +03:00
Eitan Isaacson def0145b01 Bug 1717575 - Check given attributes for null before iterating. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D119789
2021-07-15 18:24:01 +00:00
Morgan Reschenberg bd696c135b Bug 1720696: Only fetch mMsaa from non-null AccessibleWraps r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D120001
2021-07-15 18:23:03 +00:00
Gavin Lazar Suntop 8543b8cfac Bug 1717891 - Spoc position pref r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D119435
2021-07-15 17:56:03 +00:00