Commit Graph

756175 Commits

Author SHA1 Message Date
Noemi Erli
3487bbd1ee Backed out 4 changesets (bug 1707590) for causing gtest crashes CLOSED TREE
Backed out changeset 6edab66fe2c5 (bug 1707590)
Backed out changeset e5d2d6824408 (bug 1707590)
Backed out changeset 9c7204c3f03c (bug 1707590)
Backed out changeset 25da391baa22 (bug 1707590)
2021-05-06 02:07:42 +03:00
Kagami Sascha Rosylight
56860e5d49 Bug 1707590 - Part 4: Add image/jxl to Accept header and DownloadsViewableInternally r=necko-reviewers,dragana
Depends on D113360

Differential Revision: https://phabricator.services.mozilla.com/D113688
2021-05-05 21:44:09 +00:00
Kagami Sascha Rosylight
60b85f2b4c Bug 1707590 - Part 3: Add feature gate for JXL r=tnikkel,fluent-reviewers,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113360
2021-05-05 21:44:08 +00:00
Kagami Sascha Rosylight
c0edfd67fc Bug 1707590 - Part 2: Implement nsJXLDecoder r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D113359
2021-05-05 21:44:08 +00:00
Kagami Sascha Rosylight
42b950a045 Bug 1707590 - Part 1: Add vendored libjxl source r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D113358
2021-05-05 21:44:06 +00:00
Csoregi Natalia
d1bbd6e368 Backed out 2 changesets (bug 1693250) for failures on test_recreate_media_sink_audible_change.html. CLOSED TREE
Backed out changeset 0e0f90271853 (bug 1693250)
Backed out changeset 45cd86944c9f (bug 1693250)
2021-05-06 01:14:51 +03:00
Csoregi Natalia
eade4ff9c4 Merge mozilla-central to autoland. CLOSED TREE 2021-05-06 01:00:21 +03:00
Noemi Erli
b7da3f34ee Backed out changeset f45996fe15b2 (bug 1618547) for causing failures in browser_ProcessPriorityManager.js CLOSED TREE 2021-05-06 00:53:54 +03:00
Csoregi Natalia
3151f97de2 Merge autoland to mozilla-central. a=merge 2021-05-06 00:50:58 +03:00
Nicolas Silva
141d788226 Bug 1708540 - Handle and test various NaN situations with gradients. r=gfx-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D114366
2021-05-05 21:28:34 +00:00
Nicolas Silva
fc544d4e99 Bug 1708122 - Fix the radial gradient optimization. r=gfx-reviewers,lsalzman
The bounds of a radial gradient primitive's radius have to be scaled by the end_offset parameter.

Differential Revision: https://phabricator.services.mozilla.com/D114344
2021-05-05 21:27:34 +00:00
Dão Gottwald
bf05d4e1a2 Bug 1699703 - Re-enable canonical URL conversion for search shortcuts. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D113972
2021-05-05 21:24:45 +00:00
Nicolas Silva
4b2e532f46 Bug 1708959 - Fix linear gradient clipping in the fast path. r=gfx-reviewers,gw
Some code in the gradient fast path was expecting that at a certain point we'd either have bailed out of the optimization or the primitive bounds would be tightly clipped. It was possible with a combination of parameters to have a tile repetition that would prevent the tight clipping while being opitmized away after the attempt at clipping. In that case the primitive bounds wouldn't be minimal but we proceed using it as the clip while decomposing gradients into simpler segments.

This patch reorders the optimization code so that clipping is done after sanitizing repetitions, allows the clipping to happen in more cases and as an extra safety uses the intersection of the primitive bounds and clip as the segment clip regardless of whether we achieved a minimal clip earlier.

Differential Revision: https://phabricator.services.mozilla.com/D114255
2021-05-05 21:24:15 +00:00
Daniel Holbert
bba1038925 Bug 1706542: Add a short executeSoon delay to test_filter_crossorigin.html, as a possible workaround/diagnostic. r=emilio
This test has a fission-specific failure right now, where the failure looks
like a case where the cross-origin resource simply hasn't loaded, or hasn't
loaded *yet*.

This patch adds a short delay (60 "executeSoon" ticks, each of which spin the
event loop). This doesn't make the test take appreciably longer on my machine,
but it does introduce a short delay. If it helps, it'll let us know that
there's simply a race condition which is causing this test's snapshots to be
taken before its iframes' resources are ready.

