Commit graph

815662 commits

Author SHA1 Message Date
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
Eemeli Aro
a4042bfe05 Bug 1795609 - Properly clear findbar status. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D159482
2022-10-17 21:59:14 +00:00
Mike Hommey
d01fe13a7e Bug 1795230 - Fix -Wobjc-method-access warnings in osx_corewlan.mm. r=haik,necko-reviewers,valentin
This replaces deprecated classes, except in the one case where we're
purposely using the deprecated class until it's actively removed.

Differential Revision: https://phabricator.services.mozilla.com/D159368
2022-10-17 21:58:42 +00:00
Mike Hommey
969d7bb6fd Bug 1795219 - Remove -Wall setup in security/{ct,certverifier}/moz.build. r=firefox-build-system-reviewers,andi
The use of `-Xclang -Wall` somehow makes `-Wno-unknown-pragmas`
ineffective. `-Xclang -Wno-unknown-pragmas` does however work.

But we don't need to set `-Xclang -Wall` from the moz.builds in the first
place, as that's already done properly via warnings.configure (setting
-Wall on non-clang-cl and -W3 on clang-cl, which is the equivalent).

Differential Revision: https://phabricator.services.mozilla.com/D159366
2022-10-17 21:55:03 +00:00
Mike Hommey
056763e84d Bug 1776463 - Use C++17 inline variable for CountingAllocatorBase::sAmount. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D159360
2022-10-17 21:54:12 +00:00
Mike Hommey
99df2caf77 Bug 1795168 - Make mach cargo check initialize enough of the build for its own purpose . r=firefox-build-system-reviewers,nalexander
Also change the default value for --jobs to 0 instead of 1, because
`make -j1` doesn't initialize a jobserver, so cargo uses all cores,
which is a fine default, but now that we may also invoke the rest of
the build system, and because `make -j1` for that is slow, we instead
use 0 as the default (which means auto-detect).

Differential Revision: https://phabricator.services.mozilla.com/D159336
2022-10-17 21:53:40 +00:00
Geoff Brown
5d407b19c1 Bug 1730400 - Handle another connection exception installing python modules; r=aerickson
Differential Revision: https://phabricator.services.mozilla.com/D159449
2022-10-17 21:24:48 +00:00
Emilio Cobos Álvarez
ac512eac22 Bug 1795260 - Also clear the inNavbar pref so that following test keeps working.
MANUAL PUSH: Trivial orange fix CLOSED TREE
2022-10-17 23:28:10 +02:00
Emilio Cobos Álvarez
b03241e966 Bug 1795574 - Fix base-toolchains build.
MANUAL PUSH: Bustage fix CLOSED TREE
2022-10-17 23:25:45 +02:00
Cristian Tuns
6c7ed40390 Backed out changeset d734d1d10478 (bug 1795752) for causing mochitest failures on browser_feature_callout.js CLOSED TREE 2022-10-17 17:17:49 -04:00
Emilio Cobos Álvarez
5d8d34afe8 Bug 1795260 - Test that the searchbar doesn't overflow the toolbar even with a big user-imposed size. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D159521
2022-10-17 20:59:59 +00:00
Jonathan Kew
eacf8c524f 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-17 20:54:43 +00:00
Emilio Cobos Álvarez
adbad51e81 Bug 1795574 - Avoid deadlock in Wayland vsync. r=rmader
And add lock annotations too, fixing relevant issues.

Differential Revision: https://phabricator.services.mozilla.com/D159498
2022-10-17 20:40:45 +00:00
Emilio Cobos Álvarez
8e2776a5e7 Bug 1790815 - Don't raise the window for tab-modal SubDialogs and in print. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D157599
2022-10-17 20:37:23 +00:00
Sam Foster
ca077475ed 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-17 20:35:31 +00:00
Emilio Cobos Álvarez
d798a8796a Bug 1793829 - Don't steal focus for navigations without user activation. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D158758
2022-10-17 20:04:14 +00:00
Tom Ritter
f71c987669 Bug 332006: Remove an old cairo patch r=jrmuizel
This patch hasn't been touched in ten years and the code it affects does not
appear in the file, so I think it is old an unused.

