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

4566 Коммитов

Автор SHA1 Сообщение Дата
Timothy Nikkel 4a5ba31f52 Bug 1864255. Remove skip wayland annotations for various crashtests that no longer need it. r=gfx-reviewers,dholbert,nical
Most of these were probably disabled because of the window occlusion thing making them timeout. We fixed that in this bug so we don't need them anymore. Whatever the reason these all pass now and don't seem to be intermittent failures either.

There is still one test that we must skip on wayland for failure though, dom/media/tests/crashtests/1490700.html, but I think it's related to some webrtc feature that is not implemented on wayland perhaps.

Differential Revision: https://phabricator.services.mozilla.com/D208078
2024-04-28 10:02:10 +00:00
Timothy Nikkel cbda5363c6 Bug 1864255. Remove disabling window_occlusion_tracking pref changes from all crashtests. r=layout-reviewers,emilio
They are no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D193655
2024-04-25 10:44:35 +00:00
Sylvestre Ledru 21f973ed5c Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,media-playback-reviewers,padenot
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D207867
2024-04-22 16:00:09 +00:00
Jason Kratzer c7a25587de Bug 1892285 - Use correct method when setting image.mem.max_legal_imgframe_size_kb pref. r=tsmith
Differential Revision: https://phabricator.services.mozilla.com/D207894
2024-04-18 17:35:12 +00:00
Chris Peterson 05289b2c2d Bug 1891332 - Replace debug MOZ_ASSERT with MOZ_RELEASE_ASSERT in image tests. r=tnikkel
And MOZ_ASSERT_UNREACHABLE with MOZ_CRASH.

MOZ_ASSERT and MOZ_ASSERT_UNREACHABLE are only checked in debug builds, so release builds' tests are not checking these assertions.

Differential Revision: https://phabricator.services.mozilla.com/D207372
2024-04-17 03:26:28 +00:00
Timothy Nikkel 862f126871 Bug 1890090. Check return value of WebPInitDecBuffer in webp decoder. r=gfx-reviewers,lsalzman
libwebp 1.4.0 makes this function no discard so we'll have to check it.

Differential Revision: https://phabricator.services.mozilla.com/D206837
2024-04-06 04:27:37 +00:00
Joel Maher 48be032609 Bug 1889789 - fix reftests that have duplicate entries in manifests. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D206729
2024-04-05 01:25:28 +00:00
Nika Layzell a48079cd72 Bug 1881863 - Part 1: Standardize on boolean over bool in xpidl, r=xpcom-reviewers,necko-reviewers,valentin,extension-reviewers,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,search-reviewers,anti-tracking-reviewers,places-reviewers,nalexander,emilio,zombie,sgalich,karlt,lina,Standard8
Previously the `boolean` type was also declared using a `bool` typedef in
xpidl, meaning that both were used in various places. This patch standardizes
on the built-in `boolean` type, removing the typedef.

Differential Revision: https://phabricator.services.mozilla.com/D206382
2024-04-04 18:45:21 +00:00
Jens Stutte 7be82ed20f Bug 1889083 - Leak image explicitly in SurfaceCache::ReleaseImageOnMainThread. r=xpcom-reviewers,nika,emilio
Differential Revision: https://phabricator.services.mozilla.com/D206346
2024-04-02 15:55:54 +00:00
Randell Jesup d542854faa Bug 1356686 - Ensure that imgRequest::CheckListenerChain returns the correct value r=tnikkel
SVGs must be coded on MainThread because they need to access the LoadGroup,
etc, while other images can be decoded via the decode pool.   This ensures
that CheckListenerChain() will return the right value for this instance.

Differential Revision: https://phabricator.services.mozilla.com/D203181
2024-03-19 17:27:23 +00:00
Sandor Molnar a764c03b7c Backed out 4 changesets (bug 1356686) for causing build bustages @ netwerk/protocol/http/HttpChannelChild.cpp CLOSED TREE
Backed out changeset 63dc52c69902 (bug 1356686)
Backed out changeset 6e9726c26d07 (bug 1356686)
Backed out changeset 3b150d676b31 (bug 1356686)
Backed out changeset 54754a50d992 (bug 1356686)
2024-03-19 08:29:08 +02:00
Randell Jesup 95c8ee2aa1 Bug 1356686 - Ensure that imgRequest::CheckListenerChain returns the correct value r=tnikkel
SVGs must be coded on MainThread because they need to access the LoadGroup,
etc, while other images can be decoded via the decode pool.   This ensures
that CheckListenerChain() will return the right value for this instance.

