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

700513 Коммитов

Автор SHA1 Сообщение Дата
Tim Huang c9d7e80dfa Bug 1626226 - Copy the hasStoragePermssion flag from the document for workers when creating under a window for dedicated and shared workers. r=dimi,baku,asuth
When creating workers, dedicated workers, shared workers, we will set
the storage prinicpal to the worker load info. During getting the storage
principal, we need to check the storage permission in the content process.
However, we don't have the hasStroagePermission flag which is needed to do
the check since the channel that we use to get the principal is not opened
yet at the moment.

To address this issue, we can copy the hasStoragePermission flag from
the doucment of the window which creates the worker. Because the worker
would be the same-origin as the window. So, the hasStoragePermission
flag is supposed to be the same between the window and the worker.

We don't need to do anything for the service worker since the storage
permission won't be checked due to the service worker is disabled for
third party trackers. And the storage permission is for the third party
trackers. Thus, we can ignore this flag for service workers.

Differential Revision: https://phabricator.services.mozilla.com/D69810

--HG--
extra : moz-landing-system : lando
2020-04-08 19:02:37 +00:00
Ryan Hunt 5e49646d96 Bug 1624886 - Fix argBytes calculation in GenerateImportInterpExit. r=lth
Bug 1620197 accidentally moved the parentheses for 'max' outside of the
multiplication by sizeof(Value).

Differential Revision: https://phabricator.services.mozilla.com/D70126

--HG--
extra : moz-landing-system : lando
2020-04-08 13:25:18 +00:00
Emma Malysz a7282ce447 Bug 1590573, create a unified approach for caching fragments in our Custom Elements r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D58866

--HG--
extra : moz-landing-system : lando
2020-04-08 16:17:50 +00:00
William Durand b90b5b3778 Bug 1489430 - Add "Remove Extension" context menu item for pageAction. r=robwu,mstriemer,fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D69831

--HG--
extra : moz-landing-system : lando
2020-04-08 14:18:53 +00:00
Jesse Schwartzentruber a91be586fd Bug 1435148 - Disable jemalloc when any sanitizer is used. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D70092

--HG--
extra : moz-landing-system : lando
2020-04-08 18:01:03 +00:00
Timothy Gu d347af119f Bug 1607405 - Validate regexp derived from pattern attribute before using it. r=emilio
In particular, this correctly treats as invalid patterns like "a)(b" that only "become" valid due to the addition of the (?:) non-capturing group, that's originally used to allow the addition of ^ and $ anchors.

Differential Revision: https://phabricator.services.mozilla.com/D70143

--HG--
extra : moz-landing-system : lando
2020-04-08 14:30:21 +00:00
Gavin Lazar Suntop 9e76364881 Bug 1625567 - Update Popular Topics Links r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D69252

--HG--
extra : moz-landing-system : lando
2020-04-06 18:32:50 +00:00
Dão Gottwald 3b8b1171af Bug 1627969 - Remove the megabar pref. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D70023

--HG--
extra : moz-landing-system : lando
2020-04-08 19:04:24 +00:00
Brindusan Cristian b02e95b434 Backed out changeset 3e83007a7ebe (bug 1626590) for build bustage at test_parse_scalars.py. CLOSED TREE 2020-04-08 21:55:01 +03:00
Nika Layzell d023f7c03a Bug 1625513 - Part 2: Completely remove nsIProcessSwitchRequestor, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D69240

--HG--
extra : moz-landing-system : lando
2020-04-08 16:56:39 +00:00
Nika Layzell e7ed7401ba Bug 1625513 - Part 1: Perform onMayChangeProcess handling within DocumentLoadListener, r=mattwoodrow,pbone,droeh
When I first added this method last year, I added it in JS, handled from within
SessionStore.jsm, as that was the easiest place to do it. Now that
DocumentLoadListener exists, it makes more sense to handle this logic directly
from within that code.

Many parts of the process switch are still handled by frontend JS, such as
selecting remote types, and performing toplevel process switches.

Differential Revision: https://phabricator.services.mozilla.com/D68594

--HG--
extra : moz-landing-system : lando
2020-04-08 16:56:37 +00:00
Emilio Cobos Álvarez e1cf48e022 Bug 1627734 - Make ZoomToFocusedInput skip fixed frames again. r=botond
We lifted this restriction because with bug 656036 it makes sense to zoom into a
focused input in a fixed subtree. But this causes undesired panning up.

We could conceivably fix it if needed, but for now preserve the previous
behavior of not panning nor zooming.

Differential Revision: https://phabricator.services.mozilla.com/D69946

