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

771219 Коммитов

Автор SHA1 Сообщение Дата
Cosmin Sabou 78019683ed Backed out 1 changesets (bug 1691954) for bc failures on browser_startup_content_subframe.js. CLOSED TREE
Backed out changeset 18366efe3ea2 (bug 1691954)
2021-09-29 20:23:15 +03:00
Cosmin Sabou 0d612db0fb Backed out 4 changesets (bug 1688452) for assertion and bc failures on browser_translation_bing.js.
Backed out changeset 1a720cffc019 (bug 1688452)
Backed out changeset 797a7e243d43 (bug 1688452)
Backed out changeset 00fd325069fa (bug 1688452)
Backed out changeset 23ef68478e93 (bug 1688452)
2021-09-29 20:13:33 +03:00
Daniel Holbert aeb4d9db55 Bug 1712123: Don't do refresh-driver "catch-up" ticks until after pageload. r=smaug
The "catch-up" ticks are a strategy to make our repaint cycle more repsonsive
to user interaction, e.g. getting typed characters onto the screen sooner.
During pageload, this strategy isn't as crucial and may in fact harm the
overall pageload performance.  So, this patch makes us hold off on these ticks
until after the page has finished loading.

Differential Revision: https://phabricator.services.mozilla.com/D126850
2021-09-29 15:43:41 +00:00
Harry Twyford cbf8835783 Bug 1732957 - Update monochromatic theme ids to color-variant-colorway@mozilla.org. r=mixedpuppy,amy
This patch allows D126401 to add a test theme with ID test-colorway@mozilla.org to test the Colorways section in about:addons.

Differential Revision: https://phabricator.services.mozilla.com/D126820
2021-09-29 15:43:22 +00:00
Julian Descottes 073fd208de Bug 1691954 - [marionette] Allow MarionetteEventsChild and dependencies in browser_startup_content.js r=Gijs
Depends on D126371

Now that the MarionetteEvents actors remain registered, MarionetteEventsChild.jsm and its Log.jsm dependencies both show up in the test browser_startup_content.js

Differential Revision: https://phabricator.services.mozilla.com/D126519
2021-09-29 15:39:05 +00:00
Julian Descottes 745c87d0ca Bug 1691954 - [marionette] Avoid MarionetteEvents JSErrors using shared process state r=webdriver-reviewers,whimboo
This patch no longer unregisters the MarionetteEvents actors. Instead when the session ends, a flag is set on sharedData so that MarionetteEventsChild actors stop sending events to the parent process

Differential Revision: https://phabricator.services.mozilla.com/D126371
2021-09-29 15:39:05 +00:00
Gijs Kruitbosch 637a0f2c3f Bug 1733111 - fix session restore infobar icon appearance in HCM, r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D126923
2021-09-29 15:28:32 +00:00
Christoph Kerschbaumer 6c4aba950d Bug 1733108: Update tests within devtools/client/styleeditor to work with https-first enabled r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126917
2021-09-29 15:27:50 +00:00
Christoph Kerschbaumer a4d82d30dc Bug 1733070: Update tests within devtools/client/responsive/test/ to work with https-first enabled r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126897
2021-09-29 15:27:29 +00:00
Mitchell Hentges 62cfc816d2 Bug 1732788: Resolve pip-tools "--no-index" warning r=ahal
See this `pip-tools` issue for details:
https://github.com/jazzband/pip-tools/issues/373

Differential Revision: https://phabricator.services.mozilla.com/D126733
2021-09-29 15:19:24 +00:00
Mitchell Hentges 4f9389c204 Bug 1732787: Clean up vendored "pystache" and "funcsigs" pkgs r=ahal
* `pystache` is unused.
* `funcsigs` is only needed for WPT - use the WPT version instead.
* `moz.build` has a bunch of obsolete/redundant references, clean
  them up.
* `mohawk` isn't used directly, but is rather depended-on via
  `taskcluster`. So, remove it from `requirements.in`.

Differential Revision: https://phabricator.services.mozilla.com/D126732
2021-09-29 15:19:23 +00:00
Mitchell Hentges 35d35bc9ff Bug 1732947: Venv is out-of-date if "virtualenv" package is changed r=ahal
The `virtualenv` package version defines what `pip`/`setuptools`/`wheel`
that is installed in our venvs. Since we depend on the behaviour of
these tools, we should consider our venvs out-of-date if they weren't
created with the current `virtualenv` version.