Differential Revision: https://phabricator.services.mozilla.com/D203181
2024-03-18 20:04:01 +00:00
Joel Maher f9157a0383 Bug 1884195 - Replace reftest.list conditions that are the same. r=aryx,jgilbert,emilio
Differential Revision: https://phabricator.services.mozilla.com/D203942
2024-03-11 16:38:03 +00:00
Gregory Pappas ea69b62538 Bug 1883217 - Remove unused defines in IDL files r=webdriver-reviewers,necko-reviewers,credential-management-reviewers,places-reviewers,dom-core,Standard8,valentin,mccr8,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D203347
2024-03-06 19:04:25 +00:00
Dave Townsend b53e08b713 Bug 1864896: Autofix unused function arguments (image). r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D202968
2024-03-03 09:09:10 +00:00
Timothy Nikkel f658742e04 Bug 1835509. If we encounter a bad LZW block in a gif frame still report success if we have decoded frames before this successfully. r=aosmond
This is similar to this code in image/Decoder.cpp

https://searchfox.org/mozilla-central/rev/ae292ebba6074601b33fa983dd4e01ce6a1ec4ac/image/Decoder.cpp#257

We won't display the frames after the bad frame, but that seems reasonable, and an improvement from current. If we get more reports of this we can look into just skipping the bad frame instead of truncating before the bad frame.

Differential Revision: https://phabricator.services.mozilla.com/D179495
2024-03-01 11:42:43 +00:00
Frédéric Wang b005b82248 Bug 1872657 - Add fetchpriority support for `<link rel=preload as=image>`. r=valentin,smaug,manuel
This patch adds fetchpriority support for `<link rel=preload as=image>`
and equivalent HTTP Link header. The fetchpriority value is passed from
where the link is parsed down to `NewImageChannel` where the priority
is initially set. Currently, the default equals PRIORITY_LOW, but is
decreased a bit if LOAD_BACKGROUND flag is set (this is always the case
for link preload images, see `imgLoader::LoadImage`). Later, the
priority can be increased again depending on the category (see
`imgRequest::BoostPriority`).

In order to minimize the changes, the new calculation is to keep the
initial setting to PRIORITY_LOW, adjust it using a new
`network.fetchpriority.adjustments.*` preference depending on the
fetchpriority attributes, and then preserve further adjustments for
LOAD_BACKGROUND and `BoostPriority`.

For the default value `fetchpriority=auto`, there is no adjustment
i.e. we continue to start with PRIORITY_LOW. `fetchpriority=low/high`
are respectively mapped to PRIORITY_LOW/PRIORITY_HIGH which is simple
and consistent with the "Image" cases from Google's web.dev article
https://web.dev/articles/fetch-priority. These values could of course
be revised in the future after more experiments.

This change is covered by the following tests below. The expectations
is modified to match what is described above (i.e. map to PRIORITY_LOW
or PRIORITY_HIGH with adjustment due to LOAD_BACKGROUND):
- `link-initial-preload-image.h2.html`
- `link-dynamic-preload-image.h2.html`
- `kPipeHeaderPreloadImageLinks`

Based on a patch by Mirko Brodesser (mbrodesser@igalia.com)

Differential Revision: https://phabricator.services.mozilla.com/D197493
2024-02-27 06:33:48 +00:00
Stanca Serban b54de79827 Backed out changeset 621c8480cd35 (bug 1872657) for causing FetchPriority related bp-nu bustages in IconLoader.cpp. CLOSED TREE 2024-02-26 18:15:18 +02:00
Frédéric Wang c7734232ca Bug 1872657 - Add fetchpriority support for `<link rel=preload as=image>`. r=valentin,smaug,manuel
This patch adds fetchpriority support for `<link rel=preload as=image>`
and equivalent HTTP Link header. The fetchpriority value is passed from
where the link is parsed down to `NewImageChannel` where the priority
is initially set. Currently, the default equals PRIORITY_LOW, but is
decreased a bit if LOAD_BACKGROUND flag is set (this is always the case
for link preload images, see `imgLoader::LoadImage`). Later, the
priority can be increased again depending on the category (see
`imgRequest::BoostPriority`).

