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

748200 Коммитов

Автор SHA1 Сообщение Дата
Ryan Hunt 0e4b5f4be1 Bug 1670104 - Rename TypeDescr to RttValue. r=lth
This makes the purpose of these objects explicit.

Differential Revision: https://phabricator.services.mozilla.com/D104268
2021-03-11 04:49:49 +00:00
Ryan Hunt 28e9ee4ef1 Bug 1670104 - Add struct.new_with_rtt and rtt.canon. r=lth
This commit replaces the struct.new instruction with the
struct.new_with_rtt and rtt.canon instructions. The new struct
instruction takes an rtt value as an operand. An rtt value is defined
to be the TypeDescr JSObject currently used by the constructor of
TypedObject's. This gives rtt values the same representation as
our reference values, although this doesn't need to be the case
in the future. rtt.canon is then implemented as a load of the
TypeDescr* stored in the TlsData global area for the specific
type index. When we implement type canonicalization, the
initialization of the instance will be changed to store the
canonical TypeDescr* for each type index in each slot.

The ValType representation is changed in this commit to support
the depth field of an rtt. As we're now packing 5 separate fields
in PackedTypeCode, the approach of manual shifts and masks isn't
scaling anymore. The PackedTypeCode representation is changed to
a POD union with bitfields to make access easier.

There isn't enough bits for all the fields in a ValType with our
current implementation limits when on 32-bit systems. To workaround
this, a MaxTypeIndex limit is added independent for MaxTypes which
controls the highest (ref $t) allowed. This value is the same as
MaxTypes on 64-bit systems, and a lower value for 32-bit systems.
This gives us room to keep PackedTypeCode to the native pointer
size.

Differential Revision: https://phabricator.services.mozilla.com/D104267
2021-03-11 04:49:49 +00:00
Ryan Hunt 40d0ee9401 Bug 1670104 - Fix inline/outline TypedObject codegen. r=lth
The baseline compiler assumes the struct type given to an instruction
can be used to determine if the input value will be an inline or
outline struct. This is incorrect with subtyping. A test is added
and struct instructions are made dynamic upon the kind of TypedObject
given. Longer term we should optimize this further, but this was
simplest.

Differential Revision: https://phabricator.services.mozilla.com/D104266
2021-03-11 04:49:48 +00:00
Ryan Hunt 0aed2c46c3 Bug 1670104 - Use switch and enum class for TypeDef::kind. r=lth
Clean up from class-scoped enum to enum class and use switches as
appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D104265
2021-03-11 04:49:48 +00:00
Markus Stange 74da9c9df8 Bug 1697343 - Simplify focus drawing code. r=mac-reviewers,bradwerth
The previous patch removed the only use of RadioButtonCell and CheckboxCell.
And it made FocusIsDrawnByDrawWithFrame always return false.

Differential Revision: https://phabricator.services.mozilla.com/D107907
2021-03-11 02:46:23 +00:00
Markus Stange 87d7d79487 Bug 1697343 - Remove code that was needed to support building with pre-10.12 SDKs. r=mac-reviewers,bradwerth
I skipped anything in third-party libraries. There's also one instance in plugin code but it'll be removed as part of the plugin removal effort.

Differential Revision: https://phabricator.services.mozilla.com/D107760
2021-03-11 02:46:23 +00:00
Markus Stange e57fb0e8ec Bug 1696307 - Remove declaration of private _addKnownSubview method, which we no longer call. r=mac-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D107767
2021-03-11 02:46:22 +00:00
Glenn Watson c5357efe52 Bug 1697346 - Remove snapping of inflated surface rects. r=aosmond,gfx-reviewers
When an offscreen surface establishes a raster root, this code
was causing incorrect snapping / rounded (even on non-inflated
surfaces), resulting in test failures in some cases.

In theory, this should not be necessary, since scroll offsets are
snapped, and primitives are already snapped during scene building.
Additionally, the picture surface allocation code expects surfaces
with fractional offsets and handles this case (by rounding out the
allocation size, and creating a UV set that samples from the subpixel
offsets of the surface).

In practice, there may be content that relies on this which isn't
tested by CI, so let's land this as a separate patch and see if it
causes any real-world content regressions, before landing the
changes that rely on this.

