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

750132 Коммитов

Автор SHA1 Сообщение Дата
Paul Adenot 40f112b380 Bug 1686295 - Flip the order of two time measurement calls in telemetry to provide actual guarantees to callers. r=chutten
See the comment in the code for the rationale. Having it in the other order
(before this patch) caused a but real rare intermittent on Linux and macOS, the
two OSes where this is used and the clock has a high enough resolution. This
happened when the first call was made before a millisecond mark and the second
one after, with the same time source: machines on treeherder don't suspend, the
numbers should be equal, but rarely the time excluding suspend was longer by 1ms
compared to the time including suspend.

Differential Revision: https://phabricator.services.mozilla.com/D109370
2021-03-23 08:54:55 +00:00
Jonathan Kew a297afdd22 Bug 1681691 - Update metadata for WPT metrics-override tests. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D109291
2021-03-23 08:37:08 +00:00
Jonathan Kew 6db7978dac Bug 1681691 - Adjust font-family names used in WPT metrics-override tests to avoid spurious failures due to antialiasing in Gecko. r=emilio
Many WPT reftests compare Ahem glyphs (squares) with a reference that uses simple shapes
such as a <div> with a solid background that is expected to have the exact same size.

If antialiasing is applied to the Ahem font, such tests will often fail because of
faint antialiasing pixels at the edges of the square glyphs, even though the test is
"passing" in terms of what it actually aims to check.

Rather than annotate all such tests as "fuzzy", Gecko has an option to disable antialiasing
for the Ahem font, despite it being enabled for font rendering in general, and we use this
when running the WPT reftests. However, this depends on the font-family name being exactly
"Ahem".

Therefore, in the tests which load Ahem via @font-face and override some descriptors,
we still want to use "Ahem" as the resulting family name (shadowing the standard Ahem,
if it is locally installed) so that the non-antialiased rendering will be used.

(In the case of metrics-override-normal-keyword, there are multiple "custom" versions
of Ahem loaded by the testcase, so we instead take the approach of also loading it with
a modified family name in the reference; then both testcase and reference will get
the default antialiased font rendering rather than special "Ahem" treatment.)

Differential Revision: https://phabricator.services.mozilla.com/D109290
2021-03-23 08:37:08 +00:00
Jonathan Kew 31e403716c Bug 1681691 - Add support for metrics overrides to gfxUserFontEntry, dom::FontFace, etc r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D109289
2021-03-23 08:37:07 +00:00
Jonathan Kew a7442dc478 Bug 1681691 - Add metrics override descriptors to webidl. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D109288
2021-03-23 08:37:07 +00:00
Jonathan Kew 03752c9177 Bug 1681691 - Also remove unnecessary 'unsafe' from a bunch of FontFaceRule descriptor getters. r=emilio
Depends on D109287

Differential Revision: https://phabricator.services.mozilla.com/D109344
2021-03-23 08:37:07 +00:00
Jonathan Kew 9c70dc7340 Bug 1681691 - Add ascent-, descent- and line-gap-override descriptors to the style system. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D109287
2021-03-23 08:37:06 +00:00
Jonathan Kew 829e78632b Bug 1681691 - Convert the font-stretch descriptor to use NonNegativePercentage. r=emilio
Depends on D109285

Differential Revision: https://phabricator.services.mozilla.com/D109286
2021-03-23 08:37:06 +00:00
Jonathan Kew 4545c4a746 Bug 1681691 - Create a NonNegativePercentage type in values:specified. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D109285
2021-03-23 08:37:05 +00:00
Alexandre Poirot 835997ddf8 Bug 1697147 - [devtools] Handle destroyed content processes when calling WatcherActor.watchTargets. r=nchevobbe
Apply the same technique as in addWatcherDataEntry in order
to better handle the case when a content process is being destroyed
while we call one of these two methods.

Differential Revision: https://phabricator.services.mozilla.com/D109336
2021-03-23 08:29:21 +00:00
yk f827557d18 Bug 1693482 - SIMD optimization x64/x86: inline constant load for CMPGTB in MacroAssembler::swizzleInt8x16. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D109230
2021-03-23 08:08:33 +00:00
Dão Gottwald c5f8b69bc5 Bug 1699158 - Rename variables related to non-default/non-primary buttons. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D109423
2021-03-23 08:06:10 +00:00
Jan de Mooij 04605f0cbc Bug 1699622 - Set IsUsedAsPrototype flag on module prototypes for off-thread parsing if needed. r=tcampbell
This only affects the JS shell with the --off-thread-parse-global flag.