In order to minimize the changes, the new calculation is to keep the
initial setting to PRIORITY_LOW, adjust it using a new
`network.fetchpriority.adjustments.*` preference depending on the
fetchpriority attributes, and then preserve further adjustments for
LOAD_BACKGROUND and `BoostPriority`.

For the default value `fetchpriority=auto`, there is no adjustment
i.e. we continue to start with PRIORITY_LOW. `fetchpriority=low/high`
are respectively mapped to PRIORITY_LOW/PRIORITY_HIGH which is simple
and consistent with the "Image" cases from Google's web.dev article
https://web.dev/articles/fetch-priority. These values could of course
be revised in the future after more experiments.

This change is covered by the following tests below. The expectations
is modified to match what is described above (i.e. map to PRIORITY_LOW
or PRIORITY_HIGH with adjustment due to LOAD_BACKGROUND):
- `link-initial-preload-image.h2.html`
- `link-dynamic-preload-image.h2.html`
- `kPipeHeaderPreloadImageLinks`

Based on a patch by Mirko Brodesser (mbrodesser@igalia.com)

Differential Revision: https://phabricator.services.mozilla.com/D197493
2024-02-26 15:03:58 +00:00
Timothy Nikkel 732e327254 Bug 1880054. Simplify some imagelib event target code. r=gfx-reviewers,lsalzman
This code was added before we decided to do fission, when we wanted to separate out different sites that were in the same process so we could prioritize them better. We are not going down that path so we can simplify this code. There should be no change in functionality with this patch, just simpler code.

Differential Revision: https://phabricator.services.mozilla.com/D201705
2024-02-25 04:54:33 +00:00
Timothy Nikkel c9583fe34e Bug 1873422. Ignore "invalid chunk type" errors in pngs if we have enough data to display something when encountered. r=aosmond
GetFrameCount() > 0 means that we've started a frame, but not necessarily finished it.

