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

763210 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez a2cfcac615 Bug 1718755 - Ensure the reftest harness at least ticks the refresh driver once. r=tnikkel
Otherwise after the previous change we might get some reftest failures
like this in noqr platforms if the snapshot is taken too soon:

  https://treeherder.mozilla.org/jobs?repo=try&revision=5452076b8278fdb514e8c3bc10486b0c74917eb0

This patch fixes it.

Differential Revision: https://phabricator.services.mozilla.com/D119453
2021-07-14 11:29:25 +00:00
Emilio Cobos Álvarez 0d448eff03 Bug 1718755 - Fix the SpecialPowers pref code to deal with ui / font prefs correctly after the previous change. r=kmag
This allows us to remove the timeout (which was there for these prefs)
and makes the code a bit more explicit.

Unconditionally making all tests wait for rAF causes some timing changes
which cause some tests to time out / fail, see:

  https://treeherder.mozilla.org/jobs?repo=try&revision=3aef4c168c6ab7d762dd360f49d4f56dff686c03

So this only does it when changing the prefs that care about it. Fix
some tests that were relying on the timeout to get this green.

Differential Revision: https://phabricator.services.mozilla.com/D119040
2021-07-14 11:29:25 +00:00
Emilio Cobos Álvarez 5c4a0e6c23 Bug 1718755 - Use an early refresh driver runner rather than Dispatch() to coalesce theme changes. r=stransky
That way we guarantee they are processed before display.

Differential Revision: https://phabricator.services.mozilla.com/D119023
2021-07-14 11:29:24 +00:00
Edgar Chen f2ec91f9fa Bug 1716413 - Wait for APZ stable in test_mouse_event_with_control_on_mac.html; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D119869
2021-07-14 11:21:40 +00:00
Masayuki Nakano 123ce22152 Bug 1720405 - part 4: Get rid of the pref setting of `dom.window.event.enabled` from the tests r=smaug
Its default value is `true`.  `dom.window.event.enabled` will never be reverted
by default in release builds.  So, we can drop it from our tests.

Differential Revision: https://phabricator.services.mozilla.com/D119852
2021-07-14 10:59:05 +00:00
Masayuki Nakano 185287a885 Bug 1720405 - part 3: Get rid of the pref check/setting of `dom.keyboardevent.keypress.set_keycode_and_charcode_to_same_value` from the tests r=smaug
It's default value is `true`.
`dom.keyboardevent.keypress.set_keycode_and_charcode_to_same_value` will neve
be reverted in release builds by default.  Therefore, we can get rid of it
from the tests unless testing non-default behavior.

Differential Revision: https://phabricator.services.mozilla.com/D119851
2021-07-14 10:59:04 +00:00
Masayuki Nakano 2115af251e Bug 1720405 - part 2: Get rid of the pref check/setting of `dom.keyboardevent.dispatch_during_composition` from the tests r=smaug
It's default value is `true`. `dom.keyboardevent.dispatch_during_composition`
will never be reverted by default in release builds.  So, we can drop it from
the tests unless testing the non-default behavior.

Differential Revision: https://phabricator.services.mozilla.com/D119850
2021-07-14 10:59:04 +00:00
Masayuki Nakano 02417e6be6 Bug 1720405 - part 1: Get rid of the pref check of `dom.keyboardevent.keypress.dispatch_non_printable_keys_only_system_group_in_content` from the tests r=smaug
Its default value is `true` and it will never be reverted in release builds
by default.  Therefore, we can get rid of it from the tests unless testing
non-default behavior.

Differential Revision: https://phabricator.services.mozilla.com/D119849
2021-07-14 10:59:03 +00:00
Mike Hommey c10a2e7771 Bug 1719229 - Fix for Toolchain bustage. CLOSED TREE 2021-07-14 13:55:56 +03:00
Nicolò Ribaudo 63aabdbba8 Bug 1719270 - Fix `MightBeForwarded` optimization in GC r=jonco
`MightBeForwarded` accidentally always used to return `true`, regardless
of the checked `Type`. It didn't cause any bug because the GC still
checks if `t->isForwarded()` returns `true`, but a working
`MightBeForwarded` allows skipping an unnecessary check.

Differential Revision: https://phabricator.services.mozilla.com/D119176
2021-07-14 10:42:44 +00:00
Robert Mader ab2349d790 Bug 1718570 - Implement full partial damage support, r=gfx-reviewers,aosmond,jnicol
This becomes possible as a side effect of making sure that the current
buffer content is always completely valid, by blitting from the
previous buffer, analogous to
`NativeLayerCA::HandlePartialUpdate` and
`WindowSurfaceWaylandMB::HandlePartialUpdate`.

Apart from reducing overpaint, this improves correctness is many
situations, avoiding glitches.