Differential Revision: https://phabricator.services.mozilla.com/D159514
2022-10-17 20:03:53 +00:00
Tom Ritter
b095499aca Bug 332006: Replace _snprintf with snprintf for expected and consistent behavior on Windows r=gsvelto,cmartin
Differential Revision: https://phabricator.services.mozilla.com/D159435
2022-10-17 20:03:52 +00:00
Julian Descottes
e4d67ccf9d Bug 1795466 - [devtools] Avoid loading the NetworkHelper in jsonview converter-child r=ochameau
Depends on D159219

Differential Revision: https://phabricator.services.mozilla.com/D159456
2022-10-17 19:56:20 +00:00
Julian Descottes
6454ae749e Bug 1788762 - [devtools] Load the NetworkObserver modules in DevToolsLoader if invisibleToDebugger is set r=ochameau
Depends on D156989

Differential Revision: https://phabricator.services.mozilla.com/D159219
2022-10-17 19:56:19 +00:00
Julian Descottes
2eb3f7edbb Bug 1788762 - [devtools] Code cleanup devtools ChannelMap.sys.mjs r=ochameau
Depends on D156968

Cleanup of the ChannelMap class
- use private fields
- move static method to module-local method
- add comments
- rename methods to match behavior

Differential Revision: https://phabricator.services.mozilla.com/D156989
2022-10-17 19:56:19 +00:00
Julian Descottes
989055a6f7 Bug 1788762 - Migrate devtools network observer to an ES module r=ochameau
This is a very basic migration from commonjs modules to ESM for all modules related to network observation.
A few classes have been introduced instead of prototype-based classes, but otherwise the code remains mostly untouched.

We can followup to introduce private fields and methods if there's interest?

Differential Revision: https://phabricator.services.mozilla.com/D156968
2022-10-17 19:56:18 +00:00
Noemi Erli
256f083ad2 Backed out 8 changesets (bug 1262276) for causing failures in MediaDecoderStateMachine.cpp CLOSED TREE
Backed out changeset 0e8e7d877d08 (bug 1262276)
Backed out changeset 92e2db60f44a (bug 1262276)
Backed out changeset c937297d3874 (bug 1262276)
Backed out changeset 143255ae75ed (bug 1262276)
Backed out changeset 4724dd3b433f (bug 1262276)
Backed out changeset 72a9ff64ef1b (bug 1262276)
Backed out changeset 7d876e0ef72a (bug 1262276)
Backed out changeset 70bc7e69d03a (bug 1262276)
2022-10-17 22:39:50 +03:00
Itiel
dc310c90ac Bug 1794761 - Fix inline-end padding for menu items inside menulists on Windows r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D159287
2022-10-17 19:18:39 +00:00
Jamie Nicol
54c6c8806a Bug 1795614 - Avoid invalidating render targets on Mali-G710. r=gfx-reviewers,jgilbert
In bug 1787520 we discovered a driver bug affecting Mali-G78 devices,
and added a workaround for it - avoiding invalidating no-longer-needed
render targets at the end of each render pass. It now transpires this
bug also affects Mali-G710 GPUs, so this patch applies the same
workaround for those devices too.

Differential Revision: https://phabricator.services.mozilla.com/D159515
2022-10-17 18:52:01 +00:00
Mozilla Releng Treescript
fe23b1664d no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
be -> 9fcfb3e9dd628ff9e3e315eaa931e59372648251
cy -> b2bb689559b1f6d05dffb4142911901055f07a7e
da -> 09d5809e008d887874db9e4fa90ce95dfcdbb826
es-MX -> f188eb4b6d8da42e123cbf40512b341040170472
fa -> 3bf60dee02c97f7a586a5bdf1b75743ba04a4bc4
kk -> cfd28cc7a757b34be6ed6cb60814cc6147098eb1
lo -> 0f6b80d856f3995f9a1f93acd677b160b987d7b4
oc -> 3753a436b052bcd7899f5cf1984b4772275bfb9e
pt-PT -> 385c0ceade32f6573f4b689e2ecaa6d9514f2763
sk -> 791b52956aa410b903e5d9965c7f24d9f919c8c1
tg -> 7ef3b18cf475551a49b5dd34a96034aea36f60bf
tr -> 26c70b605ddb70291d02a9cf5c25474d5215455e
2022-10-17 19:09:34 +00:00
Cristian Tuns
0652e4917a Backed out 2 changesets (bug 1792069, bug 1792070) for causing build bustages CLOSED TREE
Backed out changeset a64a597a93a4 (bug 1792069)
Backed out changeset dfbeb0ea1c65 (bug 1792070)
2022-10-17 15:04:29 -04:00
Tom Ritter
464388f161 Bug 1792069: Add libsrtp to Updatebot r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D157951
2022-10-17 18:35:48 +00:00
Tom Ritter
b55f51591f Bug 1792070: Remove dead files from libsrtp r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D157950
2022-10-17 18:35:48 +00:00
alwu
743000a9ba Bug 1262276 - part8 : add a canvas test to ensure that video is seamless looping. r=padenot
This test ensures that we can always capture correct video frame via
canvas.

