761081 Commits

Author SHA1 Message Date
Mitchell Hentges
6d154c1ed3 Bug 1713377: Change vendoring to use wheels where possible r=ahal,glandium
Vendoring wheels has three benefits:
* There's far less files, so Firefox checkouts will be smaller.
* It works around `zipp` not allowing `pip install`
  from extracted source `tar.gz` files. Now, we should
  be able to use the pip resolver against vendored
  packages, which will be needed for future
  mach virtualenv work.
* `./mach vendor python` takes far less time to execute.

Since we need the raw Python to be available to add to the `sys.path`,
we extract the wheels before putting them in tree.
Due to the structure of some wheels being less nested
than of a source `tar.gz`, `common_virtualenv_packages`
needed to be adjusted accordingly.

`install_pip_package()` had to be tweaked as well since you can't
`pip install` an extracted wheel. So, we "re-bundle" the wheel
before installing from a vendored package.

Replace python packages with wheels where possible

This contains the vendoring changes caused by the
last patch.

For reviewing, there's a couple things to note:
* A bunch of files are deleted, since there's generally
  less files in a wheel than in a source archive.
* There's a new `.dist-info` directory for each
  extracted wheel, so expect roughly 5 or
  6 new files for each wheel'd package.
* There should be no source code changes other than
  moves from package names changing from having
  `-` to having `_`.

Differential Revision: https://phabricator.services.mozilla.com/D116512
2021-06-16 15:53:16 +00:00
Alexandre Lissy
859e2bdc3d Bug 1716774 - Send correct telemetry for buildid mismatch false-positive r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D118009
2021-06-16 15:37:48 +00:00
Michael Cooper
97adc8ac97 Bug 1716032 - Don't change default branch prefs to have match user branch prefs in Normandy experiments r=nanj
When the default and user branch values of a preference match, the user brach
value is effectively erased, and we keep no evidence that the user made a
choice. This changes makes normandy avoid that situation, so that user
preferences remain intact.

Differential Revision: https://phabricator.services.mozilla.com/D117949
2021-06-16 15:36:13 +00:00
Jamie Nicol
d42517233e Bug 1716794 - Allow partial picture cache tile invalidation on Mali-400. r=jrmuizel
Currently we prevent partial picture cache tile invalidation on all
Mali devices to workaround a driver bug. (See bug 1663355 and bug
1691955.) This driver bug affects some Mali-G and Mali-T devices, but
currently we apply the workaround for any Mali GPU.

Mali-400 may or may not be affected by the same driver bug, but since
it uses software webrender we certainly do not need to apply this
workaround.

Allowing partial invalidation should allow for smaller texture uploads.

Differential Revision: https://phabricator.services.mozilla.com/D118017
2021-06-16 15:31:27 +00:00
Dorel Luca
b5d072edbd Backed out 2 changesets (bug 1716462) for Build bustages. CLOSED TREE
Backed out changeset da9c8170a934 (bug 1716462)
Backed out changeset 42abdfd99cb4 (bug 1716462)
2021-06-16 18:50:02 +03:00
Bernard Igiri
e08677cb3c Bug 1701365 - Set buttonpack to end in markup r=mconley
Removed js code that set buttonpack to "end" and modified markup to do that instead.

Differential Revision: https://phabricator.services.mozilla.com/D117935
2021-06-16 15:25:45 +00:00
Nicolas Chevobbe
7f748ac663 Bug 1714974 - [devtools] Fix BrowserToolbox console going blank when worker target is destroyed. r=ochameau.
Calls to targetFront.isTopLevel can happen after a given target is destroyed, and
in such case `getTrait` was throwing as the `client` property of the target is nullified.
To fix this, we're directly checking if the targetForm has a `isTopLevelTarget`,
and if not, we default to the property we set in `setTargetType`.

Another issue was caused by the `_url` property, used in the `url` getter,
being nullified when in TargetMixin#destroy, which was making the WorkerDescriptor#name
to throw.
We now check that the url isn't null before trying to use it.

Differential Revision: https://phabricator.services.mozilla.com/D117011
2021-06-16 15:20:56 +00:00
Francesco Lodolo (:flod)
2395c9bd16 Bug 1716551 - Improve Fluent linter behavior with single and double quotes, r=dminor
- Don't throw when a placeable is enclosed in double straight quotes
- Catch single quotes used as genitive on plural nouns