Note: the approach here may not be optimal concerning efficiency yet
and improvements are planed after further refactoring.

Depends on D118925

Differential Revision: https://phabricator.services.mozilla.com/D119015
2021-07-14 10:05:08 +00:00
Adam Bruce dbfecb35ea Bug 1713527 - Removed else after return in nsCSSProps::GetStringValue. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D119764
2021-07-14 09:11:31 +00:00
Gregory Mierzwinski 00d8ddfa98 Bug 1691561 - Disable talos profiling tests. r=perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D119767
2021-07-14 09:03:08 +00:00
Aki Sasaki be5ecee905 Bug 1720403 - reenable what's new page on release for 90+. r=releng-reviewers,mtabara DONTBUILD
Turns out we only wanted to turn off the WNP on 89, not 89+.
Backs out 5efdc103f8dd

Differential Revision: https://phabricator.services.mozilla.com/D119831
2021-07-14 08:58:11 +00:00
Mike Hommey aafa9b3b76 Bug 1719229 - Use a sysroot for the host part of the build on CI. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D119848
2021-07-14 08:54:43 +00:00
Mike Hommey 487119e349 Bug 1719229 - Allow the build system to use a sysroot for the host part of the build. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D119847
2021-07-14 08:54:43 +00:00
Mike Hommey 162f9b6800 Bug 1719229 - Rename the bootstrappable sysroot toolchains. r=firefox-build-system-reviewers,andi
In cross-compilation setups (x86_64 host, i686 or aarch64 target), we're
going to need two sysroots. Obviously, we need the sysroot paths to be
different in that case, so the sysroot path themselves need to contain
some distinctive name, and we'll use the `target.toolchain` name for
that (the target triplet with the vendor/machine stripped out).

Because the path name needs to be reflected in the artifact name as well
as the toolchain name, we also change them.

And because the current prefix in the toolchain name is now redundant
with the suffix, we remove the prefix, and allow the bootstrapping
mechanism to try toolchains without the prefix.

Differential Revision: https://phabricator.services.mozilla.com/D119846
2021-07-14 08:54:43 +00:00
Mike Hommey 8da6bc9f03 Bug 1719229 - Don't replace _ with - in toolchain names to bootstrap. r=firefox-build-system-reviewers,andi
This was originally done to avoid renaming the dump_syms toolchain, but
is going to cause problems for the next change.

Differential Revision: https://phabricator.services.mozilla.com/D119845
2021-07-14 08:54:42 +00:00
Masayuki Nakano 04b41051dd Bug 1665550 - part 4: Make `EventStateManager` update `mGestureDownFrameOwner` when anonymous nodes in `<input>` or `<textarea>` are replaced r=smaug
`EventStateManager` gives up to track gesture to start a drag if mouse down
content which is stored in `mGestureDownFrameOwner` gets lost its primary frame.

When user tries to start to drag selected text in `<input>` or `<textarea>`
element, mouse down content is an anonymous node in `TextControlElement`. So,
if a reflow occurs after `mousedown` event, the anonymous `<div>` element
is replaced with new one and `EventStateManager` gives up to track it.

Therefore, this patch makes `EventStateManager` do similar things as
`nsBaseDragService`.  When `nsTextControlFrame` notifies of remove/add
the anonymous nodes, `EventStateManager` tries to keep tracking gesture with
a new anonymous node.

Differential Revision: https://phabricator.services.mozilla.com/D119488
2021-07-14 01:20:20 +00:00
Masayuki Nakano a171e12db6 Bug 1665550 - part 3: Make `nsTextControlFrame` set the source node and selection of drag session to new ones when it's reframed r=smaug
When `nsTextControlFrame` is reframed, `TextEditor`, anonymous `<div>`, its
`Text` and the independent `Selection`s are deleted temporarily and recreated
them.

If users are dragging text in `<input>` or `<textarea>`, the drag session's
source node is set to the anonymous text node in the element and the selection
is set to the independent selection.  So, if the element is reframed during a
drag, the source node is disconnected from the document and `EndDragSession`
failed to dispatch `eDragEnd` event.

Therefore, this patch makes `nsTextControlFrame` replaces the source node and
selection when it's recreated and only when the drag session's original source
node was in the text control element.  For checking which text control had the
anonymous text node, this patch makes `nsTextControlFrame` replaces source
node with the `<input>` or `<textarea>` element when the frame is destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D119487
2021-07-14 01:20:19 +00:00
Masayuki Nakano e577d75b11 Bug 1665550 - part 2: Rewrite `test_dragdrop.html` with IIEF r=m_kato
With IIEF, we can guarantee each test block isolated.  So, without declaring
semi-global variables a lot for all tests, developers can comment out every
tests to debug only one thing.