Differential Revision: https://phabricator.services.mozilla.com/D109270
2021-03-23 07:38:20 +00:00
Lee Salzman 7d630ccb29 Bug 1678892 - Pass dirty and opaque regions to layers compositor. r=sotaro
The backend CompositorD3D11/CompositorOGL layers compositors can already do
partial clear optimizations for us if applicable. The only thing we need to
do is pass in the actual dirty/opaque regions so that it can utilize it.

Like with RenderCompositorSWGL, we move the actual allocation of the framebuffer
into StartCompositing when this information is known, rather than BeginFrame
which is too early in the frame to have this information yet.

Differential Revision: https://phabricator.services.mozilla.com/D109092
2021-03-23 06:36:39 +00:00
Lee Salzman 0e1c0ff1cf Bug 1678892 - Use PBOs for uploading tiles in RenderCompositorOGLSWGL. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D109032
2021-03-23 06:36:39 +00:00
Jan de Mooij 1173d34205 Bug 1700034 - Use MAX_ARRAY_INDEX for all isIndex functions. r=evilpie,anba
This fixes an inconsistency where IdIsIndex used MAX_ARRAY_INDEX (UINT32_MAX - 1)
as maximum index value and isIndex on JSLinearString/JSAtom used UINT32_MAX.
We now use MAX_ARRAY_INDEX as maximum index value for all of these.

In the future it might make sense to optimize index values >= UINT32_MAX better
(for example for large typed array indexes) and separate these two kinds again
somehow, but for now it's better to be consistent.

Differential Revision: https://phabricator.services.mozilla.com/D109268
2021-03-23 06:24:02 +00:00
Cosmin Sabou 0a79b0bd42 Backed out 10 changesets (bug 1581859) for causing hazard failures on ExtensionsParent.cpp.
Backed out changeset 6020ec7d7f32 (bug 1581859)
Backed out changeset 07901e457839 (bug 1581859)
Backed out changeset e23389fc98b5 (bug 1581859)
Backed out changeset 4287eebc2c77 (bug 1581859)
Backed out changeset eeff6f501cfc (bug 1581859)
Backed out changeset 22db36f7d16d (bug 1581859)
Backed out changeset 16831d45d0ed (bug 1581859)
Backed out changeset 816643de7694 (bug 1581859)
Backed out changeset 6fd5aa7895e3 (bug 1581859)
Backed out changeset 2b68d2eee18e (bug 1581859)
2021-03-23 05:48:27 +02:00
Cosmin Sabou 7eba371387 Backed out 10 changesets (bug 1581859) for causing hazard failures on ExtensionsParent.cpp.
Backed out changeset 6020ec7d7f32 (bug 1581859)
Backed out changeset 07901e457839 (bug 1581859)
Backed out changeset e23389fc98b5 (bug 1581859)
Backed out changeset 4287eebc2c77 (bug 1581859)
Backed out changeset eeff6f501cfc (bug 1581859)
Backed out changeset 22db36f7d16d (bug 1581859)
Backed out changeset 16831d45d0ed (bug 1581859)
Backed out changeset 816643de7694 (bug 1581859)
Backed out changeset 6fd5aa7895e3 (bug 1581859)
Backed out changeset 2b68d2eee18e (bug 1581859)
2021-03-23 05:48:27 +02:00
Barret Rennie ca179d4005 Bug 1672431 - Provide a shutdown client for IOUtils r=xpcom-reviewers,nika
IOUtils now provides a shutdown client for clients to register IO jobs with
that need to run before shutdown finishes. This allows IO jobs to run during
the profileBeforeChange phase.

IOUtils' event queuing has been refactored into a singleton EventQueue class,
which is responsible for running tasks and setting up shutdown blockers. It is
now guarded behind a StaticDataMutex so that is more explicitly clear what is
and is not re-entrant. (The atomic sShutdownFinished cannot be placed behind
the mutex because we need to keep track of that state even when we do not have
an EventQueue.)

Differential Revision: https://phabricator.services.mozilla.com/D103973
2021-03-23 04:26:50 +00:00
Barret Rennie 3ba0fd279a Bug 1672431 - Remove unsued InvokeToIOPromise r=nika
Differential Revision: https://phabricator.services.mozilla.com/D103972
2021-03-23 04:26:50 +00:00
Markus Stange 196055761d Bug 1700022 - Only cache [NSColor controlBackgroundColor] once. r=mac-reviewers,bradwerth
Depends on D109255

