Commit graph

815697 commits

Author SHA1 Message Date
Mark Banner
69a9e3e717 Bug 1792341 - Migrate most of the rest of toolkit/modules/ to be system ES modules. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D158451
2022-10-18 11:21:25 +00:00
Dragana Damjanovic
7efc67a52a Bug 1795829 - Document HTTP/3 integration r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D159573
2022-10-18 10:18:01 +00:00
stransky
f02086d01e Bug 1795822 [Wayland] Use correct popup for move-to-rect check r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D159570
2022-10-18 09:45:11 +00:00
Paul Adenot
432a8d9d92 Bug 1533069 - Remove Geckoisms from ported test, move towards WPT style. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D159047
2022-10-18 09:12:23 +00:00
Paul Adenot
af8ba8e742 Bug 1533069 - AudioContext suspend/close/resume tests ported to Web Platform Tests - r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D148524
2022-10-18 09:12:22 +00:00
Jonathan Kew
92a15b0d02 Bug 1793113 - Apply overflow:clip to meter and progress elements, for better rendering when rounded corners are used. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D159507
2022-10-18 09:06:18 +00:00
Kershaw Chang
416ce12806 Bug 1789808 - Fix buffer overflow, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D158654
2022-10-18 08:18:20 +00:00
Jan de Mooij
253c86b5e0 Bug 1782495 - Replace watchtower testing callback with a log-based mechanism. r=iain
The ability to run arbitrary JS can cause various problems. This replaces the callback
with a different mechanism to avoid this.

Differential Revision: https://phabricator.services.mozilla.com/D159513
2022-10-18 08:17:43 +00:00
William Durand
10083d82bf Bug 1793925 - Warn about complex versioning formats used in manifest. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D158834
2022-10-18 08:06:08 +00:00
Mark Banner
4a1fc67855 Bug 1445134 - Load policy engines from enterprise policies at search service startup. r=mkaply,mcheang
Rather than having the enterprise policy push engine information to the search service, this pulls it from the policies whilst initialisation is in progress. This will ensure the search service always has the correct information for policy engines even if the search settings file is modified.

Differential Revision: https://phabricator.services.mozilla.com/D156538
2022-10-18 07:21:47 +00:00
Mark Banner
060cefd295 Bug 1445134 - Remove now unnecessary tests for WebExtension legacy migration of search engines. r=mcheang
These were originally added as part of https://hg.mozilla.org/mozilla-central/rev/8ccb7b933d135be3a5e6afd1082a78742ea608fa
However, the explicit checks for the special search engines were removed in
https://hg.mozilla.org/mozilla-central/rev/dc132dc5bf40eec42b23ad796dfcca2abef9e721
without removing the tests.

Differential Revision: https://phabricator.services.mozilla.com/D159082
2022-10-18 07:21:46 +00:00
Mark Banner
3a86c6fa41 Bug 1445134 - Migrate docshell xpcshell-tests away from using enterprise policies. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D159056
2022-10-18 07:21:46 +00:00
Mark Banner
80e16caaee Bug 1445134 - Use the enterprise policy code to set up search test policy code. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D159033
2022-10-18 07:21:45 +00:00
Mark Banner
3498aa8c9a Bug 1445134 - Move most of browser_policy_search_engine.js to an xpcshell-test as it doesn't need to be run as mochitest. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D158859
2022-10-18 07:21:45 +00:00
Mark Banner
c6d73448ce Bug 1445134 - Remove user/policy engine tests from test_webextensions_valid.js as they are already covered elsewhere. r=mcheang
These are covered by test_userEngine.js and test_policyEngine.js