Differential Revision: https://phabricator.services.mozilla.com/D126818
2021-09-29 15:16:39 +00:00
Andrei Oprea be7e494d0c Bug 1731794 - Add search feature with experiment variable r=k88hudson,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D126249
2021-09-29 15:12:12 +00:00
Mitchell Hentges ab439e4045 Bug 1717051: Always populate Mach pths r=firefox-build-system-reviewers,glandium
The previous behaviour was to:
* Never add a `pthfile` to the Mach virtualenv, and
* Always add Mach's paths to the `sys.path` when Mach initializes

However, this meant that `pip` would needlessly install packages
that already exist in the vendored environment.

Tweak `pth` behaviour so that `pip` behaves more efficiently.

Differential Revision: https://phabricator.services.mozilla.com/D120402
2021-09-29 15:09:36 +00:00
Chris Martin a00e96e1d3 Bug 1718414 - Stop canvas from initializing D3D in locked-down content process when GPU process fails r=sotaro,bobowen
Before Win32k Lockdown, Canvas would ensure that it would get the fastest possible implementation by initializing
devices in content process before allocating persistent buffers for its backing.

However, with Win32k Lockdown it's no longer possible, as initializing Direct3D and Direct2D make Win32k calls that
crash the locked-down content process.

This issue is generally solved by Remote Canvas; however, Remote Canvas is disabled if the GPU process is disabled.
If that happens, the current behavior is to attempt to initialize hardware acceleration again, causing a crash when
Win32k Lockdown is in effect.

This patch changes the behavior so that the devices will not initialize if they are in a locked-down content process,
even if Remote Canvas is disabled. The effect is that Canvas will fall back to using Skia for everything.

Differential Revision: https://phabricator.services.mozilla.com/D126761
2021-09-29 15:00:19 +00:00
Nicolas Chevobbe 557777fb27 Bug 1732966 - [devtools] Fix using node picker on content element in MBT. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D126908
2021-09-29 14:45:35 +00:00
Nicolas Chevobbe 185e3c90b0 Bug 1733046 - [devtools] Hide Geometry highlighter on various user interaction. r=jdescottes.
The code was written to hide the geometry highlighter when:
- the nodepicker was selected
- another node was selected in the markup view
- a node was hovered in the markup view

but this wasn't working as intended, as the line setting
the first of the event listeners was throwing, and we
don't have tests for this.

This patch fixes the faulty line and adds a test to check
that the geometry highlighter does hide on those actions.
We take this opportunity to use an AbortController to handle
the removal of the event listeners added when starting the
geometry highlighter.

Differential Revision: https://phabricator.services.mozilla.com/D126885
2021-09-29 14:38:56 +00:00
Andreas Farre d3158bf08e Bug 1733114 - Revert Bug 1713960 for regressing Base Content JS. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126948
2021-09-29 14:32:52 +00:00
Deian Stefan 20476da693 Bug 1688452 - Part 4: Add Wasm sandbox support for RLBoxed libexpat r=tjr
Depends on D126369

Differential Revision: https://phabricator.services.mozilla.com/D106254
2021-09-29 14:31:45 +00:00
Deian Stefan ac3df5e3ad Bug 1688452 - Part 3: Eliminate redundant callback implementation in RLBoxed libexpat r=tjr
The default handler and character-data handler callbacks are identical
and some Windows compilers just reconciled them into a single function.
This, unfortunately, resulted in a RLBox runtime error: the same
callback was registered twice. This patch removes the duplicate handler
implementation and just sets the character-data handler callback as the
default handler.

Depends on D104658

Differential Revision: https://phabricator.services.mozilla.com/D126369
2021-09-29 14:31:45 +00:00
Deian Stefan 7d9f1d992f Bug 1688452 - Part 2: Retrofit nsExpatDriver to use RLBoxed libexpat r=tjr,peterv
Depends on D117102

Differential Revision: https://phabricator.services.mozilla.com/D104658
2021-09-29 14:31:44 +00:00
Deian Stefan 4bb477c01b Bug 1688452 - Part 1: Retrofit nsHtml5StreamParser to use RLBoxed libexpat r=tjr,peterv
Differential Revision: https://phabricator.services.mozilla.com/D117102
2021-09-29 14:31:44 +00:00
Tom Schuster 6f20efa2a0 Bug 1722576 - Fix clang-tidy build error
Differential Revision: https://phabricator.services.mozilla.com/D126921
2021-09-29 14:11:42 +00:00
criss 65e4d4e31e Backed out changeset 9b2e412995e6 (bug 1729871) for causing hybrid build bustages. CLOSED TREE 2021-09-29 17:21:36 +03:00
Chris H-C c66128028a Bug 1732983 - Update Telemetry mentored bug template to point to newer contributor docs locations r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D126834
2021-09-29 13:58:13 +00:00
Alexandre Lissy 9a7966a721 Bug 1732999 - Annotate intentional crash when testing buildid mismatch r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D126905
2021-09-29 13:47:00 +00:00
Frederik Braun a4dd947798 Bug 1716726 - reformat file r=ckerschb
Depends on D126899