Differential Revision: https://phabricator.services.mozilla.com/D107768
2021-03-11 02:30:34 +00:00
Brindusan Cristian 17a66efa77 Backed out changeset d7e50a94db5b (bug 1696176) for bc failures in browser_edit.js. CLOSED TREE 2021-03-11 04:30:00 +02:00
Brindusan Cristian 208b2f5229 Backed out changeset 4f957141bf5f (bug 1689726) for GTest failures in psm_TrustOverrideTest.CheckCertDNIsInList. CLOSED TREE 2021-03-11 03:51:08 +02:00
Dorel Luca 55df31935a Backed out changeset 7647c3e90bed (bug 1697346) for Wrench failure. CLOSED TREE 2021-03-11 03:11:29 +02:00
Glenn Watson cd53f382d8 Bug 1697346 - Remove snapping of inflated surface rects. r=aosmond,gfx-reviewers
When an offscreen surface establishes a raster root, this code
was causing incorrect snapping / rounded (even on non-inflated
surfaces), resulting in test failures in some cases.

In theory, this should not be necessary, since scroll offsets are
snapped, and primitives are already snapped during scene building.
Additionally, the picture surface allocation code expects surfaces
with fractional offsets and handles this case (by rounding out the
allocation size, and creating a UV set that samples from the subpixel
offsets of the surface).

In practice, there may be content that relies on this which isn't
tested by CI, so let's land this as a separate patch and see if it
causes any real-world content regressions, before landing the
changes that rely on this.

Differential Revision: https://phabricator.services.mozilla.com/D107768
2021-03-11 00:45:21 +00:00
Anny Gakhokidze aa3895af8c Bug 1597427 - Check for recursive subframe loads in the parent process, r=kmag,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107311
2021-03-11 00:39:37 +00:00
Jeff Muizelaar 7016de7023 Bug 1697595 - Profile doesn't need to be #[repr(C)]. r=aosmond
The members are not used in any C api.

Differential Revision: https://phabricator.services.mozilla.com/D107928
2021-03-11 00:21:45 +00:00
Daisuke Akatsuka a9fdf157e4 Bug 1693320: Avoid autofilling if uri fragment does not match with case-sensitive. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D106393
2021-03-11 00:20:39 +00:00
owlishDeveloper d2fed3ba8c Bug 1691101 - Migrate from jcenter in android builds r=geckoview-reviewers,nalexander,agi
Differential Revision: https://phabricator.services.mozilla.com/D107573
2021-03-11 00:18:40 +00:00
Moritz Birghan 1b3fa7a521 Bug 1689726 - avoid using NSS types in TrustOverrideUtils.h r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D106888
2021-03-11 00:07:30 +00:00
Hector Zhao e20ef4f660 Bug 1697381 - Stop hardcoding the actor name in ContentSearch. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D107786
2021-03-11 00:06:58 +00:00
Mike Hommey f00f1ea9b3 Bug 1690167 - Allocate some memory before running RandomNum tests. r=Gankra
Because the previous commit changed how MFBT tests are linked, they now
use mozjemalloc. Mozjemalloc randomizes small allocations, which id does
by using MFBT's RandomNum. The code in RandomNum, on mac, uses a system
API that allocates memory. So mozjemalloc has some code to handle the
recursion gracefully.

When the RandomNum test runs, it essentially only runs the RNG... which
goes on to allocate memory, which then goes into the RNG. Needless to
say, that doesn't go well. In typical cases, this is not the type of
things that would happen, but it does happen for that one test.

We work around the issue by allocating memory first, which is actually
hard, because compilers like to optimize unused allocations away. So we
turn the existing code into one that uses an allocation instead of an
array on the stack.

Differential Revision: https://phabricator.services.mozilla.com/D105242
2021-03-10 23:52:41 +00:00
Mike Hommey 9c0fcac97c Bug 1690167 - Change VsprintfLiteral/SprintfLiteral to rely on PrintfTarget. r=nika,Gankra,firefox-build-system-reviewers,mhentges
Instead of snprintf.

Because some standalone code uses those functions directly or indirectly,
and PrintfTarget lives in mozglue, they now need to depend on mozglue
instead of mfbt. Except logalloc/replay, which cherry-picks what it
uses, and the updater, for which we keep using vsnprintf.