Differential Revision: https://phabricator.services.mozilla.com/D117898
2021-06-16 15:11:55 +00:00
Matthew Gaudet
5c92b47db4 Bug 1715256 - Make class static block smoke test nightly only r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D117359
2021-06-16 14:56:07 +00:00
Andrew McCreight
d2ce87269b Bug 1703334 - nsCOMPtr elem in DOMLocalization::ApplyTranslations(). r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D115504
2021-06-16 14:55:27 +00:00
Emilio Cobos Álvarez
8922b5b8aa Bug 1716462 - Add a bit more logging. r=stransky
And reuse an already-computed name rather than calling GetGtkTheme
again.

Depends on D117722

Differential Revision: https://phabricator.services.mozilla.com/D117723
2021-06-16 14:35:29 +00:00
Emilio Cobos Álvarez
cbe629b48c Bug 1716462 - Minor WidgetStyleCache cleanup. r=stransky
We always support these functions, so no need to use dlsym. The csd type
technically depends on the theme I think, so caching it globally is
wrong. Instead compute it once and pass it down to the two callers that
care about it.

Differential Revision: https://phabricator.services.mozilla.com/D117722
2021-06-16 14:35:28 +00:00
Mitchell Hentges
c335e37407 Bug 1690870: Remove "artifact mode" from bootstrap options on M1 Macs r=firefox-build-system-reviewers,andi
As pointed out by Harry, this will help in the short-term with
onboarding new developers who will be using M1 macs.

Note that this patch doesn't leverage the "instance" classes to define
whether they're artifact-mode compatible or not, and that's because:
* Most (all except one?) of the systems support artifact mode, therefore
* Since this is a temporary workaround, it's more deletable to have
  a top-level `if/else` than to add a `supports_artifact_mode` property
  to each Bootstrapper.

Differential Revision: https://phabricator.services.mozilla.com/D117946
2021-06-16 14:31:07 +00:00
Mike Kaply
cade41ef59 Bug 1695693 - Add support for Windows 10 SSO on Firefox. r=valentin,necko-reviewers,dveditz,johannh
Differential Revision: https://phabricator.services.mozilla.com/D114540
2021-06-16 14:24:43 +00:00
Steve Fink
3fabe8b853 Bug 1716610 - Prevent misinterpretation of GCHashMap + Rooted r=jonco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D117924
2021-06-16 14:24:11 +00:00
Dorel Luca
40bc5fd8ee Backed out changeset da918efb2d2e (bug 1709838) for Browser-chrome failures in toolkit/components/antitracking/test/browser/browser_contentBlockingAllowListPrincipal.js. CLOSED TREE 2021-06-16 17:55:10 +03:00
Jon Coppeard
c4030f60c2 Bug 1711415 - Ensure we always step the budget by some amount when executing parallel GC work r=sfink
SliceBugdet::step asserts that its argument is non-zero. Usually this is a
constant that is directly passed in, but in ParallelWorker it comes from a
function that returns some estimate of the work done. The problem is that in
this case we sweep an empty hash map the estimated work returned is zero.

The fix is just to ensure that we pass at least one as the steps.

Differential Revision: https://phabricator.services.mozilla.com/D118007
2021-06-16 14:16:49 +00:00
Emilio Cobos Álvarez
7c4a2436ac Bug 1713920 - Add some logging for native GTK colors. r=stransky
Let's see if that allows us to figure out what's going on here.

Differential Revision: https://phabricator.services.mozilla.com/D117893
2021-06-16 14:13:43 +00:00
Emilio Cobos Álvarez
3858e9d4e8 Bug 1716515 - Let default buttons on GTK have proper hover/active/focus states. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D117888
2021-06-16 14:12:42 +00:00
Emilio Cobos Álvarez
b71251fbb3 Bug 1716617 - Ignore shadow tree in search autocomplete attr inheritance. r=Standard8
After bug 1708735, this popup has a shadow root with a slot for its
contents, but this popup wants attr inheritance to work on the light
tree, which used to work due to the fallback here to `this`:

  https://searchfox.org/mozilla-central/rev/294f10eff7398d6b05beac6aa256d86ac3cb7113/toolkit/content/customElements.js#431

So override getElementForAttrInheritance to ignore the shadow tree in
order to preserve the behavior.

Differential Revision: https://phabricator.services.mozilla.com/D117982
2021-06-16 14:06:29 +00:00
Kashav Madan
cb6768b9ef Bug 1716444 - Don't do final tab state flush for replaced contexts, r=farre,annyG
If we're destroying the frame loader of a replaced browsing context we'll end up
firing browser-shutdown-tabstate-updated for a tab that wasn't actually closed.

This results in us cleaning up Session Store state earlier than expected, which
means we drop future updates to SessionStoreInternal._closedTabs.

Fixes browser_sessionHistory.js, browser_async_remove_tab.js, and possibly
browser_491168.js for SHIP+BFCache.

