768800 Commits

Author SHA1 Message Date
Iulian Moraru
491f3edc01 Bug 1546930 - disable browser_toggleTransparentOverlay-2.js on linux_18.04_64 for frequent failures. r=intermittent-reviewers,bhearsum DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D124586
2021-09-08 05:18:27 +00:00
Cosmin Sabou
e097f3b06f Backed out changeset 40f514ec207e (bug 1729406) for causing windows build bustages. CLOSED TREE 2021-09-08 07:43:48 +03:00
Timothy Nikkel
409d2513b2 Bug 1729604. Remove unused aClipRect argument to nsLayoutUtils::ComputeScrollMetadata. r=hiro
Depends on D124871

Differential Revision: https://phabricator.services.mozilla.com/D124872
2021-09-08 04:20:56 +00:00
Timothy Nikkel
138d77c546 Bug 1729604. Remove unused ScrollFrameHelper::mAddClipRectToLayer. r=hiro
Depends on D124870

Differential Revision: https://phabricator.services.mozilla.com/D124871
2021-09-08 04:20:56 +00:00
Timothy Nikkel
f06fa58321 Bug 1729604. Remove unused aClip parameter from ScrollFrameHelper::ComputeScrollMetadata. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D124870
2021-09-08 04:20:55 +00:00
Ting-Yu Lin
57b867e7ff Bug 1728708 Part 4 - Simplify WordBreaker::Next() and make it recognize the end of text a word break opportunity. r=jfkthame
A UAX29 compatible word breaker (like ICU4C) treat the end of text as a
word break opportunity (rule WB2 [1]), but currently lwbrk word breaker
doesn't.

The motivation of this patch is to make `WordBreaker::Next()` closer to
a UAX29 compatible one (at least for English text), and see if the
callers need to change. This should make the future integration of ICU4X
segmenter easier.

The only caller of WordBreaker::Next() is ClusterIterator's constructor.
This patch shouldn't change its behavior because we've already manually
assigned a word break point at the end of the line when `aContext` is
empty and `aDirection` is -1. This patch generalizes it to all
conditions.

Also, update TestPrintWordWithBreak() so that the result string makes
more sense.

[1] https://www.unicode.org/reports/tr29/#WB2

Differential Revision: https://phabricator.services.mozilla.com/D124304
2021-09-08 04:19:38 +00:00
Ting-Yu Lin
edb9c8ed39 Bug 1728708 Part 3 - Clean up the gtest for line and word breaker. r=jfkthame
Here are the changes in this patch. They shouldn't change the behavior.

* Rename the gtest to `TestBreak.cpp` because it also contains word break tests.
* Align ruler comments to the test strings.
* Rename `lb` to `wb` in `TestASCIIWB`.
* Remove unused variable `j` in `TestPrintWordWithBreak()`.
* Use `ArrayLength` instead of `sizeof` trick to get the array length.
* #include ArrayUtils.h, and sort the #includes statements.

Differential Revision: https://phabricator.services.mozilla.com/D124303
2021-09-08 04:19:37 +00:00
Ting-Yu Lin
69a841c529 Bug 1728708 Part 2 - Rename WordBreaker::NextWord() to WordBreaker::Next(). r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D124302
2021-09-08 04:19:37 +00:00
Ting-Yu Lin
1083821003 Bug 1728708 Part 1 - Move WordBreakClass and GetClass into WordBreaker's private section. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D124301
2021-09-08 04:19:36 +00:00
Mike Hommey
c7391546a8 Bug 1729406 - Use .tar.zst for most toolchain artifacts. r=firefox-build-system-reviewers,andi
We leave the following ones unchanged:
- geckodriver because the results are used to releases on github.
- sixgill because the script that creates it is not in-tree.
- *-dist-toolchain because sccache is not expecting a .tar.zst.

We use native tar support in most cases, except for toolchain scripts also
used on Windows, for which we use our zstdpy script.