Differential Revision: https://phabricator.services.mozilla.com/D103730
2021-03-10 23:52:40 +00:00
Mike Hommey e47bda795b Bug 1690167 - Add support for the hh length modifier in Printf.cpp. r=nika,Gankra
Test cases from TestIntegerPrintfMacros will cover this in the next commit.

Differential Revision: https://phabricator.services.mozilla.com/D103729
2021-03-10 23:52:40 +00:00
Mike Hommey c7936d817c Bug 1690167 - Add support for the j length modifier in Printf.cpp. r=Gankra
Test cases from TestIntegerPrintfMacros will cover this in an upcoming commit.

Differential Revision: https://phabricator.services.mozilla.com/D105080
2021-03-10 23:52:39 +00:00
Mike Hommey 3e40e0ce40 Bug 1690167 - Move Sprintf.h and IntegerPrintfMacros.h next to Printf.h. r=jwalden
Which means they move from MFBT to mozglue.

Differential Revision: https://phabricator.services.mozilla.com/D103728
2021-03-10 23:52:39 +00:00
Timothy Nikkel e541ae5b11 Bug 1697416. Fix helper_bug1299195.html when double tap to zoom is enabled on mac. r=botond
The test send two taps, which triggers a double tap zoom if it's enabled, and then the test doesn't get the expected events. So change the test to disable zooming and then enable the meta viewport pref so that we respect it on desktop.

Differential Revision: https://phabricator.services.mozilla.com/D107791
2021-03-10 23:43:25 +00:00
Dorel Luca f8bbd23197 Backed out 2 changesets (bug 1672431) for Browser-chrome failures with assertion on checkouts/gecko/dom/system/IOUtils.cpp. CLOSED TREE
Backed out changeset b9b380d9a847 (bug 1672431)
Backed out changeset f4ca5feb7e35 (bug 1672431)
2021-03-11 01:44:09 +02:00
Hiroyuki Ikezoe 9941b7e92f Bug 1696442 - Make ScrollingDownWillMoveDynamicToolbar return a pair of boolean and cont AsyncPanZoomController*. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D107291
2021-03-10 23:36:14 +00:00
Boris Chiou f448377232 Bug 1682032 - aspect-ratio should be applied for auto block-size by default. r=emilio
Based on the discussion in
https://github.com/w3c/csswg-drafts/issues/5721#issuecomment-781702159,
the default ratio-dependent axis is block axis (though the spec issue is
for replaced elements, but I think the behavior should be consistent).
So we should apply aspect-ratio not matter what the inline size is (e.g.
nscoord_MAX, auto or other values).

In the test case, the min-block-size is 1073741823, and its transferred
min-inline-size is also 1073741823, so we get a 1073741823 (i.e. nscoord_MAX)
preferred inline size (i.e. result.ISize(aWM) == NS_UNCONSTRAINEDSIZE).
However, we still have to apply aspect-ratio because the style of block-size is
auto, and so mFlags.mBSizeIsSetByAspectRatio should be set unconditionally here.

I still keep this assertion because it helps me catch this potential
issue. (Just reword it anyway.)

Differential Revision: https://phabricator.services.mozilla.com/D107764
2021-03-10 23:20:49 +00:00
Brad Werth 0e1c6a953b Bug 1697579 Part 1: Add diagnostic asserts to ~CompositorBridgeParent(). r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D107904
2021-03-10 23:02:32 +00:00
Jonathan Kew 3efd86825e Bug 1696176 - Fix nsIFrame::PeekBackwardAndForward so that selectAtPoint correctly selects a single character or cluster rather than two adjacent characters. r=dholbert,emilio
This also prevents incorrectly selecting two words when double-clicking at
the end of the first word (before the inter-word space).

We also update the selectAtPoint testcase to target more widely-spread glyphs,
to check that it is behaving accurately across a larger distance.

Differential Revision: https://phabricator.services.mozilla.com/D107309
2021-03-10 22:48:16 +00:00
Agi Sferro f002e607b0 Bug 1694481 - Remove unused code in GeckoAppShell. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106187
2021-03-10 22:43:10 +00:00
Agi Sferro e4db9c53e4 Bug 1694481 - Simplify Android Listeners in GeckoAppShell. r=aklotz
GeckoAppShell has code to handle custom listeners, but we don't use them anymore.