Differential Revision: https://phabricator.services.mozilla.com/D114285
2021-05-05 21:23:47 +00:00
Mike Hommey
8189f56cd9 Bug 1599574 - Avoid re-running clang-plugin tests. r=firefox-build-system-reviewers,andi,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D114320
2021-05-05 21:21:11 +00:00
Daisuke Akatsuka
c5a6496e3e Bug 1707424: Use color of --toolbarbutton-icon-fill-attention for all of bookmark star image in urlbar related.r=harry,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D113901
2021-05-05 21:09:15 +00:00
Nika Layzell
e6838de735 Bug 1535913 - Orchestrate content BCG destruction from parent, r=farre
This should help avoid crashes caused when the content process has
already destroyed a BCG when the parent process hasn't yet. The BCG will
still be destroyed when the content process shuts down using normal
cycle-collection.

Differential Revision: https://phabricator.services.mozilla.com/D113828
2021-05-05 21:00:05 +00:00
Aaron Klotz
d83342602d Bug 1699464: Set GV content process count to 2 across all release channels; r=geckoview-reviewers,agi
I'm changing this to be unconditional so that it may ride the trains.

If we later decide that we need to hold it back for another release, we can
revert this in Beta.

I'm talking to data people about analyzing Fenix's tab retention probes. I'll
obviously be keeping an eye on those numbers as this change propagates.

Differential Revision: https://phabricator.services.mozilla.com/D114404
2021-05-05 20:58:33 +00:00
Morgan Reschenberg
36e9e6e30a Bug 1694569: Introduce tree size logging under A11YLOG r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D114168
2021-05-05 20:56:06 +00:00
Mike Conley
9a8ef4eb3c Bug 1695617 - Make sure subview subheader elements use the XUL box model. r=Gijs
It seems that we've hit another instance of the XUL box model interacting poorly
with the HTML box model in mysterious ways. In this particular case, the <h2>
elements for subview subheaders was using the HTML box model while inside of
a tree of XUL box elements, and this was causing an incorrect height calculation
for the containing scrollable node, the panel-subview-body.

Switching the h2 element to use the XUL box model appears to fix this.

Differential Revision: https://phabricator.services.mozilla.com/D114384
2021-05-05 20:42:17 +00:00
Mike Hommey
cef1079f4a Bug 1709282 - Build geckodriver when targeting aarch64 windows. r=firefox-build-system-reviewers,mhentges
We got rid of winapi 0.2 in bug 1708634.

Differential Revision: https://phabricator.services.mozilla.com/D114204
2021-05-05 20:32:37 +00:00
Andrew McCreight
063f9001b0 Bug 1618547 - Support Fission in the process priority manager. r=kmag,gsvelto
With Fission, there can be multiple BrowserParents in a single tab, so
this patch moves the tracking of active tabs onto the top BrowsingContext
in a tab. If the priority of a top BC is changed, then the activity
of all of the BPs of the BCs in the tree are all adjusted. The flag
that tracks this state gets carried forward to the new BC in the case
of a cross-group navigation by the changes in ReplacedBy().

The other change here covers the case where we do a process-switching
navigation on an iframe. If we create a new BrowserParent with an active
top BC, then the BP gets marked as active in the priority manager. Doing
this tracking on the BP instead of the BC (both here in and in the part
that landed previously in BrowserParent::Deactivated()) means that we
don't need to track down every place that a BC switches processes.

I left the tracking of activity in ParticularProcessPriorityManager
centered around BrowserParents, instead of changing it to BCs, to
minimize the changes required. There are some tricky interactions there
with wakelocks that I didn't want to have to figure out.

browser_ProcessPriorityManager.js was set up to track a mapping of
browsers to priorities, but for the purposes of testing Fission support
I changed it to track a mapping of child IDs to priorities.

In the test, I also removed an assignment (this.window = null) that
didn't seem to be doing anything.

Differential Revision: https://phabricator.services.mozilla.com/D112213
2021-05-05 20:29:14 +00:00
alwu
429bd59056 Bug 1693250 - part2 : reset the audible state when the audio sink get shutdown. r=bryce
When the audio sink shutdown, we should also reset the audible state for the listeners. Otherwise, MediaDecoderStateMachine would possibly rely on the incorrect audible state that is produced by previous sink, which would cause showing the sound indicator even if no sound is being playing.

Eg.
Considering following case without the reset of the audible state
1. Sink A is audible -> MDSM set `mIsAudioDataAudible=true`
2. Stop sink
3. Recreate sink B and it's playing silence -> MDSM's `mIsAudioDataAudible=true` is still true, this is wrong!

Differential Revision: https://phabricator.services.mozilla.com/D113550
2021-05-05 20:07:07 +00:00
alwu
5812a14721 Bug 1693250 - part1 : keep clock time being monotonically increased even if the media sink has been changed. r=bryce
The purpose of this patch is to create a consistent clock timeline among different media sinks.

