Commit Graph

782119 Commits

Author SHA1 Message Date
William Lachance
af8f04a00d Bug 1746941 - Add tags to all Firefox-on-Glean metrics r=janerik
Based on our experience with Firefox for Android, annotating Glean metrics
with issue tracker component information can provide valuable context to
anyone searching for metrics.

This adds a new set of tags corresponding to the components in the
tree, annotates the existing Glean metrics. Finally, it also adds a new
mach command called `update-glean-tags` to update the tags files based
on build metadata.

Differential Revision: https://phabricator.services.mozilla.com/D134332
2022-01-14 18:11:08 +00:00
Niklas Baumgardner
60637708f9 Bug 1741736 - Add overlay to Screenshots component implementation. r=sfoster,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D132832
2022-01-14 18:06:11 +00:00
Sebastian Hengst
13d78e1e85 Bug 1750170 - map third_party/intgemm to Bugzilla's "Core :: Javascript: WebAssembly" component. r=yury DONTBUILD
intgemm got imported into the repository in bug 1722102.

Differential Revision: https://phabricator.services.mozilla.com/D136006
2022-01-14 17:31:20 +00:00
Lee Salzman
f581a9af28 Bug 1745556 - Add support for stroked paths to path cache. r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D135902
2022-01-14 17:30:22 +00:00
Lee Salzman
306b7d9a6b Bug 1745556 - Cache paths to textures to avoid falling back to Skia. r=gfx-reviewers,aosmond
This generalizes the CacheEntry infrastructure to implement path caching.
This allows us to cache recently drawn paths to a texture which can be then
drawn without falling back to Skia.

Paths using simple solid color patterns will be drawn as alpha masks that
can then have the color applied in the shader. For now, other pattern types
have the pattern baked into the texture to avoid having to complicate the
shader setup for now. In the future, other pattern types could be supported
with new shaders to allow those to be cached as alpha masks as well.

In the service of this, comparison and cloning operators were added to the
Pattern classes to make remembering and matching against them easier for
cache entries.

Differential Revision: https://phabricator.services.mozilla.com/D135261
2022-01-14 17:30:21 +00:00
Lee Salzman
87c39a41e6 Bug 1745556 - Support layering of Skia and WebGL contexts in accelerated canvas. r=gfx-reviewers,aosmond
Reading back from the WebGL context to the Skia context if we need to fall back
software rasterization can be extremely expensive. In general, it is better to
try to avoid this by rasterizing primitives in software and then uploading them
to a texture.

This generalizes that idea so that when using the default source-over blend
mode, the Skia context can function as a layer that accumulates recently
drawn primitives and blends them via source-over to the WebGL context when
a flush is necessary.

Differential Revision: https://phabricator.services.mozilla.com/D135260
2022-01-14 17:30:21 +00:00
Lee Salzman
de9806ceed Bug 1745556 - Support drawing simple stroked geometry. r=jrmuizel
This just tries to add in support for drawing certain stroked rects by reusing
existing shaders and geometry. This solves some low-hanging fruit with certain
test-cases while more general stroked geometry can be added at a later time.

Differential Revision: https://phabricator.services.mozilla.com/D135259
2022-01-14 17:30:20 +00:00
Sandor Molnar
b2d1e0cb30 Backed out changeset 12ab8e6c1362 (bug 1642218) for causing browser-chrome failures in browser_tabMuteAffectsPiP. CLOSED TREE 2022-01-14 19:20:55 +02:00
Alexandre Poirot
65cecb5a83 Bug 1749769 - [devtools] Lazy load target legacy listeners. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D135832
2022-01-14 17:03:35 +00:00
Alexandre Poirot
3c7dc514f2 Bug 1749769 - [devtools] Lazy load all resource legacy listeners. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D135831
2022-01-14 17:03:35 +00:00
Alexandre Poirot
719c84fb16 Bug 1749769 - [devtools] Lazy load all resource transformers. r=nchevobbe
Doing this helps load resource-command module from jest tests
which were throwing when loading the transformers.
And it probably is a small performance improvement.

Differential Revision: https://phabricator.services.mozilla.com/D135719
2022-01-14 17:03:34 +00:00
Sandor Molnar
c5d5f045aa Backed out changeset c0de94959204 (bug 1746941) for causing pythong unit test failures. CLOSED TREE 2022-01-14 18:59:04 +02:00
Rashelle Hopkins
ca77ba9aa2 Bug 1642218 - Make PiP reflect tab mute r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D134891
2022-01-14 16:43:45 +00:00
William Lachance
cf406dbbc9 Bug 1746941 - Add tags to all Firefox-on-Glean metrics r=janerik
Based on our experience with Firefox for Android, annotating Glean metrics
with issue tracker component information can provide valuable context to
anyone searching for metrics.