Differential Revision: https://phabricator.services.mozilla.com/D117944
2021-06-16 14:05:53 +00:00
Iulian Moraru
27bb808f36 Backed out changeset a713faa51ebb (bug 1706871) for causing bc failures on browser_test_mixed_content_download.js. CLOSED TREE 2021-06-16 16:25:09 +03:00
Sebastian Streich
5982f7b637 Bug 1706871 - Fix HandleInternally + Insecure Downloads r=mak
Differential Revision: https://phabricator.services.mozilla.com/D117412
2021-06-16 12:39:09 +00:00
Joel Maher
be58afdb5e Bug 1715659 - Reduce perftests run on !-qr to be essential. r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D117465
2021-06-16 12:21:58 +00:00
Masayuki Nakano
bccd582eaf Bug 1716068 - Don't start autoscroll on editable content or document whose designMode is on r=smaug
When middle mouse paste is enabled and middle click occurs in an editable
content or it's in a document whose `designMode` is `on`, we shouldn't start
the autoscrolling because the click must be intended for pasting clipboard
content or primary selection to the position.

Differential Revision: https://phabricator.services.mozilla.com/D117987
2021-06-16 12:20:17 +00:00
James Teh
1f9a808684 Bug 1713680: Correctly handle the case where the BrowserBridgeParent for an OOP iframe changes while addition of its DocAccessibleParent is still pending. r=eeejay
An OuterDocAccessible can be recreated, causing the embedder accessible for a BrowserBridgeParent (OOP iframe) to change.
However, changing the src of an iframe can also cause a new BrowserBridgeParent to be created.
Previously, if addition of the child document was still pending when this occurred (because the OuterDocAccessible hadn't been sent to the parent yet), this pending addition could remain, causing problems if the id was reused later.

To fix this (and to hopefully make this more robust given the continued problems we're seeing in the wild with this area of the code), I've completely refactored the way we handle these pending child doc additions.
Rather than tracking the pending additions by their accessible id and child doc, we track them by their BrowserBridgeParent.
This way, we're closest to a single source of truth.
We also remove a pending addition when an associated BrowserBridgeParent is destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D117889
2021-06-16 11:50:09 +00:00
Nicolas Chevobbe
22f9f9aec0 Bug 1707884 - [devtools] Fix grid inspector with Fission cases. r=ochameau.
This patch makes the inspector use the new reflow resource instead of directly
handling a reflow front. This allows the grid inspector to update the list of
grids to include remote documents.
The grid inspector was also keeping references of layout fronts which was causing
issues with target switching.
A new test is added to ensure these different cases are now working properly.

Differential Revision: https://phabricator.services.mozilla.com/D117900
2021-06-16 11:43:19 +00:00
Nicolas Chevobbe
a2652bf4e9 Bug 1716284 - [devtools] Add a reflow resource. r=ochameau.
This is meant to replace usage of the ReflowActor.

Differential Revision: https://phabricator.services.mozilla.com/D117899
2021-06-16 11:43:19 +00:00
Dão Gottwald
bf9d68cfb7 Bug 1716731 - Update Yandex favicons and tippytop icons. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D117988
2021-06-16 11:32:48 +00:00
Kagami Sascha Rosylight
da1fd20988 Bug 1677253 - Part 3: Update test r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D101247
2021-06-16 11:13:15 +00:00
Kagami Sascha Rosylight
bbba56f5a1 Bug 1677253 - Part 2: Detect direction change in SelectionChangeEventDispatcher r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D101246
2021-06-16 11:13:15 +00:00
Kagami Sascha Rosylight
d6a44c5938 Bug 1677253 - Part 1: Fire select event from SelectionChangeEventDispatcher r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D101245
2021-06-16 11:13:14 +00:00
Masayuki Nakano
5a85202b76 Bug 1716299 - Fix the flag name r=m_kato
`nsIDocumentEncoder.OutputRaw` was misspelled as `nsIDocumentEncoder.OutRaw`.

Then, I investigate the expected result more.  Then, I see that when only this
flag is set, any markups should be ignored except `<br>`.  Therefore, I modified
the 2 test results which check `<p>`, `<div>` and `<br>` elements.

Differential Revision: https://phabricator.services.mozilla.com/D117966
2021-06-16 10:47:27 +00:00
Olli Pettay
e74620fbda Bug 1688712, when replacing a LoadingSessionHistoryInfo, initialize member variables using values from the old object, r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D117362
2021-06-16 10:31:56 +00:00
Emilio Cobos Álvarez
a22ca7007a Bug 1716535 - Remove nodrop dependency. r=glandium
ManuallyDrop is just fine.

Differential Revision: https://phabricator.services.mozilla.com/D117887
2021-06-16 09:48:14 +00:00
Andi-Bogdan Postelnicu
680ed2d221 Bug 1716735 - move linux64-bp-clang-trunk from m-r to m-b in order to make it easier for uplift patches when build issues arise. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D117989
2021-06-16 09:37:48 +00:00
Landry Breuil
c68790f2b9 Bug 1713745 - push all the knobs to enable RDD on OpenBSD r=gcp
Depends on D116635

Differential Revision: https://phabricator.services.mozilla.com/D116636
2021-06-16 09:26:12 +00:00
Landry Breuil
1eab017fb6 Bug 1713745 - Sandbox the RDD process on OpenBSD r=gcp
As it's done on windows, preload libmozavcodec.so and libmozavutil.so
before sandboxing, this way this allows for a tighter sandboxing
(no filesystem access but /tmp for shm files, no prot_exec pledge..)

Depends on D116634

Differential Revision: https://phabricator.services.mozilla.com/D116635
2021-06-16 09:26:11 +00:00
Landry Breuil
77557b9728 Bug 1713745 - Look for unveil/pledge config files for RDD process sandboxing on OpenBSD r=gcp
Depends on D116633

Differential Revision: https://phabricator.services.mozilla.com/D116634
2021-06-16 09:26:11 +00:00
Christoph Kerschbaumer
23f169108b Bug 1709838: Enable HTTPS-First Mode in PBM Mode in Nightly r=arthuredelstein
Differential Revision: https://phabricator.services.mozilla.com/D114500
2021-06-16 08:47:00 +00:00
André Bargull
8479f56ce0 Bug 1268139: Add a regression test for legacy and sign locales with Unicode extensions. r=tcampbell
The update to use the new UTS 35 locale canonicalisation algorithm (bug 1686052)
fixed this (spec) bug, so we just need to add the regression test and no further
code changes are necessary.

Differential Revision: https://phabricator.services.mozilla.com/D116986
2021-06-16 08:42:53 +00:00
Nicolas Chevobbe
66fe1f7435 Bug 1704459 - [devtools] Clear rule view userProperties on DOCUMENT_EVENT resource. r=ochameau.
We're using the will-navigate element as it fires very early
and we want to get rid of any data stored for the document
we're navigating away from.

Differential Revision: https://phabricator.services.mozilla.com/D117648
2021-06-16 08:37:28 +00:00
Emilio Cobos Álvarez
21a95275cd Bug 1716135 - Move a fuzzy annotation to the right place.
Differential Revision: https://phabricator.services.mozilla.com/D117986
2021-06-16 08:21:19 +00:00
Marian-Vasile Laza
ff74a95352 Backed out 2 changesets (bug 1707884, bug 1716284) for causing xpshell failures on test_layout-reflows-observer.js
CLOSED TREE

Backed out changeset 58c3344a4f19 (bug 1707884)
Backed out changeset 22adda3b4bb1 (bug 1716284)
2021-06-16 11:59:28 +03:00
Kershaw Chang
60dee51c3c Bug 1713796 - P3: Move the code related to pending queue out of nsHostResolver, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D117324
2021-06-16 08:14:11 +00:00
Kershaw Chang
decd8f6dca Bug 1713796 - P2: Take some code from nsHostResolver::ResolveHost and put them to other functions, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D117323
2021-06-16 08:14:10 +00:00
Kershaw Chang
0c9e5842a2 Bug 1713796 - P1: Move nsHostRecord to another file, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D117322
2021-06-16 08:14:10 +00:00
Jon Coppeard
b45ba442df Bug 1715562 - Turn on use of external thread pool for JS helper tasks r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D117521
2021-06-16 08:13:40 +00:00
Glenn Watson
30f3df11fd Bug 1716695 - Add epsilon test for ScaleOffset keys in spatial node comparer r=gfx-reviewers,nical
The values in ScaleOffset keys for the spatial node comparer can
often have very small differences that are causing invalidations but
are not going to affect the rendered content in any noticeable way.

This is _probably_ mostly due to inaccuracies in the way we calculate
the results in get_relative_transform. Instead of using the fast
form parent.inverse().accumulate(child), we could instead traverse
the tree from the parent, accumulating the local transforms. This
would be slightly less efficient but could probably be cached.

There may also be other sources of floating point inaccuracy that
is introduced in the calculations, so for now we will ignore any changes
which have a scale/translation change of < 0.001.

Differential Revision: https://phabricator.services.mozilla.com/D117968
2021-06-16 08:11:27 +00:00
Valentin Gosu
ce78c5baeb Bug 1714307 - Run modernize-use-default-member-init --fix check on netwerk/protocol/http/ r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D117503
2021-06-16 08:10:12 +00:00