Differential Revision: https://phabricator.services.mozilla.com/D126900
2021-09-29 13:29:43 +00:00
Frederik Braun c9588886af Bug 1716726 - avoid races and intermittent csp test failures, by loading frame only after listeners are set up r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D126899
2021-09-29 13:29:43 +00:00
Nicolas Silva 7291ad2515 Bug 1732109 - Move FrameId and FrameStamp out of render_backend.rs. r=gfx-reviewers,kvark
They are used all over the place, these kinds of types usually go in internal_types.rs

Differential Revision: https://phabricator.services.mozilla.com/D126788
2021-09-29 13:28:36 +00:00
Nicolas Silva dbb5b6af19 Bug 1732109 - Use a simpler cache entry struct for picture tiles. r=gfx-reviewers,gw
Differential Revision: https://phabricator.services.mozilla.com/D126688
2021-09-29 13:28:35 +00:00
Nicolas Silva 5009de5807 Bug 1732109 - Move picture tiles out of TextureCache. r=gfx-reviewers,gw
Differential Revision: https://phabricator.services.mozilla.com/D126687
2021-09-29 13:28:35 +00:00
Nicolas Silva 033509f893 Bug 1732109 - Request picture tiles explicitly and add PictureTextures::now. r=gfx-reviewers,gw
Last step before PictureTextures can be used independently.

Differential Revision: https://phabricator.services.mozilla.com/D126686
2021-09-29 13:28:35 +00:00
Nicolas Silva 00fc46d3af Bug 1732109 - Remove generic picture texture access via TextureCache::get_opt/get_opt_mut. r=gfx-reviewers,gw
Differential Revision: https://phabricator.services.mozilla.com/D126685
2021-09-29 13:28:34 +00:00
Nicolas Silva 974f5003de Bug 1732109 - Move more picture-specific code out of texture_cache.rs. r=gfx-reviewers,gw
Differential Revision: https://phabricator.services.mozilla.com/D126684
2021-09-29 13:28:34 +00:00
Nicolas Silva 55277c9886 Bug 1732109 - Move PictureTextures into its own file. r=gfx-reviewers,gw
Differential Revision: https://phabricator.services.mozilla.com/D126683
2021-09-29 13:28:33 +00:00
Nicolas Silva 0c7a78bc23 Bug 1732109 - Remove the slab atlas allocator. r=gfx-reviewers,gw
The shelf allocator is better in all scenarios, we don't need to keep that code around.

Differential Revision: https://phabricator.services.mozilla.com/D126682
2021-09-29 13:28:33 +00:00
Olli Pettay 0ca720d7a3 Bug 1725680, requested index should be used only by the nsSHistory (and related code in CanonicalBrowsingContext), r=peterv
Using requestedIndex on the child side is hard, because there are race conditions when a session history load is triggered
and at the same time a non-session history load commits a new active entry.

Differential Revision: https://phabricator.services.mozilla.com/D126619
2021-09-29 13:22:34 +00:00
Mitchell Hentges 6901d2f440 Bug 1723031: In CI, assert Mach pypi package deps using system Python r=ahal
There's an existing algorithm to check if a virtualenv's installed
packages are up-to-date with its requirements. This patch
extracts that logic so that, in cases where we can't automatically
download needed pip packages, we can at least assert that the ones
installed to the system Python are sufficient to meet our requirements.

The current only case in which this system-checking logic is applied
is when starting the Mach virtualenv and the `MOZ_AUTOMATION` or
`MACH_USE_SYSTEM_PYTHON` environment variable is set.