Differential Revision: https://phabricator.services.mozilla.com/D124733
2021-09-08 03:44:03 +00:00
Noemi Erli
2c90034df8 Backed out changeset d6d54748247b (bug 1729406) for causing Win build bustages CLOSED TREE 2021-09-08 05:26:26 +03:00
Mike Hommey
ae9fad3fae Bug 1729413 - Upgrade the custom-v8 docker image to Debian 11. r=taskgraph-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D124746
2021-09-08 00:40:33 +00:00
Mike Hommey
efbd876d00 Bug 1729413 - Upgrade the upload symbols task to a Debian 11 docker image. r=taskgraph-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D124745
2021-09-08 00:40:32 +00:00
Mike Hommey
6db5326c04 Bug 1729413 - Upgrade the static-analysis-build docker image to Debian 11. r=taskgraph-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D124744
2021-09-08 00:40:32 +00:00
Mike Hommey
64425e7029 Bug 1729413 - Upgrade the android-build docker image to Debian 11. r=taskgraph-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D124743
2021-09-08 00:40:31 +00:00
Mike Hommey
eab6be4ae6 Bug 1729411 - Package the source wasm2c generates. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D124734
2021-09-08 00:40:14 +00:00
Jeff Muizelaar
e08d396870 Bug 1690687. Remove unneeded postEvent. r=mstange
This avoids always posting a NSEvent to the event loop everytime we run a
non-native event. Servicing native NSEvents appears to have quite a high
overhead and causes us to commit a CoreAnimation transaction and communicate
with the WindowServer for every Gecko event. This change should also reduce the
CPU usage of the WindowServer process.

It appears that we still need to post an NSEvent when we're in a nested event loop
or when we're shutting down, but those situations are uncommon.

Differential Revision: https://phabricator.services.mozilla.com/D124857
2021-09-08 00:37:04 +00:00
Mike Hommey
3f7b2e461d Bug 1729401 - Upgrade valgrind to 3.17.0. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D124736
2021-09-08 00:34:54 +00:00
Mike Hommey
51fb9213d5 Bug 1729414 - Remove the wgpu docker image. r=taskgraph-reviewers,bhearsum
Bug 1726626 removed its only use.

Differential Revision: https://phabricator.services.mozilla.com/D124737
2021-09-08 00:32:24 +00:00
Tetsuharu Ohzeki
cc4be149b9 Bug 1729570 - part 3: Remove unused gfxPlatform::GetAcceleratedCompositorBackends(). r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124862
2021-09-08 00:32:09 +00:00
Tetsuharu Ohzeki
52196aec67 Bug 1729570 - part 2: Remove unused gfxPlatform::GetCompositorBackends(). r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124861
2021-09-08 00:32:09 +00:00
Tetsuharu Ohzeki
2d62dd89ed Bug 1729570 - part 1: Remove gfx/tests/gtest/TestTextureCompatibility.cpp. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124860
2021-09-08 00:32:08 +00:00
Mike Hommey
ddf2323be6 Bug 1729406 - Use .tar.zst for most toolchain artifacts. r=firefox-build-system-reviewers,andi
We leave the following ones unchanged:
- geckodriver because the results are used to releases on github.
- sixgill because the script that creates it is not in-tree.
- *-dist-toolchain because sccache is not expecting a .tar.zst.

We use native tar support in most cases, except for toolchain scripts also
used on Windows, for which we use our zstdpy script.

Differential Revision: https://phabricator.services.mozilla.com/D124733
2021-09-08 00:31:19 +00:00
Tetsuharu Ohzeki
da3f8a5ccf Bug 1729579 - Remove gfxPlatformGtk::UseImageOffscreenSurfaces(). r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D124865
2021-09-08 00:20:44 +00:00
Mike Hommey
4e8e23f4e8 Bug 1729383 - Simplify the parallel build setup. r=firefox-build-system-reviewers,mhentges
Historically, client.mk was not invoked with -jn because it would create
race conditions, but that was actually mostly solved by the addition of
`.NOTPARALLEL` in bug 422986, although the mechanism of adding -jn via
`MOZ_MAKE_FLAGS` or `MOZ_PARALLEL_BUILD` has continued well past that.