Differential Revision: https://phabricator.services.mozilla.com/D119486
2021-07-14 01:20:19 +00:00
Masayuki Nakano 0324a4e4ef Bug 1665550 - part 1: Make `test_dragdrop.html` handle exception from synthesizePlainDragAndDrop r=m_kato
When the test is timed out, there is a JS error which is thrown by
`synthesizePlainDragAndDrop`.  So, first, make the test handle exception
with `try-catch` and assert the error.

Differential Revision: https://phabricator.services.mozilla.com/D119485
2021-07-14 01:20:18 +00:00
Iulian Moraru 8f714d1514 Backed out changeset 3e9e40d668c1 (bug 1714242) for causing bc failures on browser_urlbar_event_telemetry_noEvent.js. CLOSED TREE 2021-07-14 04:10:35 +03:00
alwu 6b5bc91eec Bug 1718709 - part3 : add test. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D119698
2021-07-14 00:59:22 +00:00
alwu c504151316 Bug 1718709 - part2 : filter out the first incorrect output that MFT decoder returns. r=bryce
For some h264 videos, MFT decoder will return the incorrect first output which presentation time is always zero. We also saw this issue before after calling draining [1].

If we accept that incorrect output, that will cause an out-of-order video frame get stored in our video queue and causes MDSM triggering the mechanism to request the next key frame because that out-of-order frame is way behind the current audio clock.

Therefore, we should filter that incorrect output out, and make sure we won't incorrectly discard the real first frame when this issue doesn't happen.

[1] https://stackoverflow.com/questions/39695131/windows-mft-media-foundation-transform-decoder-not-returning-proper-sample-tim

Differential Revision: https://phabricator.services.mozilla.com/D119439
2021-07-14 00:59:21 +00:00
alwu d38b874da9 Bug 1718709 - part1 : add assertions to clearly indicate the running thread for functions. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D119438
2021-07-14 00:59:21 +00:00
Dorel Luca 850b387d69 Backed out 3 changesets (bug 1718709) for Build bustage. CLOSED TREE
Backed out changeset 1b83279868da (bug 1718709)
Backed out changeset 705741f27314 (bug 1718709)
Backed out changeset af0392f23e07 (bug 1718709)
2021-07-14 03:48:26 +03:00
alwu e685d89f2e Bug 1718709 - part3 : add test. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D119698
2021-07-14 00:28:29 +00:00
alwu eb1dabe129 Bug 1718709 - part2 : filter out the first incorrect output that MFT decoder returns. r=bryce
For some h264 videos, MFT decoder will return the incorrect first output which presentation time is always zero. We also saw this issue before after calling draining [1].

If we accept that incorrect output, that will cause an out-of-order video frame get stored in our video queue and causes MDSM triggering the mechanism to request the next key frame because that out-of-order frame is way behind the current audio clock.

Therefore, we should filter that incorrect output out, and make sure we won't incorrectly discard the real first frame when this issue doesn't happen.

[1] https://stackoverflow.com/questions/39695131/windows-mft-media-foundation-transform-decoder-not-returning-proper-sample-tim

Differential Revision: https://phabricator.services.mozilla.com/D119439
2021-07-14 00:28:29 +00:00
alwu 6465984ab0 Bug 1718709 - part1 : add assertions to clearly indicate the running thread for functions. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D119438
2021-07-14 00:28:29 +00:00
Daisuke Akatsuka 430d97d8d4 Bug 1714242: Rename settingsButtonCompact with settingsButton. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D119581
2021-07-13 22:35:14 +00:00
Iulian Moraru cab1e7c3c1 Backed out changeset 7a1d15397ad9 (bug 1720184) for causing xpcshell failures on test_pause_exceptions-04.js. CLOSED TREE 2021-07-14 02:40:04 +03:00
Matt Woodrow c61a06c5db Bug 1719389 - Null check correct DrawTarget. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D119241
2021-07-13 22:16:01 +00:00
Matt Woodrow 677adecb5d Bug 1719449 - Store fragment URL after we're sure we've scrolled. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D119582
2021-07-13 22:11:24 +00:00
Markus Stange d46be492d2 Bug 1719935 - Remove unused "gzipped" option from ActorReadyGeckoProfilerInterface. r=canaltinova
ActorReadyGeckoProfilerInterface is used in two contexts:
 - For the perf actor, which is used when the profiler is used from the
   devtools Performance panel or via remote debugging (on about:debugging), and
 - On about:profiling, which only exercises a subset of the interface's methods
   because about:profiling does not have any UI for capturing profiles.

There are three other ways to capture profiles:
 - The global browser keyboard shortcuts (implemented in DevToolsStartup.jsm)
 - Clicking the toolbarbutton directly (implemented in popup/menu-button.jsm.js)
 - Clicking the Capture button inside the popup (implemented in popup/panel.jsm.js)