The black frame issue was discoverd in bug 1789881, where the canvas
capture is racing with the media element state change [1], which results
in capturing a black frame.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1789881#c3

Differential Revision: https://phabricator.services.mozilla.com/D159339
2022-10-17 18:28:19 +00:00
alwu
0cda4c0eda Bug 1262276 - part7 : change the expectation of 'autoplay-hidden.optional.html.ini' from Failed to Timeout. r=padenot
This behavior is optional [1] and we don't support that. Currently
this test only passes on Edge [2].

The reason of becoming timeout is because seamless looping now won't
change the media element's ready state. When looping in not seamless,
the element's ready state will change below HAVE_CURRENT_DATA (like what
I describe in D159218), and when we have enough data (HAVE_FUTURE_DATA
or HAVE_ENOUGH_DATA) the element would dispatch `playing` which causes
the condition check failure [3]. That is why this test was FAILED
before.

As now we're using seamless looping, no `playing` event will be resent
which causes the timeout.

[1] https://html.spec.whatwg.org/multipage/media.html#ready-states:eligible-for-autoplay-2
[2] https://wpt.fyi/results/html/semantics/embedded-content/media-elements/ready-states/autoplay-hidden.optional.html?label=experimental&view=subtest
[3] https://searchfox.org/mozilla-central/rev/76ccfc801e6b736c844cde3fddeab7a748fc8515/testing/web-platform/tests/html/semantics/embedded-content/media-elements/ready-states/autoplay-hidden.optional.html#27

Differential Revision: https://phabricator.services.mozilla.com/D159333
2022-10-17 18:28:19 +00:00
alwu
878869b553 Bug 1262276 - part6 : add a test to ensure that media element always has current frame during seamless looping. r=padenot
If the video looping is not seamless, when playback reaches to the end,
MDSM would trigger a seek in order to get the new frame from the start
position. That would notify the media element that the status of the next
frame is not available now due to seeking (NEXT_FRAME_UNAVAILABLE_SEEKING)
and causes the media element dispatching `waiting` event.

Above situaion shouldn't happen when we're in the seamless looping. The
added test covers that situation.

That ready state change also causes the google meet issue [1], because
the spec only allows capturing an image from a media element if it's
ready state is at least in `HAVE_CURRENT_DATA`.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1789881#c3

Differential Revision: https://phabricator.services.mozilla.com/D159218
2022-10-17 18:28:18 +00:00
alwu
33343f33c8 Bug 1262276 - part5 : only seek one track at a time otherwise the previous seek target would be overwritten. r=padenot
The media format reader's seek doesn't support seeking in parallel, so
that is why the format reader would seek video first, then audio.

Therefore, in looping state, we need to perform seeking sequentially by
delaying the new seek if the format reader is already in seeking.
Otherwise, a seeking comes later will overwrite the seek target that the
current seek is using, which causes an error.

Differential Revision: https://phabricator.services.mozilla.com/D159217
2022-10-17 18:28:18 +00:00
alwu
4fdf2897a7 Bug 1262276 - part4 : add more debug logs. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D159128
2022-10-17 18:28:18 +00:00
alwu
0bebdcfdd9 Bug 1262276 - part3 : allow the format reader to request video data during audio seeking. r=padenot
Audio and video demuxer are independent, so seeking the audio demuxer
won't affect requesting a data from the video demuxer.

Differential Revision: https://phabricator.services.mozilla.com/D159127
2022-10-17 18:28:17 +00:00
alwu
42422f8885 Bug 1262276 - part2 : support seamless video looping. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D159126
2022-10-17 18:28:17 +00:00