Having a consistent clock timeline can help the newly created media sink to understand audio data's "adjusted" time, which can prevent the sink from inserting silence if the sink incorrectly think there is a gap between data and sink start time.

However, once seeking completed, we should use the media time that indicates to the new position, instead of using the previous clock time.

Eg.
Audio duration = 10, and has seamlessly looped 5 times. Then the start time of the sample in 2s in the 6th looping would be 2 + 5*10 = 52.
If we switch to the new sink, and use media time (which is 2s) as a start time to start a new sink, then the new sink would think there is a gap between 2s and 52s and push a lot of silence into the data. [1]


[1] https://searchfox.org/mozilla-central/rev/9b430bb1a11d7152cab2af4574f451ffb906b052/dom/media/mediasink/AudioSink.cpp#390-426

Differential Revision: https://phabricator.services.mozilla.com/D113548
2021-05-05 20:07:06 +00:00
Matthew Gaudet
66a30381a0 Bug 1706763 - Specialize InExpr emission for private brand checks to correctly handle the variety of storage locations required. r=arai
This ends up changing the NoThrow condition on CheckPrivateField to instead emulate the object check of JSOp::In instead.

As well, to create PrivateOpEmitter::Kind::ErgonomicBrandCheck, it's no longer aliased to the ElemOpEmitter::Kind enum.

Differential Revision: https://phabricator.services.mozilla.com/D114024
2021-05-05 19:39:28 +00:00
Matthew Gaudet
9c0b475dd0 Bug 1706763 - Assert we don't return JSOp::Nop from BinaryOpParseNodeKindToJSOp r=arai
Differential Revision: https://phabricator.services.mozilla.com/D114149
2021-05-05 19:39:27 +00:00
Joel Maher
c85fdac3ce Bug 1709424 - temporarily disable M1 tests on trunk. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D114272
2021-05-05 19:37:49 +00:00
Henrik Skupin
808d8e61ec Bug 1700454 - [geckodriver] Add geckodriver try preset. r=webdriver-reviewers,ahal,sparky,jdescottes DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D113465
2021-05-05 19:35:37 +00:00
Csoregi Natalia
df171582fd Backed out 4 changesets (bug 1707590) for causing gtest crashes. CLOSED TREE
Backed out changeset fec7b65cc3d7 (bug 1707590)
Backed out changeset 3a7e5c98dd13 (bug 1707590)
Backed out changeset 9dfd0d516062 (bug 1707590)
Backed out changeset 9ab607973f20 (bug 1707590)
2021-05-05 22:23:06 +03:00
Mozilla Releng Treescript
646ce79a9e no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
sco -> default
2021-05-05 19:04:13 +00:00
Csoregi Natalia
6cae0625ba Backed out 2 changesets (bug 1706763) for failures on private-reflect-01.js. CLOSED TREE
Backed out changeset d660b516c029 (bug 1706763)
Backed out changeset 37b12c82c93f (bug 1706763)
2021-05-05 21:48:21 +03:00
Steve Fink
928396fe99 Bug 1709404 - Add a new SM(fuzzilli) spidermonkey build job r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D114277
2021-05-05 18:30:32 +00:00
Kris Wright
cba0d6bf80 Bug 1692067 - Disable perma-failing reftests. r=decoder
Turns off reftests that fail either permanently or with high enough frequency to justify disabling them.

Differential Revision: https://phabricator.services.mozilla.com/D114305
2021-05-05 18:20:33 +00:00
Kris Wright
0e1d69cc25 Bug 1692067 - Add a ThreadSanitizer field to reftest manifest. r=decoder
Adds a `ThreadSanitizer` field to reftest manifest so we can skip perma-failing tests.

Differential Revision: https://phabricator.services.mozilla.com/D114304
2021-05-05 18:20:33 +00:00
Kris Wright
6931ab286d Bug 1692067 - Enable reftest on tsan. r=decoder
Enables reftest for thread sanitizer

Differential Revision: https://phabricator.services.mozilla.com/D114302
2021-05-05 18:20:33 +00:00
Christian Holler
ad1556611a Bug 1709559 - Avoid using PL_str implementations when fuzzing network. r=valentin,necko-reviewers,xpcom-reviewers,KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D114347
2021-05-05 18:09:28 +00:00
Matthew Gaudet
f035a4f375 Bug 1706763 - Specialize InExpr emission for private brand checks to correctly handle the variety of storage locations required. r=arai
This ends up changing the NoThrow condition on CheckPrivateField to instead emulate the object check of JSOp::In instead.

As well, to create PrivateOpEmitter::Kind::ErgonomicBrandCheck, it's no longer aliased to the ElemOpEmitter::Kind enum.