Nowadays, client.mk is only invoked by mach (it will even bail out if
that's not the case) and only has one target (`build`) and no
dependencies.

This means we don't need to rely on `MOZ_PARALLEL_BUILD` to pass `-jn` in
some cases, and can just always invoke `make -f client.mk` with `-jn`, even
when we just want no parallelism, in which case we can use `-j1`.

This, in turn, allows to remove the extra allow_parallel argument to
`_run_make`, and only rely on `num_jobs`, and to remove some of the
multiple ways the `n` in `-jn` could be set.

Differential Revision: https://phabricator.services.mozilla.com/D124729
2021-09-08 00:10:22 +00:00
Mike Hommey
a8480fc1c2 Bug 1729383 - Move sccache shutdown back to client.mk. r=firefox-build-system-reviewers,mhentges
It was moved in bug 1495798 for rusttests, because they didn't use
client.mk, but as of bug 1683797, they do. And it turns out that when
sccache is really started as originally intended, inheriting the make
jobserver, the build is dead-locked until sccache quits (because sccache
still has a jobserver token for some reason). But sccache never quits
when we make it stop outside client.mk.

Differential Revision: https://phabricator.services.mozilla.com/D124728
2021-09-08 00:10:22 +00:00
Mike Hommey
4fa73a9662 Bug 1729383 - Fix the parsing of mk_add_options for non-make backends. r=firefox-build-system-reviewers,mhentges
It was failing on mk_add_options values containing a `=` character.

Differential Revision: https://phabricator.services.mozilla.com/D124727
2021-09-08 00:10:22 +00:00
Mike Hommey
4e47a99c0d Bug 1729383 - Advertize MOZ_PARALLEL_BUILD=n rather than MOZ_MAKE_FLAGS=-jn in docs. r=firefox-build-system-reviewers,mhentges
Both work, but the former is preferred. Also remove MOZ_MAKE_FLAGS
in the mozconfig example for msan, because it's irrelevant.

Differential Revision: https://phabricator.services.mozilla.com/D124726
2021-09-08 00:10:21 +00:00
Robert Mader
6930916e71 Bug 1728891 - Some cleanups for WaylandVsyncSource, r=stransky
To make it easier to understand. No functional changes intended.

Differential Revision: https://phabricator.services.mozilla.com/D124571
2021-09-08 00:04:09 +00:00
Drew Willcoxon
dd477a0aff Bug 1729569 - Add a Nimbus variable for the Firefox Suggest scenario. r=nanj
This adds a `quickSuggestScenario` Nimbus variable.

We could use the `quickSuggestShouldShowOnboardingDialog` variable to
distinguish between offline and online on the client, since offline won't get
the onboarding but online will. However, using a separate variable would be
clearer and possibly less confusing for stakeholders, and it would also allow us
to have finer control over the onboarding prompt if we need it.

We'll need to distinguish between the two scenarios on the client for telemetry
pings, tweaks to the preferences UI, and possibly other things.

Differential Revision: https://phabricator.services.mozilla.com/D124844
2021-09-07 23:58:46 +00:00
Anny Gakhokidze
dc3f1b9721 Bug 1720958 - Fix DocumentLoadListener leak that occurs when browser.tabs.documentchannel.parent-controlled is enabled, r=nika
Without the pref enabled, DocumentLoadListener is destroyed when
DocumentChannelParent is destroyed. With the pref enabled, we create
DocumentLoadListener when we are trying to do a parent controlled navigation,
but it does not get destroyed anywhere. To do that, we can disconnect the
DLL listeners before we trigger redirection to the real channel and resume the
load.

Differential Revision: https://phabricator.services.mozilla.com/D122131
2021-09-07 23:32:20 +00:00
Hiroyuki Ikezoe
9e692bb775 Bug 1663509 - Skip test_restyles.html if the target machine's vsync rate is too slow to run the test. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D124584
2021-09-07 23:19:55 +00:00
Makoto Kato
750b27206e Bug 1729295 - Call super.actorCreated() to use eventDispatcher. r=geckoview-reviewers,agi
When tapping accessiblecaret and moving/releasing it, the follow error occurs.

```
GeckoViewContent[C]: handleEvent: mozcaretstatechanged
Web Content: [JavaScript Error: "TypeError: can't access property "sendRequest", this.eventDispatcher is undefined" {file: "resource:///actors/GeckoViewContentChild.jsm" line: 291}]
Web Content: handleEvent@resource:///actors/GeckoViewContentChild.jsm:291:11
```

I think that we miss super.actorCreated() call in actorCreate(). This might be
regression by bug 1661480.

Differential Revision: https://phabricator.services.mozilla.com/D124639
2021-09-07 23:06:31 +00:00
Tetsuharu Ohzeki
c55c4a55a6 Bug 1729476 - Remove unused CompositorBridgeChild::ChildProcessHasCompositorBridge(). r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D124819
2021-09-07 22:37:48 +00:00
Tetsuharu Ohzeki
0109338d54 Bug 1729476 - Remove unused CompositorBridgeChild::SendMakeSnapshot(). r=gfx-reviewers,ipc-reviewers,nika,nical
Differential Revision: https://phabricator.services.mozilla.com/D124818
2021-09-07 22:37:48 +00:00
Tetsuharu Ohzeki
6d48adb6f4 Bug 1729476 - Remove unused CompositorBridgeChild::SendNotifyChildCreated(). r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D124817
2021-09-07 22:37:47 +00:00
Tetsuharu Ohzeki
fdfaf254d0 Bug 1729476 - Remove unused CompositorBridgeChild::SendNotifyRegionInvalidated(). r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D124816
2021-09-07 22:37:47 +00:00
Tetsuharu Ohzeki
6a5eb993a9 Bug 1729476 - Remove unused CompositorBridgeChild::SendGetTileSize(). r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D124815
2021-09-07 22:37:47 +00:00
Tetsuharu Ohzeki
65ac86607f Bug 1729476 - Remove unused CompositorBridgeChild::WillEndTransaction(). r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D124814
2021-09-07 22:37:46 +00:00
Tetsuharu Ohzeki
8c09912b8c Bug 1729476 - Remove unused CompositorBridgeChild::NotifyBeginAsyncEndLayerTransaction(). r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D124813
2021-09-07 22:37:46 +00:00
Tetsuharu Ohzeki
69221cf5b7 Bug 1729476 - Remove unused CompositorBridgeChild::NotifyFinishedAsyncEndLayerTransaction(). r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D124812
2021-09-07 22:37:45 +00:00
Tetsuharu Ohzeki
a5c7ab55a9 Bug 1729476 - Remove unused CompositorBridgeChild::HandleMemoryPressure(). r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D124811
2021-09-07 22:37:45 +00:00
Tetsuharu Ohzeki
46174a8c26 Bug 1729476 - Remove unused CompositorBridgeChild::ClearTexturePool(). r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D124810
2021-09-07 22:37:44 +00:00
Tetsuharu Ohzeki
7202dea699 Bug 1729476 - Remove unused CompositorBridgeChild::GetTexturePool. r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D124809
2021-09-07 22:37:44 +00:00
Cosmin Sabou
dd5ec46df6 Bug 1724019 - Fix prettier eslint failure. a=eslint-fix DONTBUILD 2021-09-08 00:26:01 +03:00
Asumu Takikawa
101dc9eeb7 Bug 1727953 - Fix dead code flag for Wasm rethrow r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D124281
2021-09-07 21:06:24 +00:00
Ryan Hunt
c871f74315 Bug 1615988 - Fix memory reporting of wasm memory. r=sfink
This commit makes several tweaks to memory reporting for wasm memory.
  * Add a field for shared wasm memory and track it in SAB.
    - Before this commit, shared wasm memory wouldn't report its guard pages but should.
  * Track wasm guard pages in RuntimeSizes, not ClassInfo
    - We want wasm guard pages to show as a top-level memory report item, similar to vmem,
      and not under the owning array object. Displaying under the owning object bloats the
      tree of memory usage with large amounts of memory that's only reserved and not
      committed, which is confusing. Before this commit the class info reporter would
      try to make this happen, but this approach was broken and the simplest fix is to
      track this on RuntimeSizes and report the value from their.
  * Only add wasm memory if the buffer is attached. Detached buffers may still be live
    but no longer own the wasm heap and shouldn't report their old size.

Differential Revision: https://phabricator.services.mozilla.com/D124390
2021-09-07 21:03:48 +00:00
Sebastian Hengst
49f844414e Backed out changeset 13fa4cea337f (Bug 1724019) on request from emcminn because of change of plans. r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D124829

Depends on D124828
2021-09-07 20:41:56 +00:00
Sebastian Hengst
e50b631415 Backed out changeset ad063959d7b7 (Bug 1725977) on request by emcminn for change of plans. r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D124828
2021-09-07 19:32:35 +00:00
Joel Maher
68d16909de Bug 1728739 - Fix unicode error on when logging browsertime results on windows. r=ahal,perftest-reviewers,kimberlythegeek
Differential Revision: https://phabricator.services.mozilla.com/D124506
2021-09-07 20:48:37 +00:00