Differential Revision: https://phabricator.services.mozilla.com/D122890
2021-09-29 13:06:00 +00:00
Tom Schuster 5d023856bb Bug 1722576 - Rename PostMessageOptions to StructuredSerializeOptions. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126717
2021-09-29 12:48:17 +00:00
Tom Schuster 5cc3ab5f12 Bug 1722576 - Implement self.structuredClone(). r=smaug,sfink,baku
Differential Revision: https://phabricator.services.mozilla.com/D122339
2021-09-29 12:48:17 +00:00
Andi-Bogdan Postelnicu d4e7a13de1 Bug 1729871 - Add all components from 'js' to the hybrid build system. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D125047
2021-09-29 12:36:43 +00:00
Emilio Cobos Álvarez d10188f9b4 Bug 1731678 - Add some generic dark system colors for Windows/Android/standins. r=dholbert
Eventually we should support all of them, but for now they are only used
by native code (unless you enable the color-scheme pref) and these will
be enough.

Differential Revision: https://phabricator.services.mozilla.com/D126737
2021-09-29 10:20:56 +00:00
Emilio Cobos Álvarez b2c03de0cc Bug 1730351 - Fix reflow root handling in presence of inherited changes in FrameNeedsReflow. r=layout-reviewers,jfkthame
The issue here is that we don't clear the cached intrinsic size of the
flex item, but this reproduces without flex at all.

The main issue is that we choose whether to clear the intrinsic sizes
from a reflow root (the outer svg in this case) based on whether the
reflow changes size or position:

  https://searchfox.org/mozilla-central/rev/3fa5cc437a4937c621ea068ba5dc246f75831633/layout/base/RestyleManager.cpp#1224-1229

This is ~fine, except the nsChangeHint_ReflowChangesSizeOfPosition hint
can be "inherited" (and thus be cleared if already subsumed by a
parent):

  https://searchfox.org/mozilla-central/rev/3fa5cc437a4937c621ea068ba5dc246f75831633/layout/base/nsChangeHint.h#465-469

This is ~fine, as we'll already start the reflow further up the tree (so
we don't need to start go past the reflow root), but we still need to
clear the ancestor intrinsics. We still get to StyleChangeReflow with
the ClearAncestorIntrinsics hint. We could pass that information down,
but the information is really already in via the IntrinsicChange.

I think it's just not correct to stop clearing intrinsic sizes if the
target is a reflow root and we get a TreeChange/StyleChange, regardless
of whether it changes size/position. It should also be a few less
instructions, though not that it matters.

Depends on D126812

Differential Revision: https://phabricator.services.mozilla.com/D126813
2021-09-29 10:16:10 +00:00
Emilio Cobos Álvarez 380f23bfab Bug 1730351 - Don't use NS_IsHintSubset unnecessarily in some places. r=layout-reviewers,jfkthame
This should cause no behavior change, but is a bit cleaner when one of the
arguments to IsHintSubset is just one bit.

Differential Revision: https://phabricator.services.mozilla.com/D126812
2021-09-29 10:16:10 +00:00
Mike Hommey 35b45d8594 Bug 1733061 - Fix another fallout from bug 1696251. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D126896
2021-09-29 09:50:34 +00:00
Dsmith b91abefc3c Bug 1732383 Removing unused assignment in DoCommonPrint function from fx-scan-build list. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D126559
2021-09-29 09:46:14 +00:00
Niklas Goegge d9e823a6f5 Bug 1725173: Add sec-fetch tests for extension content scripts. r=ckerschb,robwu
Differential Revision: https://phabricator.services.mozilla.com/D122361
2021-09-29 09:42:49 +00:00
Olli Pettay 524e95c9e4 Bug 1732250, use the original URI from the old channel when updating session history entry, r=peterv,necko-reviewers,valentin
https://searchfox.org/mozilla-central/rev/1df999af9999ccb436512cfece57a68d94d36e08/netwerk/protocol/http/nsHttpChannel.cpp#2876
makes original uri handling in the channel rather magical. The value of it on the new channel is bogus during
AsyncOnChannelRedirect call, and nsIChannel.idl doesn't hint about that behavior.

browser_getNavigationHistory.js can work as a testcase once it is enabled for Fission.

Differential Revision: https://phabricator.services.mozilla.com/D126735
2021-09-29 09:35:59 +00:00
Christoph Kerschbaumer 4e6ec65a70 Bug 1732287: Update tests within devtools/client/netmonitor to work with https-first enabled r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126763
2021-09-29 09:29:08 +00:00
moz-wptsync-bot d697f8ca77 Bug 1732272 - [wpt-sync] Update web-platform-tests to f0aff7d1bdbe6bff4c059ecf88faae0a387044a3, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: f0aff7d1bdbe6bff4c059ecf88faae0a387044a3
wpt-type: landing
2021-09-29 09:24:22 +00:00