This adds a new set of tags corresponding to the components in the
tree, annotates the existing Glean metrics. Finally, it also adds a new
mach command called `update-glean-tags` to update the tags files based
on build metadata.

Differential Revision: https://phabricator.services.mozilla.com/D134332
2022-01-14 16:43:08 +00:00
Joel Maher
40c6fb9315 Bug 1750138 - turn on mochitest plain fission for all platforms and variants. r=releng-reviewers,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D135967
2022-01-14 16:35:11 +00:00
Jamie Nicol
012c682e1a Bug 1742569 - Create RemoteSurfaceAllocator in either parent or GPU process. r=agi,gfx-reviewers,aosmond
On Android we use SurfaceTextures and Surfaces to render video and
webgl. These are allocated by content processes using the
SurfaceAllocator, which connects to a SurfaceAllocatorService running
in the parent process. The content process renders in to the
Surface (by attaching it to a media codec, or creating a GL context
with it for webgl), and the compositor renders the output
SurfaceTexture in the parent process.

With the GPU process this poses a difficulty, as we need to allocate
SurfaceTextures in either the parent process or GPU process, depending
on whether the GPU process is enabled. Additionally, we don't want to
run extra android Services in child processes such as the GPU process,
as process management is tricky and we want to contain it to a single
place.

This patch makes it so that SurfaceAllocatorService is not really an
android Service any more, just an singleton object which implements
the ISurfaceAllocator interface. It is renamed to
RemoteSurfaceAllocator to reflect that. A new method
getProcessManager() is added to the IProcessManager interface, which
child processes can use to fetch the surface allocator. It returns
either the parent process instance, or fetches the instance from the
GPU process using IChildProcess.getSurfaceAllocator().

Differential Revision: https://phabricator.services.mozilla.com/D133107
2022-01-14 16:20:59 +00:00
Sebastian Hengst
47bd824904 Bug 1749994 - set MediaRecorder-peerconnection-no-sink.https.html again as passing on Android outside Nightly. DONTBUILD
`not release_or_beta` annotation got dropped by update in bug 1749603,
`nightly_build` should be used instead.

Differential Revision: https://phabricator.services.mozilla.com/D136013
2022-01-14 16:00:24 +00:00
Andrew McCreight
5d780065e8 Bug 1748364 - Make browser_navigation.js work with parent controlled doc channel. r=smaug
This test was hanging while waiting for the navigation to finish, when
browser.tabs.documentchannel.parent-controlled is set to true. The browser
navigated back just fine, but somehow the load event was not firing.

The primary change here is to use BrowserTestUtils.waitForLocationChange()
instead of BrowserTestUtils.browserLoaded() to wait for the navigation back
to finish. This matches what is done in the goBack function in
docshell/test/browser/head.js.

Also, I fixed the quirks warning for file_navigation.html.

Differential Revision: https://phabricator.services.mozilla.com/D135763
2022-01-14 15:54:43 +00:00
Sandor Molnar
4d0c0a33eb Backed out changeset a2d8eae8d006 (bug 1749522) for causing reftest failures in tests/reftest/bug1749522-1. CLOSED TREE 2022-01-14 17:50:39 +02:00
Emily McMinn
87dd4917ca Bug 1748982 - Fix icon color in HCM for More From Mozilla r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135937
2022-01-14 15:26:15 +00:00
Sandor Molnar
eb2bc8daf7 Backed out changeset fb53fb5009a4 (bug 1741736) for causing browser-chrome failures in browser_parsable_css. CLOSED TREE 2022-01-14 17:32:52 +02:00
Jesse Schwartzentruber
0e8758dd67 Bug 1708789 - Package tests for macos fuzzing builds. r=taskgraph-reviewers,glandium,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D135877
2022-01-14 14:48:23 +00:00
Jesse Schwartzentruber
7178259892 Bug 1708787 - Package UBSan runtime with MacOS builds. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D135635
2022-01-14 14:47:15 +00:00
Niklas Baumgardner
bb01085481 Bug 1741736 - Add overlay to Screenshots component implementation. r=sfoster,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D132832
2022-01-14 14:36:49 +00:00
Joel Maher
a207ad062a Bug 1750137 - wpt adjustments for fission + variants everywhere. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D135966
2022-01-14 14:31:24 +00:00
Geoff Brown
d04d7b4b83 Bug 1746747 - Set symbols_path in telemetry tests; r=releng-reviewers,jmaher
Pass the symbols_path from mozharness to the telemetry test harness,
to enable improved crash reports.