--HG--
extra : moz-landing-system : lando
2020-04-08 16:50:53 +00:00
Eric Rahm 905929aa4e Bug 1627131 - Part 3: Move nsTString<T>::Contains implementation. r=xpcom-reviewers,sg
`kNotFound` isn't actually defined in `nsTStringRepr.h`.

Differential Revision: https://phabricator.services.mozilla.com/D69468

--HG--
extra : moz-landing-system : lando
2020-04-08 10:46:25 +00:00
Eric Rahm 2c52ea2bb0 Bug 1627131 - Part 2: Move template function instantiations to definitions. r=xpcom-reviewers,sg
The instantiations of the externed templates need to be in the same translation unit as the definitions. Currently they work due to building in unified mode.

Differential Revision: https://phabricator.services.mozilla.com/D69467

--HG--
extra : moz-landing-system : lando
2020-04-08 10:46:02 +00:00
Eric Rahm 034401e7e4 Bug 1627131 - Part 1: Add missing includes to xpcom/string. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D69466

--HG--
extra : moz-landing-system : lando
2020-04-03 21:08:13 +00:00
Omri Sarig a60ad3ae44 Bug 1626787 - ClearKeyDecryptionManager.cpp check emptiness by empty instead of by size. r=sylvestre
Emptiness of values should be checked using the `empty` method, and not
by comparing the size to 0. Fix such case in the code of
ClearKeyDecryptionManager.cpp module.

Differential Revision: https://phabricator.services.mozilla.com/D70206

--HG--
extra : moz-landing-system : lando
2020-04-08 15:47:17 +00:00
Ricky Stewart 2fdf5b0a0a Bug 1617748 - Run `./mach build`, `./mach build-backend`, `./mach configure` with Python 3 r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D66107

--HG--
extra : moz-landing-system : lando
2020-04-04 20:38:01 +00:00
Ricky Stewart 6805c2f318 Bug 1625285 - A few small fixes to prevent bustage under Python 3 in lint/resource monitor/testing r=marionette-reviewers,glandium,whimboo
Update code in a few places to work with Python 3, especially with regard to how we invoke subprocesses with text output. Note that the Marionette test harness code needs to be updated so that text is written out in the correct encoding (see bug 1615748).

Differential Revision: https://phabricator.services.mozilla.com/D69012

--HG--
extra : moz-landing-system : lando
2020-04-08 11:42:52 +00:00
Ricky Stewart e6118a466b Bug 1623701 - Ensure processhandler.py supports Python 3.5 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D67532

--HG--
extra : moz-landing-system : lando
2020-04-03 17:04:41 +00:00
Andrea Marchesini 34ef1537f3 Bug 1628298 - Nullify both Cookie storages (private and persistent) before calling Close(), r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D70192

--HG--
extra : moz-landing-system : lando
2020-04-08 14:25:34 +00:00
Nicolas Chevobbe 32874c61d2 Bug 1626280 - Test order of cached messages in the console. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D69004

--HG--
extra : moz-landing-system : lando
2020-04-08 14:10:58 +00:00
Iain Ireland b3e82e9318 Bug 1627356: Remove MatchOnly mode r=tcampbell
MatchOnly mode is a hack. Instead of rewriting it for our new irregexp import, I'm just removing it.

Differential Revision: https://phabricator.services.mozilla.com/D69629

--HG--
extra : moz-landing-system : lando
2020-04-07 21:06:48 +00:00
Jonathan Kew afb04b12e3 Bug 1628419 - Don't keep a live CGFont reference in every macOS font entry; only retain it for fonts actually used. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D70225

--HG--
extra : moz-landing-system : lando
2020-04-08 17:35:30 +00:00
Jason Laster 766b8f8ae1 Bug 1622116 - Add a helper for visualizing server pools. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D66687

--HG--
extra : moz-landing-system : lando
2020-04-08 17:33:12 +00:00
nicolaspacheco b16dee417b Bug 1626765 - delete 'else' after 'return'. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D70145

--HG--
extra : moz-landing-system : lando
2020-04-08 16:55:00 +00:00
Eric Rahm 8e4a18ed64 Bug 1627392 - Add missing includes and namespaces to xpcom/base. r=xpcom-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D69658

--HG--
extra : moz-landing-system : lando
2020-04-08 10:12:33 +00:00
Toshihito Kikuchi e7b458ff19 Bug 1603974 - Part 8: Use RedirectToNoOpEntryPoint for dgapi[64].dll. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D68349