Differential Revision: https://phabricator.services.mozilla.com/D159032
2022-10-18 07:21:45 +00:00
Calixte
4dd9b46b89 Bug 1795701 - Update pdf.js to new version 9355b72931274a4ef3ca52d1db9dc5faa001ef1f r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D159512
2022-10-18 07:19:32 +00:00
Kershaw Chang
70c69eda51 Bug 1794061 - WebSocketChannel::CleanupConnection should run on IO thread, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D158831
2022-10-18 07:13:19 +00:00
Mozilla Releng Treescript
9633b1b349 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
be -> 3c8745190eebdaf65c610afd5c5425c5ef983c77
fa -> a15c081ae88b3585f8f5cc6d1f43a43ea04edb70
fi -> f87f007d4e0abd017e2630cfea4119ff563d92e9
ia -> 8c3b1edf8234fe4e496730b876f2e206dde97fef
it -> 1f5a60dacce5f17316f49a8948a2dae776ec65be
ko -> 415518dc0f7429beb2b3123fc87cef680367b3c7
sat -> 4fc520df5eab7b08216462cdde2dad2f5b2d70d2
tg -> 0bd1031b8b92da806751b72cd03180f48928cf10
2022-10-18 07:01:39 +00:00
Hubert Boma Manilla
6350f564a9 Bug 1785277 - [devtools] Add sourceActorId to location r=ochameau
This patch tries to cover a few things :-

1) The `location` object now also maintains an optional `sourceActorId` property

2) `selectSource` now takes an optional `sourceActor` argument which is used to
   augument the `location` object and passed to `selectLocation` then onto
   `loadSourceText` function to load the specific source text.

3) A new selector `getFirstSourceActorForGeneratedSource` to select the source actor to load the
source text.

4) `LoadSourceText`now always track the selected source actor (which should load the source text)
   each time a location is selected.

Differential Revision: https://phabricator.services.mozilla.com/D155952
2022-10-18 06:58:27 +00:00
Timothy Nikkel
b06cb79c08 Bug 1795779. Don't call TimeStamp::Now for the profiler every time an image is drawn if the profiler isn't active. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D159554
2022-10-18 06:57:13 +00:00
Masayuki Nakano
7b5c93295e Bug 1793865 - Make HTMLEditor::HandleOutdentAtSelectionInternal not return caret point suggestion r=m_kato
It restores `Selection` with `AutoSelectionRestorer` instance created first.
Therefore it does not want the callers (currently, only
`HTMLEditor::HandleOutdentAtSelection` only) change `Selection` after doing it
without special reasons.  Therefore, it shouldn't return last caret point
suggestion which is not a good point to put caret actually.  Then, callers
do not need to handle it as they've never done.

Differential Revision: https://phabricator.services.mozilla.com/D159231
2022-10-18 06:48:45 +00:00
Julian Seward
518297a7d8 Bug 1795644 - A bit of tuning of inlining in the JS parser. r=arai.
Some profiling of tcampbell's React benchmark [1] shows 6.1 million calls to
js::frontend::GeneralTokenStreamChars<..>::getFullAsciiCodePoint, using 110.57
million instructions (x86_64).  That comes out to only 18 insns per call,
which suggests the method is a good candidate for inlining, but it isn't
inlined.

Merely parking an inline annotation on it doesn't help much, because it gets
inlined into js::frontend::TokenStreamSpecific<..>::getCodePoint, but that
isn't inlined into *its* caller(s), so the 6.1 million calls move to
::getCodePoint instead.

This patch requests inlining for both ::getFullAsciiCodePoint and
::getCodePoint and adds some MOZ_NEVER_INLINE annotations to ensure that cold
paths *don't* get inlined into these two, to reduce code bloat and avoid
excessive register pressure.

IsAscii functions in mfbt/TextUtils.h have been marked inline as a precaution;
this probably isn't necessary.

Run time with config [2] is reduced from 0.390 seconds to 0.379 seconds
(2.8% speedup, best of 50 runs), and from 0.402 to 0.396 seconds
(median of 50 runs).

Instruction count falls from 3511.8 million to 3395.8 million, and the number
of data accesses from 1563.7 million to 1487.4 million -- a 4.8% reduction
that is probably caused by avoidance of save/restore sequences in the inlined
fns.