Differential Revision: https://phabricator.services.mozilla.com/D106185
2021-03-10 22:43:09 +00:00
Agi Sferro 0d3819e98e Bug 1694481 - Remove unused android lock screen orientation support. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106184
2021-03-10 22:43:09 +00:00
Agi Sferro eac41f1807 Bug 1694481 - Remove unused methods in GeckoAppShell. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106183
2021-03-10 22:43:08 +00:00
Agi Sferro 111343732d Bug 1694481 - Remove unused code from exthandler/android. r=droeh,esawin
Differential Revision: https://phabricator.services.mozilla.com/D106182
2021-03-10 22:43:08 +00:00
Agi Sferro 9ec0facdaa Bug 1694481 - Remove unused methods in GeckoLoader. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106181
2021-03-10 22:43:08 +00:00
Agi Sferro 71dbca3068 Bug 1694481 - Remove unused NativeZip. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106180
2021-03-10 22:43:07 +00:00
Agi Sferro b39485034a Bug 1694481 - Remove unused DirectBufferAllocator. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106179
2021-03-10 22:43:07 +00:00
Agi Sferro 4a3ac00774 Bug 1694481 - Remove unused android:// protocol handler r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106178
2021-03-10 22:43:06 +00:00
Agi Sferro 59f1e51107 Bug 1694481 - Remove Fennec code in nsIAndroidBridge. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106177
2021-03-10 22:43:06 +00:00
Agi Sferro dac810181c Bug 1694481 - Remove fennec code in webcompat r=webcompat-reviewers,denschub
Differential Revision: https://phabricator.services.mozilla.com/D106176
2021-03-10 22:43:06 +00:00
Agi Sferro c72e62a54d Bug 1694481 - Don't use androidBridge to determine if we're on Android. r=whimboo,hiro
androidBridge is an implementation detail that we want to eventually remove.

Differential Revision: https://phabricator.services.mozilla.com/D106175
2021-03-10 22:43:05 +00:00
Agi Sferro 83874acc8d Bug 1694481 - Remove unused telemetry methods. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D106174
2021-03-10 22:43:05 +00:00
Dorel Luca 0f483545c6 Backed out changeset e780bd8fa66a (bug 1697253) for Mochitest failures in dom/base/test/test_domwindowutils.html. CLOSED TREE 2021-03-11 01:24:46 +02:00
Mike Hommey b09eaee3e9 Bug 1379426 - Simplify Xcode/command line tools setup on macOS. r=firefox-build-system-reviewers,mhentges
Xcode hasn't been necessary to build Firefox for a while. Command line
tools are enough, but if Xcode is available, that's also sufficient.

Mach bootstrap, however, for historic reasons, mostly, ends up wanting
to install both, which is a waste of time and disk space.

Differential Revision: https://phabricator.services.mozilla.com/D107770
2021-03-10 22:33:21 +00:00
Gavin Lazar Suntop 805af69b55 Bug 1693362 - Adding button probes to Reader View r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D107716
2021-03-10 22:15:54 +00:00
sotaro 65f6ac24c2 Bug 1697090 - Add shutdown check to CompositorBridgeParent::~CompositorBridgeParent() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D107596
2021-03-10 22:12:38 +00:00
Kirk Steuber ef5c0ecab9 Bug 1691495 - Add tests for app.update.background.enabled and its policy r=nalexander,mkaply
Note that I made this a browser test rather than an xpcshell test, despite not using any particular browser functionality. I made this choice because I expect to expand this test a bit later, adding checking for preferences UI, much like the browser_policy_app_auto_update.js test in the same directory does.

Depends on D107922

Differential Revision: https://phabricator.services.mozilla.com/D107923
2021-03-10 22:12:24 +00:00
Kirk Steuber 577f92134b Bug 1691495 - Add per-installation pref: app.update.background.enabled r=nalexander
Also moves appUpdateSettingIsLocked into UpdateUtils so it can be used by consumers.

Depends on D107921

Differential Revision: https://phabricator.services.mozilla.com/D107922
2021-03-10 22:12:24 +00:00
Kirk Steuber 69f13c15e2 Bug 1691495 - Add an enterprise policy to disable background application update r=nalexander,mkaply,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107921
2021-03-10 22:12:23 +00:00
Iain Ireland 46dac9bc8c Bug 1519483: Enable test262 tests r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D107139
2021-03-10 22:10:15 +00:00