Differential Revision: https://phabricator.services.mozilla.com/D114024
2021-05-05 17:57:52 +00:00
Matthew Gaudet
8657c42caf Bug 1706763 - Assert we don't return JSOp::Nop from BinaryOpParseNodeKindToJSOp r=arai
Differential Revision: https://phabricator.services.mozilla.com/D114149
2021-05-05 17:57:52 +00:00
Jan Horak
de6eba0d14 Bug 1606010 Don't prefer scale of popup menu instead of shift; r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D113973
2021-05-05 17:34:20 +00:00
Kagami Sascha Rosylight
8c61b98e3b Bug 1707590 - Part 4: Add image/jxl to Accept header and DownloadsViewableInternally r=necko-reviewers,dragana
Depends on D113360

Differential Revision: https://phabricator.services.mozilla.com/D113688
2021-05-05 17:33:54 +00:00
Kagami Sascha Rosylight
937d71aa12 Bug 1707590 - Part 3: Add feature gate for JXL r=tnikkel,fluent-reviewers,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113360
2021-05-05 17:33:54 +00:00
Kagami Sascha Rosylight
302712a161 Bug 1707590 - Part 2: Implement nsJXLDecoder r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D113359
2021-05-05 17:33:53 +00:00
Kagami Sascha Rosylight
784f1185b9 Bug 1707590 - Part 1: Add vendored libjxl source r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D113358
2021-05-05 17:33:52 +00:00
Sean Feng
7f054950d5 Bug 1709232 - Make PerformanceObserver.supportedEntryTypes respects dom.enable_event_timing r=emilio
PerformanceObserver.supportedEntryTypes doesn't check whether
PerformanceEventTiming is enabled or not, so it'll falsely claims
PerformanceEventTiming is supported even if the pref is disabled.

This patch fixes that by adding a guard to it.

Differential Revision: https://phabricator.services.mozilla.com/D114250
2021-05-05 17:20:12 +00:00
Julian Descottes
b21e5ed03f Bug 1643433 - [devtools] Extend devtools toolbox performance probes r=janerik
Those probes are part of the performance monitoring done for devtools and should not be removed.

Differential Revision: https://phabricator.services.mozilla.com/D114265
2021-05-05 17:18:17 +00:00
Toshihito Kikuchi
fee87c9b39 Bug 1705579 - Skip WinIOAutoObservation if TLS is not available. r=gerald,aklotz
We hook several file APIs to record I/O performance data.  Since TLS is not
allocated in ntdll's loader worker thread, however, if someone does a file
operation, we hit read AV because `WinIOAutoObservation` uses `nsString` and
a thread local variable.

Currently we can see this crash happens only when a DLL rule of AppLocker is
defined, but theoretically this can happen when any module loaded in a worker
thread does file operation in its entrypoint.

The proposed fix is to skip `WinIOAutoObservation` if TLS is not available.

Differential Revision: https://phabricator.services.mozilla.com/D113032
2021-05-05 17:00:09 +00:00
Julien Cristau
faed108cb8 No bug - fix client.py update_nss on python3. r=firefox-build-system-reviewers,mhentges,bbeurdouche
We're mixing str and bytes in toggle_trailing_blank_line which can only
end in sadness.

Differential Revision: https://phabricator.services.mozilla.com/D114372
2021-05-05 16:59:09 +00:00
Yury Delendik
0f1d2e2ebe Bug 1687629 - ARM64 Ion SIMD. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D100659
2021-05-05 16:53:02 +00:00
Yury Delendik
21d18781a6 Bug 1687629 - Enable simd for arm64 in moz.configure. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D100656
2021-05-05 16:53:02 +00:00
alwu
1299cfd31c Bug 1709130 - part2 : shutdown sink when seeking to next frame. r=bryce
For normal seeking operation, we would stop the sink first and restart sink if needed when MDSM enters `DecodingState` later.

We should also do that for seek-to-next-frame. After seeking completes, MDSM would reset the media time by the video keyframe's time, but the audio clock time might still behind because it doesn't skip to next keyframe (audio also doesn't have that concept).

We hit this issue in the `1709130.html` in the previous patch. After seeking completed, the media time (video next keyframe time) is updated but the audio clock time is still behind, so we hit the assertion in the `GetClock()` [1]

[1] https://searchfox.org/mozilla-central/rev/54097530955a98c768f2aaf56925578ec886ec77/dom/media/MediaDecoderStateMachine.cpp#3585

Depends on D114150

Differential Revision: https://phabricator.services.mozilla.com/D114151
2021-05-05 16:50:34 +00:00