--HG--
extra : moz-landing-system : lando
2020-04-08 14:27:03 +00:00
Toshihito Kikuchi ae5caf8f80 Bug 1603974 - Part 7: Introduce a new blocklist type RedirectToNoOpEntryPoint. r=mhowell
This patch introduces a new DLL blocklist type `RedirectToNoOpEntryPoint`
which hooks a DLL's entrypoint into a no-op function.  With this technique,
we give the injected DLL no chance to run its code though we allow it to be
loaded into the process.

This new blocklist type is intended to block a DLL which is injected by IAT
patching which was planted by a kernel callback routine for LoadImage.  It's
because blocking such a DLL makes a new process fail to launch.

Differential Revision: https://phabricator.services.mozilla.com/D68348

--HG--
extra : moz-landing-system : lando
2020-04-08 14:27:03 +00:00
Toshihito Kikuchi a77f260120 Bug 1603974 - Part 6: Introduce Kernel32ExportsSolver. r=mhowell
This patch introduces `Kernel32ExportsSolver` which calculates RVAs of
kernel32's functions and transfers them to a target process, where the
transferred RVAs are resolved into function addresses.

Depends on D68346

Differential Revision: https://phabricator.services.mozilla.com/D68347

--HG--
extra : moz-landing-system : lando
2020-04-08 14:27:02 +00:00
Toshihito Kikuchi c0c91e1726 Bug 1603974 - Part 5: Introduce WindowsDllEntryPointInterceptor. r=mhowell
This patch introduces a new DLL interceptor `WindowsDllEntryPointInterceptor`
which applies a hook to a target function without backing up the original
function code.

Depends on D68345

Differential Revision: https://phabricator.services.mozilla.com/D68346

--HG--
extra : moz-landing-system : lando
2020-04-08 14:27:02 +00:00
Toshihito Kikuchi b01c4ba875 Bug 1603974 - Part 4: Introduce MMPolicyInProcessEarlyStage. r=mhowell
This patch introduces a new policy `MMPolicyInProcessEarlyStage` which does
not consume any functions imported from kernel32.dll so that we can use it
in a process's early stage i.e. before IAT is resolved.

Depends on D68344

Differential Revision: https://phabricator.services.mozilla.com/D68345

--HG--
extra : moz-landing-system : lando
2020-04-08 14:27:02 +00:00
Toshihito Kikuchi 2337ab0265 Bug 1603974 - Part 3: Extract a patching operation from CreateTrampoline. r=mhowell
`WindowsDllDetourPatcher::CreateTrampoline` does not only create a trampoline
region but also applies a patch on an original function.  This patch extracts
the patching part as separate functions.

Differential Revision: https://phabricator.services.mozilla.com/D68344

--HG--
extra : moz-landing-system : lando
2020-04-08 14:27:02 +00:00
Toshihito Kikuchi f7cddafed0 Bug 1603974 - Part 2: Move PEHeaders from CheckBlockInfo to IsDllAllowed. r=mhowell
This patch moves the instantiation of `PEHeaders` from `CheckBlockInfo` to
`IsDllAllowed` so that `IsDllAllowed` can use an instance of `PEHeaders`.

Depends on D68342

Differential Revision: https://phabricator.services.mozilla.com/D68343

--HG--
extra : moz-landing-system : lando
2020-04-08 14:27:01 +00:00
Toshihito Kikuchi 8bb38652d4 Bug 1603974 - Part 1: Implement nt::VirtualQuery consuming only ntdll.dll. r=mhowell
This patch introduces `nt::VirtualQuery` which consumes only ntdll's functions
to reduce dependency in `MMPolicy` on kernel32.dll.  With this, `MMPolicy` still
depends on kernel32.dll, that will be solved by a coming patch.

Differential Revision: https://phabricator.services.mozilla.com/D68342

--HG--
extra : moz-landing-system : lando
2020-04-08 14:27:01 +00:00
Michael Froman d7147ca5b6 Bug 1626814 - Close peer connections when test_peerConnection_nonDefaultRate.html is finished. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D70200

--HG--
extra : moz-landing-system : lando
2020-04-08 15:07:22 +00:00
Chris H-C bfe6607326 Bug 1626590 Use os._exit not sys.exit in atexit in Python3 r=glandium,janerik
Also: os._exit is much faster than sys.exit, so remember to flush stderr or
we won't see the errors we just printed.

Differential Revision: https://phabricator.services.mozilla.com/D70047

--HG--
extra : moz-landing-system : lando
2020-04-08 08:37:13 +00:00
Thom Chiovoloni f4c72f5296 Bug 1626323 - Vendor rusqlite into mozilla-central. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D70109

--HG--
extra : moz-landing-system : lando
2020-04-07 22:13:51 +00:00
Matthew Noorenberghe 4d622e5e04 Bug 1550518 - Add --headless support for xpcshell-test. r=gbrown
Entries in the xpcshell.ini manifest override the default specified on the command line.