Differential Revision: https://phabricator.services.mozilla.com/D135963
2022-01-14 14:21:23 +00:00
Ben Hearsum
7906b942c1 WIP: Bug 1737177: fix about:support display of S mode r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D135742
2022-01-14 14:19:50 +00:00
Henri Sivonen
d20ee45260 Bug 1749522 - When plain text encoding speculation fails, restart the plaintext mode of the tokenizer. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D135830
2022-01-14 13:36:24 +00:00
Julian Seward
e6144ebd9f Bug 1750046 - Add comprehensive testing of the wasm i32/i64 compare-select idiom. r=lth.
Bug 1748700 shows a regression introduced by bug 1716580, which incorrectly
optimised some wasm compare-select cases.  The underlying problem was
inadequate testing in the latter bug.

This bug adds comprehensive testing of compare-select for the following
cases:
```
  compare     in  i32 i64
  select      in  i32 i64
  compare-op  in  eq ne lt_s lt_u gt_s gt_u le_s le_u ge_s ge_u
```

It is verified as able to detect the regression introduced by bug 1716580.

Differential Revision: https://phabricator.services.mozilla.com/D135919
2022-01-14 13:18:32 +00:00
Cristian Tuns
a5dcd0508a Backed out changeset 70e003e2b5e4 (bug 1744953) for causing hybrid bustages on NimbusFeatures.cpp CLOSED TREE 2022-01-14 08:46:19 -05:00
Norisz Fay
9f6e76f77a Merge mozilla-central to autoland on a CLOSED TREE 2022-01-14 15:32:07 +02:00
Cristian Tuns
ec399ab1d8 Bug 1733497 Fix lint failure r=fix CLOSED TREE 2022-01-14 08:25:20 -05:00
Norisz Fay
4475b51bcb Backed out changeset d4a6f5cb9b3f (bug 1747320) for breaking connectivity with many https sites (bug 1750188) a=backout 2022-01-14 15:15:26 +02:00
Cristian Tuns
cb6d193f17 Backed out 2 changesets (bug 1745650) for causing mochitest failures on browser_slow_download.js CLOSED TREE
Backed out changeset 98712a0ace1e (bug 1745650)
Backed out changeset efb69ab57dc9 (bug 1745650)
2022-01-14 08:02:45 -05:00
Mike Kaply
eca2e1798c Bug 1733497 - Use a different preference about:config tests. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135960
2022-01-14 12:36:40 +00:00
Alexandre Poirot
be162a1fe8 Bug 1569859 - [devtools] Automagically move the toolbox between the original tab we debug and its popups. r=nchevobbe
This is also behind "devtools.popups.debug", to be set to true manually.

This special mode break the old fundamental principal where a given toolbox
is bound to one unique given tab. Now one toolbox starts being shared between
many tabs.

When we select the original tab we debug, or any of its popups opened in distinct tabs,
we will move the toolbox between each of these tabs.
We will have one toolbox instance, one toolbox iframe, which will be moved
around each tab's host. This is somewhat similar to host switching within the same tab.
This is all based on the same trick where we swap the toolbox iframe to another location.

Differential Revision: https://phabricator.services.mozilla.com/D131802
2022-01-14 12:02:25 +00:00
Alexandre Poirot
e515c00f2a Bug 1569859 - [devtools] Fix SourceActor's url having stack trace in it. r=nchevobbe
Debugger.Source.url attribute may be of the form:
   "http://example.com/foo line 10 > inlineScript"
because of the following function `js::FormatIntroducedFilename`:
https://searchfox.org/mozilla-central/rev/253ae246f642fe9619597f44de3b087f94e45a2d/js/src/vm/JSScript.cpp#1816-1846
This isn't so easy to reproduce, but in next changeset, browser_dbg-breakpoints-popup.js's testPausedInTwoPopups covers this

Differential Revision: https://phabricator.services.mozilla.com/D135145
2022-01-14 12:02:25 +00:00
Alexandre Poirot
b42e2fdedc Bug 1569859 - [devtools] Always return sync content when using SourcesManager.urlContents with partial=true. r=nchevobbe
With popup debugging (next patches), we trigger a race condition in this code
where `SourcesManager.urlContents` is called *after* `devtools-html-content` is fired.
i.e. after the HTML document is parsed.
This lead to return an async promise instead of an immediate value.
This confuses `SourceActor._getStartLineColumnDisplacement` which no longer apply breakpoints right away.
We miss early breakpoint support for popups.

This isn't easy to reproduce beyond popup debugging,
in next changeset, browser_dbg-breakpoints-popup.js's testPausedByBreakpoint covers this.

Differential Revision: https://phabricator.services.mozilla.com/D135144
2022-01-14 12:02:25 +00:00
Alexandre Poirot
8f7f623182 Bug 1569859 - [devtools] Spawn WindowGlobal targets for popup opened by the currently debugged tab r=nchevobbe,devtools-backward-compat-reviewers
For now, we only do that when "devtools.popups.debug" is manually set to true.