Differential Revision: https://phabricator.services.mozilla.com/D109256
2021-03-23 02:18:19 +00:00
Markus Stange 03b56a8c48 Bug 1700022 - Only cache [NSColor gridColor] once. r=mac-reviewers,bradwerth
Depends on D109254

Differential Revision: https://phabricator.services.mozilla.com/D109255
2021-03-23 02:18:19 +00:00
Markus Stange b179feb309 Bug 1700022 - Only cache [NSColor controlTextColor] once. r=mac-reviewers,bradwerth
Depends on D109253

Differential Revision: https://phabricator.services.mozilla.com/D109254
2021-03-23 02:18:18 +00:00
Markus Stange 65e99f17fd Bug 1700022 - Only store [NSColor alternateSelectedControlTextColor] once. r=mac-reviewers,bradwerth
Depends on D109252

Differential Revision: https://phabricator.services.mozilla.com/D109253
2021-03-23 02:18:18 +00:00
Markus Stange 07e94bcccd Bug 1700022 - Remove mColorButtonText member because it's always white. r=mac-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D109252
2021-03-23 02:18:17 +00:00
Jeff Muizelaar 4231661a1d Bug 1696688. Set IOSurface color space to sRGB. r=mstange
This lets the WindowServer do all of the color correction for us
including WebGL and 2D canvas.

There's some concern that this will increase GPU usage as
reported in https://bugs.chromium.org/p/chromium/issues/detail?id=417150#c34.
However, the alernative of doing everything in device space isn't very
attractive because we'd have to color manage canvas and webgl ourselves.

Further, Chrome doesn't seem to be using the device space and it seems
like there's typically already a mix of color spaces in use so hopefully
the GPU increase is not high.

Differential Revision: https://phabricator.services.mozilla.com/D109383
2021-03-23 01:33:54 +00:00
sotaro 6f9594cf0a Bug 1699352 - Fix DrawTargetD2D1::mVRAMUsageSS handling r=jrmuizel
Implementation is borrowed from SourceSurfaceD2DTarget::mOwnsCopy that existed in the past.

Differential Revision: https://phabricator.services.mozilla.com/D108906
2021-03-23 01:17:19 +00:00
Makoto Kato 3888581ee0 Bug 1694046 - Don't wait for selection event. r=geckoview-reviewers,droeh
Bug 1650705's geckoview-junit test counts the number of input event times.
It is unnecessary to wait for selection event and Gecko may not sometimes
fire selection event on input or textarea element. So use
InputConnection.setSelection directly instead of waiting for DOM event.

Differential Revision: https://phabricator.services.mozilla.com/D109354
2021-03-23 01:06:19 +00:00
Edgar Chen 51ca98dfcb Bug 1700138 - Make wpt keyboard-accesskey-click-event.html pass on Mac; r=masayuki
Gecko use the same combination as other browsers to trigger accesskey.

Differential Revision: https://phabricator.services.mozilla.com/D109369
2021-03-23 00:49:39 +00:00
Jeff Muizelaar 9290181962 Bug 1700113 - Use the builtin gettid() on Android. r=glandium
Syscalls can be pretty slow on Android and this lets us use the
gettid() cache that bionic has:
d7c52625f2/libc/bionic/gettid.cpp

Differential Revision: https://phabricator.services.mozilla.com/D109353
2021-03-23 00:41:12 +00:00
Kartikaya Gupta 8578230f3f Bug 1699997 - Remove unused moveMouseAndScrollWheelOver function. r=botond
Everybody uses the promise-style equivalent so we can just move over
the documentation and drop the function.

Depends on D109248

Differential Revision: https://phabricator.services.mozilla.com/D109249
2021-03-22 23:25:42 +00:00
Kartikaya Gupta f9ea14eba7 Bug 1699997 - Remove unused synthesizeNativeMouseEventWithAPZAndWaitForEvent function. r=botond
It was only used by the promise-style equivalent, so this folds the two together.

Depends on D109247

Differential Revision: https://phabricator.services.mozilla.com/D109248
2021-03-22 23:25:41 +00:00
Kartikaya Gupta 6fd1b63595 Bug 1699997 - Remove synthesizeNativeWheelAndWaitForScrollEvent and migrate callers to promiseNativeWheelAndWaitForScrollEvent. r=botond
Depends on D109246

Differential Revision: https://phabricator.services.mozilla.com/D109247
2021-03-22 23:25:41 +00:00
Kartikaya Gupta 016e398f2f Bug 1699997 - Convert synthesizeNativeWheelAndWaitForObserver from callback-style to promise-style. r=botond
This function has only one caller, which was trivial to migrate.