[1] https://github.com/mozilla-spidermonkey/matrix-react-bench

[2] Fedora 35, x86_64, Intel Core i5 1135G7 at 4 ish GHz
    configure: --disable-debug --enable-optimize="-g -O2"
    run:       --no-threads

Differential Revision: https://phabricator.services.mozilla.com/D159500
2022-10-18 05:22:03 +00:00
Cristian Tuns
fc754caf43 Backed out changeset 30dbd4267a26 (bug 1794439) for causing multiple failures on BacktrackingAllocator.cpp CLOSED TREE 2022-10-18 00:38:04 -04:00
Frederic Wang
36b880a97d Bug 1795630 - Export MathML crashtests to WPT. r=emilio
This commit moves crash tests from dom/mathml and layout/mathml into
testing/web-platform/tests/mathml/crashtests/mozilla, trying to do only
minimal changes (i.e. use 'test-wait' instead of 'reftest-wait' and
fix whitespace errors). lint errors are ignored for usage of
setTimeout as well as the invalid XML file testing bug 289180.

Regarding 400157.xhtml, it uses special powers to trigger a
zoom changes. It could probably be tweaked to convert to a mochitest or
rely on a different dynamic change. However, this was testing a crash for
the `<mfenced>` element in nsMathMLmfencedFrame whose code has been
completely removed, so it's now hard to reproduce the original crash.
Also that makes the test no longer very useful, so we just remove it.

Differential Revision: https://phabricator.services.mozilla.com/D159491
2022-10-18 04:21:41 +00:00
Doug Thayer
75845722c0 Bug 1794439 - Inline HasNativeDataPropertyPure cache lookup in Ion r=jandem
I saw something like a 5% improvement to the Elm, React, and React-Redux
subtests of speedometer with this, with maybe a 1% overall Speedometer
improvement, although the confidence is lower.