Differential Revision: https://phabricator.services.mozilla.com/D198511
2024-02-24 01:00:10 +00:00
Joel Maher eaf8b887ab Bug 1879538 - cleanup unnecessary and redundant reftest conditions. r=aryx,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D201794
2024-02-22 23:04:45 +00:00
Gijs Kruitbosch ff17e7fc68 Bug 1780071 - Manual fixes/disabling of no-comparison-or-assignment-inside-ok for exceptional cases, r=Standard8,devtools-reviewers,anti-tracking-reviewers,places-reviewers,dom-storage-reviewers,pbz,asuth,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D198979
2024-02-19 23:30:40 +00:00
Perry McManis 1ebc673e72 Bug 1877840 - Migrate GVST metrics in the avif namespace to pure glean r=chutten,tnikkel
GVST is how these probes sent data in Fenix and is now unnecessary (and doesn't send data in Fenix release) since Firefox Desktop has direct access to Glean. We therefore need to clean them up in some capacity.

Following the recommendations from the GeckoView Streaming (GVST) validation effort, this is a pure Glean api implementation of the metrics that fell under network in geckoview streaming.

Because these were all categorical histograms, to retain previous functionality we've added parallel instrumentation in Glean.

Differential Revision: https://phabricator.services.mozilla.com/D201024
2024-02-09 19:47:46 +00:00
Tyson Smith 0be16bc8ee Bug 1874779 - Set image.mem.max_legal_imgframe_size_kb for libfuzzer targets. r=truber
Differential Revision: https://phabricator.services.mozilla.com/D198633
2024-02-02 16:53:54 +00:00
Timothy Nikkel 78e9020148 Bug 1864550. Allow pref image.mem.max_legal_imgframe_size_kb to be live. r=gfx-reviewers,gw
This pref exists only for fuzzers so they don't waste time on overly large images. The way fuzzers set the pref requires it to be live.

Differential Revision: https://phabricator.services.mozilla.com/D198498
2024-02-02 04:42:17 +00:00
Norisz Fay 34ba7989ae Backed out changeset c5ac0dc2aa69 (bug 1864550) for causing multiple image.mem.max_legal_imgframe_size_kb related failures CLOSED TREE 2024-02-02 04:48:43 +02:00
Timothy Nikkel cd38dfd760 Bug 1864550. Allow pref image.mem.max_legal_imgframe_size_kb to be live. r=gfx-reviewers,gw
This pref exists only for fuzzers so they don't waste time on overly large images. The way fuzzers set the pref requires it to be live.

Differential Revision: https://phabricator.services.mozilla.com/D198498
2024-02-02 02:15:05 +00:00
Tom Marble 3c78905f47 Bug 1868866 - adds ManifestParser TOML linter r=jmaher,linter-reviewers,ahal,webdriver-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,cookie-reviewers,sessionstore-reviewers,places-reviewers,dom-storage-reviewers,translations-reviewers,valentin,whimboo,Standard8,sclements,jesup
Differential Revision: https://phabricator.services.mozilla.com/D199054
2024-01-29 17:30:48 +00:00
Sandor Molnar 51bb77759a Backed out changeset 2be67d91cf16 (bug 1868866) for causing Mn failures at toolkit/xre/test/marionette/test_exitcode.py CLOSED TREE 2024-01-27 00:15:22 +02:00
Tom Marble 2434015dc5 Bug 1868866 - adds ManifestParser TOML linter r=jmaher,linter-reviewers,ahal,webdriver-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,cookie-reviewers,sessionstore-reviewers,places-reviewers,dom-storage-reviewers,translations-reviewers,valentin,whimboo,Standard8,sclements,jesup
Differential Revision: https://phabricator.services.mozilla.com/D199054
2024-01-26 20:06:56 +00:00
Paul Adenot d6181b64f8 Bug 1868615 - Remove define usage. r=chunmin
It doesn't exist anymore in upstream libaom, and we're only using it for this
assertion.

Differential Revision: https://phabricator.services.mozilla.com/D198364
2024-01-19 10:35:19 +00:00
Tom Schuster 58300c5e90 Bug 1873474 - Use ImageBlocker directly instead of nsIContentPolicy::ShouldProcess in ImageDocument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D198142
2024-01-17 09:49:32 +00:00
Benjamin VanderSloot 5bd36b24b1 Bug 1873490, part 1 - Refactor the only external call to StorageDisabledByAntiTracking - r=anti-tracking-reviewers,timhuang
I'm considering dropping this if statement entirely because this is only hit when we disable network state partitioning.
According to code coverage, we only see the ""_ns as the result of this ternary in our testing too.

But, if you disable network state partitioning and then block cookies from a given domain, then we would still want to partition network state I suppose, so I'll leave it like this..

Differential Revision: https://phabricator.services.mozilla.com/D198034
2024-01-12 17:03:20 +00:00
Tom Schuster 346cecd51c Bug 1872839 - Remove aMimeTypeGuess parameter from nsIContentPolicy. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D197794
2024-01-08 15:47:42 +00:00
Timothy Nikkel 0f39860036 Bug 1862059. Handle edge cases of svg images in multipart images. r=aosmond,gfx-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D192827
2024-01-02 07:13:01 +00:00
Andrew Osmond 0d3eae78e5 Bug 1872536 - Use MakeUniqueFallible for large buffers in image decoders/encoders. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D197461
2023-12-31 22:16:46 +00:00
Timothy Nikkel ea36a87c56 Bug 1869938. For docs that don't have a load context/docshell, try to inherit private browsing from the doc's channel. r=necko-reviewers,kershaw
This is how we decide which imgLoader to use (private or not) when we load an image: https://searchfox.org/mozilla-central/rev/91cc8848427fdbbeb324e6ca56a0d08d32d3c308/dom/base/nsContentUtils.cpp#3898

Differential Revision: https://phabricator.services.mozilla.com/D196720
2023-12-28 10:57:40 +00:00
Andrew Osmond 484b8d4e39 Bug 1871613 - Ensure CanvasDrawEventRecorder releases external surface dependencies. r=gfx-reviewers,lsalzman
This patch makes CanvasDrawEventRecorder track what eventCount we
recorded an external surface reference. When the reader has increment
its processedCount above that, we will release our reference as it
should have acquired a strong reference to the data. This was previously
done when we forwarded the texture, but with remote textures, we no
longer have this event. Now we check when we start a new recording, or
attempt to clear cached resources.

Differential Revision: https://phabricator.services.mozilla.com/D197216
2023-12-23 01:34:31 +00:00
Paul Adenot fcf35cd837 Bug 1869332 - Move libaom to libgkcodecs. r=glandium,media-playback-reviewers,chunmin
Differential Revision: https://phabricator.services.mozilla.com/D196058
2023-12-20 02:32:34 +00:00
Narcis Beleuzu 0f250fb8c2 Backed out 7 changesets (bug 1869332) for Android bustages. CLOSED TREE
Backed out changeset e1a7852ec85a (bug 1869332)
Backed out changeset 886e59d6495f (bug 1869332)
Backed out changeset 03ac3598f84f (bug 1869332)
Backed out changeset 5e775f2c2b9c (bug 1869332)
Backed out changeset 295a1e1f01d5 (bug 1869332)
Backed out changeset 2909ac6aeb41 (bug 1869332)
Backed out changeset dfab47873174 (bug 1869332)
2023-12-19 18:52:01 +02:00
Paul Adenot e2e68cab50 Bug 1869332 - Move libaom to libgkcodecs. r=glandium,media-playback-reviewers,chunmin
Differential Revision: https://phabricator.services.mozilla.com/D196058
2023-12-19 15:21:50 +00:00
Ryan VanderMeulen 3ffb39ec52 Bug 1852649 - Add crashtest. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D187955
2023-12-15 21:46:45 +00:00
Noemi Erli 862354d813 Backed out 7 changesets (bug 1869332) for causing libavcodec related bustages CLOSED TREE
Backed out changeset 1c0fd259312d (bug 1869332)
Backed out changeset d51eba30a225 (bug 1869332)
Backed out changeset 483d3f275da7 (bug 1869332)
Backed out changeset c401449274b4 (bug 1869332)
Backed out changeset c83313202040 (bug 1869332)
Backed out changeset 00ceb6e47715 (bug 1869332)
Backed out changeset 5acc2f4f12c2 (bug 1869332)
2023-12-14 12:02:45 +02:00
Paul Adenot 039cbc5bda Bug 1869332 - Move libaom to libgkcodecs. r=glandium,media-playback-reviewers,chunmin
Differential Revision: https://phabricator.services.mozilla.com/D196058
2023-12-14 09:12:32 +00:00
Stanca Serban d84ca52ee4 Backed out 6 changesets (bug 1869332) for causing build bustages. CLOSED TREE
Backed out changeset 4f8c19f9dfcf (bug 1869332)
Backed out changeset 661e520c2991 (bug 1869332)
Backed out changeset 74e2acabc439 (bug 1869332)
Backed out changeset 1c4b5311ac03 (bug 1869332)
Backed out changeset af22bc552759 (bug 1869332)
Backed out changeset f557e130d997 (bug 1869332)
2023-12-13 18:13:24 +02:00
Paul Adenot 9b4c4a5bb9 Bug 1869332 - Move libaom to libgkcodecs. r=glandium,media-playback-reviewers,chunmin
Differential Revision: https://phabricator.services.mozilla.com/D196058
2023-12-13 13:46:39 +00:00
Mike Hommey 619672a8e4 Bug 1867459 - Replace CPU_ARCH with TARGET_CPU. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D195157
2023-12-08 10:43:59 +00:00
Joel Maher c993099c60 Bug 1865385 - remove win7/win-aarch64 annotations from reftest manifests. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D193995
2023-12-05 21:49:04 +00:00
Joel Maher 9d203b1d46 Bug 1859893 - batch 15 - migrate xpcshell.ini -> .toml. r=aryx,geckoview-reviewers,extension-reviewers,valentin,cookie-reviewers,pbz,owlish,robwu
Differential Revision: https://phabricator.services.mozilla.com/D194384
2023-11-24 14:41:35 +00:00