Differential Revision: https://phabricator.services.mozilla.com/D70166

--HG--
extra : moz-landing-system : lando
2020-04-08 18:19:23 +00:00
Michal Novotny 2a483b2bc4 Bug 1622409 - Put FTP code behind a pref r=marionette-reviewers,valentin,whimboo,mixedpuppy
Disables FTP protocol handler on nightly. FTP scheme is handled by external protocol handler if it isn't explicitly disabled with preference network.protocol-handler.external.ftp = false.

Differential Revision: https://phabricator.services.mozilla.com/D68974

--HG--
extra : moz-landing-system : lando
2020-04-07 19:49:26 +00:00
Kris Taeleman d6bbb95830 Bug 1622020 - Add DTZ info to about:support. r=botond,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D69839

--HG--
extra : moz-landing-system : lando
2020-04-06 22:49:37 +00:00
octavian.negru 3a696588bd Bug 1607458 - Remove browsertime jobs app name from 'extraOptions' r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D68180

--HG--
extra : moz-landing-system : lando
2020-04-08 13:55:37 +00:00
Neil Deakin e4f91a3e2e Bug 1614713, move neterror actor over to the actor-based RemotePageChild, and move neterror-specific functions to the NetErrorChild subclass so that they cannot be accessed via other pages, r=johannh,mossop
Differential Revision: https://phabricator.services.mozilla.com/D65335

--HG--
extra : moz-landing-system : lando
2020-04-08 14:08:29 +00:00
Neil Deakin 8d97cadc7f Bug 1614713, add a remote page manager like object that uses JSWindowActor instead. Move access management into a separate module that can be used within a child or parent process. Ensure all RPM calls go through the access manager, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D63713

--HG--
rename : toolkit/components/remotepagemanager/MessagePort.jsm => toolkit/actors/RemotePageChild.jsm
extra : moz-landing-system : lando
2020-04-08 14:08:11 +00:00
Noemi Erli be7697306a Backed out changeset 65ec189c410c (bug 1611938) for causing Android crashes CLOSED TREE 2020-04-08 17:21:10 +03:00
David Major 9caebd9642 Bug 1326486 - build-clang: Convert 3-stage builds to 4-stage PGO builds. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D69084

--HG--
extra : moz-landing-system : lando
2020-04-07 14:12:51 +00:00
David Major b9ae8ced29 Bug 1326486 - build-clang: Add support for PGO builds. r=glandium
This adds the ability to do four-stage PGO builds. This was surprisingly straightforward thanks to PGO being a well-supported scenario in LLVM's cmake.

For reference, the stages are:
stage1: Initial build with gcc
stage2: Instrumented build using stage1
stage3: Train by using the instrumented stage2 to build the clang tree
stage4: Optimize using the stage3 compiler and the profdata created with it

Differential Revision: https://phabricator.services.mozilla.com/D69080

--HG--
extra : moz-landing-system : lando
2020-04-07 14:12:58 +00:00
David Major ac66ff483a Bug 1326486 - build-clang: Add support for 4-stage builds r=glandium
Separating out the mechanical/"boring" changes to make the next patch more clear. This patch adds the ability to build a fourth stage that for now doesn't do anything special.

I changed to using >= to make it more obvious that e.g. "here is what's going to happen for stage 2" -- the off-by-one was too hard on my brain.

Differential Revision: https://phabricator.services.mozilla.com/D69079

--HG--
extra : moz-landing-system : lando
2020-04-07 14:13:01 +00:00
David Major e97651891b Bug 1326486 - build-clang: Merge LLVM a84b200e604 to fix Windows PGO. r=glandium
a84b200e60

Differential Revision: https://phabricator.services.mozilla.com/D69083

--HG--
extra : moz-landing-system : lando
2020-04-07 14:12:54 +00:00
David Major 705563e08e Bug 1326486 - build-clang: Install imports and asan symbols only in the final stage r=glandium
Otherwise, PGO builds would fail to find asan at stage2 because the instrumented build uses `LLVM_BUILD_RUNTIME=No`.

Differential Revision: https://phabricator.services.mozilla.com/D69082

--HG--
extra : moz-landing-system : lando
2020-04-07 14:12:56 +00:00
David Major 116a8a120b Bug 1326486 - build-clang: avoid building unnecessary things in intermediate stages. r=glandium
This will partially atone for making builds longer with PGO.

Depends on D69618

Differential Revision: https://phabricator.services.mozilla.com/D69620

--HG--
extra : moz-landing-system : lando
2020-04-07 14:12:47 +00:00