This is introducing some complexity in the way we filter out the WindowGlobal
we should consider or not. Before this patch it was quite straightforward.
We accepted all WindowGlobal's matching the tab's `browserId`.
Now we also accept the WindowGlobal whose `opener`'s `browserId` matches.

With this patch only, popups start appearing in the iframe dropdown.
You still have to manually switch to the popup via the dropdown to debug it in the inspector or console.
In the debugger, you will already start seeing the popup source and break on it.

Differential Revision: https://phabricator.services.mozilla.com/D133350
2022-01-14 12:02:24 +00:00
lyavor
f6cc710a17 Bug 1745650 - Test case: https - only/ first completes slow download from upgraded site.r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D134016
2022-01-14 11:53:20 +00:00
lyavor
68ea9d8493 Bug 1745650 - If a download upgrades to https via httpsFirst-/httpsOnly - mode it fails. r=ckerschb,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D133882
2022-01-14 11:53:20 +00:00
Nicolas Chevobbe
f1670e6b04 Bug 1737972 - [devtools] Remove usage of lodash fromPairs/toPairs from debugger. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D135709
2022-01-14 11:22:16 +00:00
Nicolas Chevobbe
c70fae1218 Bug 1737985 - [devtools] Remove lodash sortBy usage. r=bomsy.
This patch replaces sortBy calls by good old Array#sort.

Differential Revision: https://phabricator.services.mozilla.com/D135601
2022-01-14 11:22:16 +00:00
Andrei Oprea
e860a5faed Bug 1744953 - Add support for rollouts in the Nimbus platform API r=barret
Differential Revision: https://phabricator.services.mozilla.com/D135495
2022-01-14 10:52:10 +00:00
Alex Ionescu
1016ddbf08 Bug 1737639 - Fix running individual tests with --activeTests r=jmaher,perftest-reviewers,afinder
Differential Revision: https://phabricator.services.mozilla.com/D135829
2022-01-14 10:44:31 +00:00
Sebastian Hengst
3befcc03e3 Bug 1749706 - enable reporting API in block-local-documents-inheriting-none.https.html. r=ckerschb DONTBUILD
Test got added in bug 1747990 and modified twice. It depends on the reporting
API which is restricted to Nightly by default. See bug 1631237 for further
details.

Differential Revision: https://phabricator.services.mozilla.com/D135703
2022-01-14 10:35:36 +00:00
Nicolas Chevobbe
647c857c5f Bug 1749550 - [devtools] Add distinct style to event badge in markup view when an event listener is disabled. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D135680
2022-01-14 10:21:14 +00:00
Claudia
f6d60d9cd8 Bug 1745383 - [devtools] Clean up the selected request reducer and adds a new selector to get clicked request r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D135241
2022-01-14 10:04:56 +00:00
Timothy Nikkel
9e235485ec Bug 1749286. Remove redundant calls marking remote browsers as hidden. r=miko
Remote browsers are fully hidden by default. The only place we mark them as visible is in nsDisplayRemote::CreateWebRenderCommands

https://searchfox.org/mozilla-central/rev/b3933df6e119bd6caf5d9e5868670348ec26dee3/layout/generic/nsSubDocumentFrame.cpp#1363

and we create a WebRenderUserData item there that marks the remote browser hidden in its destructor

https://searchfox.org/mozilla-central/rev/b3933df6e119bd6caf5d9e5868670348ec26dee3/gfx/layers/wr/WebRenderUserData.cpp#426

So that will mark it hidden when it's no longer visible. And in fact we destroy the WebRenderUserData table for the frame at both call sites that we are removing in this patch. So there shouldn't be any change with this patch.


I think the way this redundancy came about was because the code was first added for the layers backend in

https://hg.mozilla.org/integration/mozilla-inbound/rev/b81cf35a573e

and that of course doesn't user WebRenderUserdata so it needed to mark remote browsers hidden in its own way.

And then for webrender in

https://hg.mozilla.org/integration/mozilla-inbound/rev/ac0ad5d8e9a5

And then when FrameLayerBuilder was removed they got put together directly

https://hg.mozilla.org/mozilla-central/rev/a95f6a0cd9eb


The reason this is important is for bug 1737503. In that bug we destroy and recreate a remote iframe to handle a style change. If we mark a remote browser as hidden we will draw it as blank for one frame. So instead we want to delay this until the end of the next frame so we don't do that.

Differential Revision: https://phabricator.services.mozilla.com/D135575
2022-01-14 08:47:52 +00:00
Makoto Kato
df7f7503f4 Bug 1748981 - Use delegateDuringNextWait when returning GeckoResult. r=calu
When looking test failure, I found that `onOrientationLock` always returned
null in geckoview-junit since default method is called.

We should use use `delegateDuringNextWait` instead of `waitUntilCalled`.

Differential Revision: https://phabricator.services.mozilla.com/D135574
2022-01-14 08:33:14 +00:00