These three other ways use functions in popup/background.jsm.js to capture the profile.
They do not call ActorReadyGeckoProfilerInterface.getProfileAndStopProfiler().

When the ActorReadyGeckoProfilerInterface instance for the perf actor is created,
we pass { gzipped: false }. Consequently, ActorReadyGeckoProfilerInterface.getProfileAndStopProfiler()
is only ever called with gzipped: false. So the option can be removed.

The other three ways to capture profiles, which use captureProfile in
popup/background.jsm.js, always get the gzipped profile because captureProfile
calls Services.profiler.getProfileDataAsGzippedArrayBuffer().

Differential Revision: https://phabricator.services.mozilla.com/D119561
2021-07-13 21:43:46 +00:00
Dorel Luca a3b05cf23d Merge mozilla-central to autoland 2021-07-14 00:44:01 +03:00
Dorel Luca 42ae3bea10 Merge autoland to mozilla-central. a=merge 2021-07-14 00:41:42 +03:00
Dorel Luca d1e1f219ba Backed out changeset 0e17878eeb86 (bug 1711437) for causing Bug 1719963. a=backout DONTBUILD 2021-07-14 00:36:05 +03:00
Alexandre Poirot 02c26be2f3 Bug 1720184 - [devtools] Fix browser toolbox against mochitests. r=jdescottes
Worker targets only set threadActor late, quite asynchronously.
So that the target is registered in TargetCommand, but we can't call target.getFront
without having it to throw.

Differential Revision: https://phabricator.services.mozilla.com/D119672
2021-07-13 21:28:57 +00:00
Sylvestre Ledru ae57d6ecb3 Bug 1720365 - Move the builds using gcp from tier-3 => tier-2 r=firefox-build-system-reviewers,mhentges
We would like to ensure that regressions impacting gcp are identified earlier

Depends on D119803

Differential Revision: https://phabricator.services.mozilla.com/D119804
2021-07-13 21:28:27 +00:00
Sylvestre Ledru 08f2aac01d Bug 1720364 - Rename the gcp builds in the CI from Bg to B-gcp r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D119803
2021-07-13 21:28:27 +00:00
Ting-Yu Lin 8cfb2a0202 Bug 1699964 - Apply clang-format to nsCSSFrameConstructor.cpp. r=layout-reviewers,AlaskanEmily
Differential Revision: https://phabricator.services.mozilla.com/D119798
2021-07-13 21:25:13 +00:00
Kate Hudson a9acf38998 Bug 1720380 - Add metadata export to interactionsViewer r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D119813
2021-07-13 21:18:49 +00:00
Kris Wright 3dc0547cf8 Bug 1671574 - Add perma TSan suppression to StartupCache r=decoder
It looks like this suppression was removed downstream, but StartupCache's behavior still exists so it most likely stopped causing failures because of some other suppression interacting with it. I decided the best course of action was to put it back as a perma suppression in gecko in case we run into it again.

Differential Revision: https://phabricator.services.mozilla.com/D119783
2021-07-13 21:13:28 +00:00
Andre Natal d30670b17a Bug 1715913 - Update Firefox Translations to 0.4.3 r=preferences-reviewers,jaws,fluent-reviewers,flod,mixedpuppy
Updating Firefox Translations to 0.4.3 https://bugzilla.mozilla.org/show_bug.cgi?id=1715913
Adding a new option to the preferences menu to handle translations exceptions https://bugzilla.mozilla.org/show_bug.cgi?id=1714031
Fixes diffoscope issues https://bugzilla.mozilla.org/show_bug.cgi?id=1713561

Differential Revision: https://phabricator.services.mozilla.com/D117512
2021-07-13 21:00:08 +00:00
Timothy Nikkel 0f29892910 Bug 1719108. Check in a few places in imagelib if it's too late in shutdown to dispatch runnables. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D119712
2021-07-13 20:31:57 +00:00
Mike Hommey 627c20902f Bug 1576099 - Allow to forcefully enable cargo incremental. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D119714
2021-07-13 20:31:37 +00:00
Adam Gashlin 7b21c41dfe Bug 1710137 - Don't run helper to set default from a package. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D114662
2021-07-13 20:31:25 +00:00
Nihanth Subramanya 9b75bb157e Bug 1720079 - Don't advance Http3Session's ProcessEvents loop without getting the next event. r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D119719
2021-07-13 20:08:48 +00:00
Brendan Dahl ac675da728 Bug 1720361 - Update pdf.js to version 2.10.316 r=pdfjs-reviewers,calixte
Differential Revision: https://phabricator.services.mozilla.com/D119800
2021-07-13 19:50:24 +00:00