Depends on D109245

Differential Revision: https://phabricator.services.mozilla.com/D109246
2021-03-22 23:25:40 +00:00
Kartikaya Gupta 4b1b64c91f Bug 1699601 - Rename promiseApzRepaintsFlushed to promiseOnlyApzControllerFlushed. r=botond
This was a mechanical search-and-replace operation, plus adding some docs on
renamed function.

Differential Revision: https://phabricator.services.mozilla.com/D109245
2021-03-22 23:25:40 +00:00
Sean Feng a0fc34d157 Bug 1693327 - Assert the global is dying when EventCounts fails to set values r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D106530
2021-03-22 23:22:23 +00:00
Kris Maglione 8fcbfe770b Bug 1671656: Remove intersection observer after calling finish(). r=nika
Differential Revision: https://phabricator.services.mozilla.com/D109386
2021-03-22 23:20:14 +00:00
Kris Maglione ed88fc8bd1 Bug 1646510: Remove deprecated nsContentUtils::GetCrossDocParentNode. r=nika
Moves its last remaining (parent-process-only) caller to use a local static
copy instead.

Differential Revision: https://phabricator.services.mozilla.com/D109420
2021-03-22 23:19:59 +00:00
Bogdan Tara 2e4b430900 Backed out 3 changesets (bug 1693008) for browser_contentOrigins.js mochitest failures CLOSED TREE
Backed out changeset 0201beb76f6b (bug 1693008)
Backed out changeset 8ea5931ae7f7 (bug 1693008)
Backed out changeset dde156c20eb1 (bug 1693008)
2021-03-23 02:13:07 +02:00
Bogdan Tara 393125c6c4 Backed out changeset c0c671865b2e (bug 1699828) for browser_ext_menus_replace_menu_context.js mochitest failures CLOSED TREE 2021-03-23 02:11:07 +02:00
Hiroyuki Ikezoe 16cc3d1669 Bug 1699367 - Skip browser_ext_popup_select_in_oopif.js without Fission. r=kmag
The test basically was written for Fission, but unfortunately it fails
intermittently without Fission becasue, I assume, there was a pre-existing race
condition causing the failure without Fission, so we are going to skip the
test without Fission for now.

Differential Revision: https://phabricator.services.mozilla.com/D109250
2021-03-22 22:59:08 +00:00
Hiroyuki Ikezoe 02782145d1 Bug 1697679 - Start an OverscrollAnimation in OnPan for momentum gestures if we"ve been into overscrolled state and ignore subsequent momentums during the animation is running. r=botond,mstange
Depends on D108901

Differential Revision: https://phabricator.services.mozilla.com/D109012
2021-03-22 22:56:45 +00:00
Hiroyuki Ikezoe 54a1fed65e Bug 1697679 - Start an OverscrollAnimation in OnPanEnd if we are in overscrolled state. r=botond,mstange
Differential Revision: https://phabricator.services.mozilla.com/D108901
2021-03-22 22:56:44 +00:00
Oliver Pope 0fc5685f2c Bug 1695266 - Create documentation for the Picture-in-Picture Overrides extension r=mtigley,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D108073
2021-03-22 22:50:52 +00:00
Mike Hommey 4e512a5e67 Bug 1699321 - Avoid DMD crashes on Windows debug builds. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D109425
2021-03-22 22:50:25 +00:00
alaaemad 4c0ff82c4e Bug 1694311 - Populate PinchGestureInput::mLineOrPageDeltaY on Linux. r=tnikkel
This ensures that, in addition to wheel events, DOMMouseScroll events are
also dispatched to Gecko during pinches.

Differential Revision: https://phabricator.services.mozilla.com/D107390
2021-03-22 22:48:45 +00:00
Botond Ballo 6608cc83e3 Bug 1694311 - Promiseify scenario 4 in helper_zoom_with_touchpad.html. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D109430
2021-03-22 22:48:45 +00:00
Gijs Kruitbosch 6e6a2e8c23 Bug 1693008 - add a test for showing the origin for web content dialogs in proton, r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D109152
2021-03-22 22:47:04 +00:00
Gijs Kruitbosch d6446d3b82 Bug 1693008 - show only the origin in web content dialogs when using proton, r=mtigley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D108713
2021-03-22 22:47:04 +00:00
Gijs Kruitbosch 04f78c6cba Bug 1693008 - add an iconified title to commonDialog using a reusable script, r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D108656
2021-03-22 22:47:03 +00:00