Differential Revision: https://phabricator.services.mozilla.com/D158983
2022-10-18 03:57:03 +00:00
Ryan Hunt
59e8c99e0c Bug 1794841 - wasm: Remove unneeded asm.js bytecode offset handling from baseline. r=jseward
Calls in original asm.js source code that result in function calls at the wasm level
require preservation of the original JS line number. This metadata is through a
callSiteLineNums vector which needs to be iterated through exactly in sync between
the compiler and bytecode generator. We have this logic in ion, but for some reason
it also exists in baseline, even though baseline is never used (and won't be) for
asm.js code.

This commit removes logic related to line numbers from baseline, simplifying the
logic. Previously, we needed to consume the potential line number at the beginning
of the instruction, then propagate it to wherever the function call would be. Now
we can just read the bytecode offset of the current instruction whenever we need
it.

Differential Revision: https://phabricator.services.mozilla.com/D159201
2022-10-18 02:14:01 +00:00
Ryan Hunt
184d1da6bf Bug 1794841 - wasm: Fix clang-tidy warnings. r=jseward
This commit fixes actionable clang-tidy warnings in js/src/wasm.

There are some slight functional changes here, but nothing major.

Most of the issues are:
  * Mismatched decl/def arg names
  * Redundant if (cond) return true; else return false;
  * Unsigned to signed is implementation defined
  * Unnused definitions
  * Typedef instead of using
  * Uninitialized definitions

There are still a bunch of clang-tidy warnings, but they're
cases where our style is not matched with clang-tidy.

Differential Revision: https://phabricator.services.mozilla.com/D159194
2022-10-18 02:14:01 +00:00
Ryan Hunt
cc80a7029a Bug 1794841 - wasm: Clean up ValType free methods. r=jseward
SizeOf can be replaced with .size()
MIRType conversion methods can be made consistent.
IsNumberType is not used.

Differential Revision: https://phabricator.services.mozilla.com/D159193
2022-10-18 02:14:00 +00:00
Ryan Hunt
999a88cbbb Bug 1794841 - wasm Remove unneeded OptimizedBackend enum. r=jseward
This is not needed now that CL has been removed.

Differential Revision: https://phabricator.services.mozilla.com/D159192
2022-10-18 02:14:00 +00:00
Ryan Hunt
e7bc4bed23 Bug 1794841 - wasm: Avoid unnecessary allocations in TagType. r=jseward
An exception handling tag `(tag $name)` will nearly always have at
least one param for communicating the pointer to the thrown exception.

We should increase the inline storage in this vector so that we
don't have to allocate in this case. We do this already with the
ValTypeVector used in this class.

Differential Revision: https://phabricator.services.mozilla.com/D159191
2022-10-18 02:13:59 +00:00
Ryan Hunt
7cacbab73c Bug 1794841 - wasm: Remove unused asm.js opcodes. r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D159190
2022-10-18 02:13:59 +00:00
Tooru Fujisawa
8e2cd85950 Bug 1793706 - Show error summary at the end of ./mach esmify. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D159499
2022-10-18 01:23:33 +00:00
Noemi Erli
5a21645f73 Backed out 2 changesets (bug 1793841) for causing Gtest failures CLOSED TREE
Backed out changeset 4d39c423b92e (bug 1793841)
Backed out changeset 5cfb5f595add (bug 1793841)
2022-10-18 04:29:44 +03:00
Ting-Yu Lin
556a172274 Bug 1795196 Part 3 - Remove the special case for viewport in SetComputedISize(). r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D159539
2022-10-18 00:26:20 +00:00
Ting-Yu Lin
cd2c1471d2 Bug 1795196 Part 2 - Convert ComputedMin{I|B}Size() and ComputedMax{I|B}Size() that return writable references to setters. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D159353
2022-10-18 00:26:20 +00:00
Ting-Yu Lin
261c24ebe5 Bug 1795196 Part 1 - Remove ComputedISize() and ComputedBSize() that return writable references. r=emilio
Users of these two getters should use setters such as SetComputedISize() instead.

Differential Revision: https://phabricator.services.mozilla.com/D159352
2022-10-18 00:26:19 +00:00
Sam Foster
968de3c515 Bug 1795752 - Use fx-view rather than firefoxview as the entry point param for FxA signin/signup. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D159528
2022-10-18 00:22:26 +00:00
Makoto Kato
1dce2205ee Bug 1795183 - Replace OS.path.join with PathUtils.join in ChildCrashHandler.jsm. r=geckoview-reviewers,owlish
`osfile` is deprecated and `./mach lint -l eslint` shows warning message for
it.  So I would like to replace it with `PathUtils`.

Differential Revision: https://phabricator.services.mozilla.com/D159343
2022-10-18 00:18:56 +00:00
Dana Keeler
0d78f1f283 Bug 1793841 - deserialize nsITransportSecurityInfo without already having an instance of it r=jschanck,necko-reviewers,dragana
This is an important step in making nsITransportSecurityInfo constant.

Depends on D157994

Differential Revision: https://phabricator.services.mozilla.com/D157995
2022-10-18 00:18:09 +00:00
Dana Keeler
f37644a281 Bug 1793841 - don't serialize securityInfo in browser_aboutCertError_exception.js r=pbz
This test only needs the bytes of the server certificate, not the entire
nsITransportSecurityInfo of the connection.

Differential Revision: https://phabricator.services.mozilla.com/D157994
2022-10-18 00:18:08 +00:00
Eitan Isaacson
3243bf997e Bug 1789474 - Allow detached documents to be overwritten in accessible mapping. r=Jamie,geckoview-reviewers,owlish
Also assure that unregistering an accessible removes the right one and
doesn't confuse the attached document with the detached one.

Add stderr output to Accessible::DebugPrint in Android as well.

Differential Revision: https://phabricator.services.mozilla.com/D157528
2022-10-17 23:10:19 +00:00
Cristian Tuns
73d2d7042e Backed out 6 changesets (bug 1794841) for causing build bustages CLOSED TREE
Backed out changeset fba05a94b614 (bug 1794841)
Backed out changeset 83fa047989c7 (bug 1794841)
Backed out changeset 2a4c88ddd548 (bug 1794841)
Backed out changeset 9fa0cc213d62 (bug 1794841)
Backed out changeset b3722221b4be (bug 1794841)
Backed out changeset 2daef03ea536 (bug 1794841)
2022-10-17 19:11:19 -04:00
Ryan Hunt
f5b8a2c623 Bug 1794841 - wasm: Remove unneeded asm.js bytecode offset handling from baseline. r=jseward
Calls in original asm.js source code that result in function calls at the wasm level
require preservation of the original JS line number. This metadata is through a
callSiteLineNums vector which needs to be iterated through exactly in sync between
the compiler and bytecode generator. We have this logic in ion, but for some reason
it also exists in baseline, even though baseline is never used (and won't be) for
asm.js code.

This commit removes logic related to line numbers from baseline, simplifying the
logic. Previously, we needed to consume the potential line number at the beginning
of the instruction, then propagate it to wherever the function call would be. Now
we can just read the bytecode offset of the current instruction whenever we need
it.

Differential Revision: https://phabricator.services.mozilla.com/D159201
2022-10-17 22:46:04 +00:00
Ryan Hunt
477a87b345 Bug 1794841 - wasm: Fix clang-tidy warnings. r=jseward
This commit fixes actionable clang-tidy warnings in js/src/wasm.

There are some slight functional changes here, but nothing major.

Most of the issues are:
  * Mismatched decl/def arg names
  * Redundant if (cond) return true; else return false;
  * Unsigned to signed is implementation defined
  * Unnused definitions
  * Typedef instead of using
  * Uninitialized definitions

There are still a bunch of clang-tidy warnings, but they're
cases where our style is not matched with clang-tidy.

Differential Revision: https://phabricator.services.mozilla.com/D159194
2022-10-17 22:46:03 +00:00
Ryan Hunt
cd5e982b39 Bug 1794841 - wasm: Clean up ValType free methods. r=jseward
SizeOf can be replaced with .size()
MIRType conversion methods can be made consistent.
IsNumberType is not used.

Differential Revision: https://phabricator.services.mozilla.com/D159193
2022-10-17 22:46:03 +00:00
Ryan Hunt
540a323026 Bug 1794841 - wasm Remove unneeded OptimizedBackend enum. r=jseward
This is not needed now that CL has been removed.

Differential Revision: https://phabricator.services.mozilla.com/D159192
2022-10-17 22:46:03 +00:00
Ryan Hunt
112713f6b0 Bug 1794841 - wasm: Avoid unnecessary allocations in TagType. r=jseward
An exception handling tag `(tag $name)` will nearly always have at
least one param for communicating the pointer to the thrown exception.

We should increase the inline storage in this vector so that we
don't have to allocate in this case. We do this already with the
ValTypeVector used in this class.

Differential Revision: https://phabricator.services.mozilla.com/D159191
2022-10-17 22:46:02 +00:00
Ryan Hunt
bc9fdc2df0 Bug 1794841 - wasm: Remove unused asm.js opcodes. r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D159190
2022-10-17 22:46:02 +00:00
Noemi Erli
ddc4439c1b Backed out 2 changesets (bug 1783497) for causing failures in test_displayOrigin.js CLOSED TREE
Backed out changeset 0200c81aa87f (bug 1783497)
Backed out changeset 4da944d66d96 (bug 1783497)
2022-10-18 01:45:49 +03:00
Cristian Tuns
0f148c29c0 Backed out changeset ae36f7ea16cf (bug 1793113) for causing reftest failures on bar-pseudo-element.html CLOSED TREE 2022-10-17 18:14:04 -04:00