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

24031 Коммитов

Автор SHA1 Сообщение Дата
Frédéric Wang d37af3bd92 Bug 1881040 - Use the destination to refine the fetchpriority mapping. r=valentin
According to step 15 of [1], request’s destination is used in an
implementation-defined manner to set the internal priority but we
currently always use the preferences corresponding to the adjustments
of the global fetch API.

This patch handle destinations corresponding to CSP directives
"font-src", "script-src", "style-src", "img-src" and "media-src" [2]
specially by respectively using the adjustment preferences named
"link-preload-font", "link-preload-script", "link-preload-style"
"images" and a new preference "media".

Special handling of these destinations is motivated by the fact that
they are mentioned explicitly on [3]. For "media" we choose preferences
following the suggestions from that article (i.e. media is low
priority). However, for now we don't change the default value and make
sure fetchpriority=high/low preserves the invariants tested by
fetchpriority-adjustments.html

[1] https://fetch.spec.whatwg.org/#concept-fetch
[2] https://fetch.spec.whatwg.org/#destination-table
[3] https://web.dev/articles/fetch-priority?hl=en#browser_priority_and_fetchpriority

Differential Revision: https://phabricator.services.mozilla.com/D208467
2024-06-12 07:50:42 +00:00
Kagami Sascha Rosylight 5068375765 Bug 1900037 - Disable vibration APIs r=webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D212291
2024-06-11 15:14:07 +00:00
pstanciu 0ad2e3fd7b Backed out changeset e1b316eca9ec (bug 1901374) for causing mochitest failures on test_animation-type-longhand.html 2024-06-12 00:42:25 +03:00
Harshit Sohaney 4d0114b7f3 Bug 1899359 - Flip pref in url-classifier to fetch ETP lists from Remote Settings in Nightly only. r=timhuang
Depends on D210105

Differential Revision: https://phabricator.services.mozilla.com/D211913
2024-06-11 14:04:09 +00:00
Gregory Pappas ebfbc5f739 Bug 1901368 - Remove unused toolkit.telemetry.geckoview.batchDurationMS and toolkit.telemetry.geckoview.maxBatchStalenessMS prefs r=chutten
These became unused in bug 1884526

Differential Revision: https://phabricator.services.mozilla.com/D212982
2024-06-11 14:02:33 +00:00
edgul cdfc28498b Bug 1844827 - Added checks for sub-document navigations from cross-site to same-site in third-party checks when setting a cookie. r=cookie-reviewers,valentin,bvandersloot
Differential Revision: https://phabricator.services.mozilla.com/D204074
2024-06-11 13:43:14 +00:00
Luke Warlow 9cadf878d9 Bug 1901374: Implement field-sizing parsing r=emilio
This change adds a new layout.css.field-sizing.enabled pref that controls the availability of the field-sizing CSS property.

With the pref enabled this property now parses according to the spec.

Spec: https://drafts.csswg.org/css-ui/#field-sizing

Differential Revision: https://phabricator.services.mozilla.com/D212983
2024-06-11 12:00:50 +00:00
Nicolas Silva ee2dc430a4 Bug 1901257 - Add a pref to control the threshold for slow cpu frames. r=gfx-reviewers,gw
Differential Revision: https://phabricator.services.mozilla.com/D213069
2024-06-11 10:33:44 +00:00
Iulian Moraru f41d310573 Backed out 6 changesets (bug 1881040) for causing base-toolchains build bustages on FetchDriver.cpp. CLOSED TREE
Backed out changeset 320a5e2465e3 (bug 1881040)
Backed out changeset 13645c9ec29b (bug 1881040)
Backed out changeset 14ac42b80c59 (bug 1881040)
Backed out changeset 4c1cf7254f78 (bug 1881040)
Backed out changeset db29da0a049a (bug 1881040)
Backed out changeset 4f99700fa668 (bug 1881040)
2024-06-11 22:42:28 +03:00
Iulian Moraru b00dfe1db6 Backed out 3 changesets (bug 1882089) for causing wd assertion failures.
Backed out changeset 0616057daa83 (bug 1882089)
Backed out changeset ee9ceda9dc3d (bug 1882089)
Backed out changeset c9df24a4001c (bug 1882089)
2024-06-11 22:40:11 +03:00
Frédéric Wang 54723267d0 Bug 1881040 - Use the destination to refine the fetchpriority mapping. r=valentin
According to step 15 of [1], request’s destination is used in an
implementation-defined manner to set the internal priority but we
currently always use the preferences corresponding to the adjustments
of the global fetch API.

This patch handle destinations corresponding to CSP directives
"font-src", "script-src", "style-src", "img-src" and "media-src" [2]
specially by respectively using the adjustment preferences named
"link-preload-font", "link-preload-script", "link-preload-style"
"images" and a new preference "media".

Special handling of these destinations is motivated by the fact that
they are mentioned explicitly on [3]. For "media" we choose preferences
following the suggestions from that article (i.e. media is low
priority). However, for now we don't change the default value and make
sure fetchpriority=high/low preserves the invariants tested by
fetchpriority-adjustments.html

[1] https://fetch.spec.whatwg.org/#concept-fetch
[2] https://fetch.spec.whatwg.org/#destination-table
[3] https://web.dev/articles/fetch-priority?hl=en#browser_priority_and_fetchpriority

Differential Revision: https://phabricator.services.mozilla.com/D208467
2024-06-11 09:14:15 +00:00
Helena b19ca93c27 Bug 1834475 - Remove the preference signon.signupDetection.enabled. r=credential-management-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D212586
2024-06-11 09:13:20 +00:00
Henrik Skupin 6f1a73d212 Bug 1882089 - [remote] Do not enable CDP protocol by default. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D212909
2024-06-11 06:32:16 +00:00
Brad Werth a5e881efc5 Bug 1898621: Provide error results for surface promotion methods. r=gw,nical
This uses the warn macro for promotion errors. It's not clear this will
be useful for web authors, but hopefully it's useful for Firefox
developers.

This has the potential to be very spammy. I need ideas on how to limit
the reporting to new or interesting errors.

Differential Revision: https://phabricator.services.mozilla.com/D212340
2024-06-11 00:10:14 +00:00
alwu 75404aff0d Bug 1898344 - part3 : remove the pref 'media.media-capabilities.enable'. r=media-playback-reviewers,webidl,saschanaz,padenot
Media Capabilities has been shipped as a standard feature long enough,
it's no need to guard it by the preference anymore.

Differential Revision: https://phabricator.services.mozilla.com/D212322
2024-06-10 23:20:43 +00:00
Tamas Szentpeteri 3d51f425af Backed out changeset b50c8f1824f0 (bug 1901374) for causing wpt failures on field-sizing-computed.html. CLOSED TREE 2024-06-11 05:32:54 +03:00
Alexandre Poirot 5170312c97 Bug 1824726 - [devtools] Throttle all resources from the server side. r=devtools-reviewers,nchevobbe,perftest-reviewers,sparky
This helps accumulate RDP packets related to resources being available/updated/destroyed
and emit less and larger RDP packets instead or more and smaller.
This appears to reduce the overhead of DevTools transport and JSWindowActor layers.

The issue in browser_markup_events_toggle.js is interesting.
It highlights that a resource notified before a call to WatcherActor.watchResources,
may be emitted during the call to watchResources.
This makes ignoreExistingResources flag a bit brittle as that resource should be
considered as an existing/past one.
We should probably flush past resource and probably introduce a more explicit
way of handling "existing" resources on the server side.

The fix in document-events.js relates to failures in browser_net_offline_mode.js.
This test was passing thanks to late dom-complete event emitted on the previous WindowGlobal.
Surprisingly, when reloading the page in offline mode, the previous, already existing WindowGlobal
triggered the WebProgressListener and we were emitting dom-complete event.
Because of throttling, this resource is no longer transfered to the client as the related target
actor is already destroyed on reload.
But at the end, the issue was the missing dom-interactive and dom-complete events for the error page.

Regarding browser_net_ws-sse-persist-columns.js, it looks like this test was properly waiting
for the WebSocket table to update. We were really lucky it was working without frequent intermittent!

Similarly to the client side, DOCUMENT_EVENT's will-navigate is special
and has to be emitted synchronously in order to prevent clearing things out of order.
This is also true for NETWORK_EVENT_STACKTRACE which is expected to be received
*before* related NETWORK_EVENT. NETWORK_EVENT_STACKTRACE is fired from the content
process while NETWORK_EVENT is fired from the parent process.
For now, it is easier to synchronously emit those resources rather than trying
to do cross process coordination.
We may revisit this choice once we start doing throttling from the parent process
and may be once D143409 lands.

About browser_resources_clear_resources.js, it is surprising it wasn't already failing.

Differential Revision: https://phabricator.services.mozilla.com/D197772
2024-06-10 21:29:00 +00:00
Luke Warlow 6bd1154b6d Bug 1901374: Implement field-sizing parsing r=emilio
This change adds a new layout.css.field-sizing.enabled pref that controls the availability of the field-sizing CSS property.

With the pref enabled this property now parses according to the spec.

Spec: https://drafts.csswg.org/css-ui/#field-sizing

Differential Revision: https://phabricator.services.mozilla.com/D212983
2024-06-10 21:14:55 +00:00
Tamas Szentpeteri c57b415af4 Backed out 8 changesets (bug 1900791, bug 1901257, bug 1899118) for causing wrench bustages related to pkg lockfile. CLOSED TREE
Backed out changeset 13bfcb429131 (bug 1901257)
Backed out changeset 33515e19747a (bug 1901257)
Backed out changeset afb5f06b1769 (bug 1899118)
Backed out changeset fa83ad843f07 (bug 1900791)
Backed out changeset cfe385ed662e (bug 1901257)
Backed out changeset 81269835675b (bug 1901257)
Backed out changeset 9bc476e5e936 (bug 1901257)
Backed out changeset 0c583d6d7b41 (bug 1901257)
2024-06-11 03:57:31 +03:00
Nicolas Silva 84f36014d2 Bug 1901257 - Add a pref to control the threshold for slow cpu frames. r=gfx-reviewers,gw
Differential Revision: https://phabricator.services.mozilla.com/D213069
2024-06-10 20:47:29 +00:00
Tamas Szentpeteri 00da9181f8 Backed out 10 changesets (bug 1898344) for causing reftest crashes on crashtests/1608286.html. CLOSED TREE
Backed out changeset 4269549304d0 (bug 1898344)
Backed out changeset 7aa44b36fdf3 (bug 1898344)
Backed out changeset 990f497dd1ac (bug 1898344)
Backed out changeset 30097a228b33 (bug 1898344)
Backed out changeset c83e42f9270b (bug 1898344)
Backed out changeset 391230484cf6 (bug 1898344)
Backed out changeset 7c59df042312 (bug 1898344)
Backed out changeset c2f20930bfed (bug 1898344)
Backed out changeset 9e435366c2b7 (bug 1898344)
Backed out changeset c130ec4b7353 (bug 1898344)
2024-06-10 22:24:24 +03:00
alwu feb8e707db Bug 1901084 - part3 : enable hevc for the media engine pref on early beta and dev edition. r=media-playback-reviewers,jolin
Differential Revision: https://phabricator.services.mozilla.com/D212844
2024-06-10 17:48:46 +00:00
alwu 7ffb0f3be0 Bug 1901084 - part2 : enable PlayReady pref on early beta and dev edition. r=media-playback-reviewers,jolin
Differential Revision: https://phabricator.services.mozilla.com/D212843
2024-06-10 17:48:46 +00:00
alwu d757e8c895 Bug 1901084 - part1 : enable media engine pref on early beta and dev edition. r=media-playback-reviewers,jolin
Differential Revision: https://phabricator.services.mozilla.com/D212842
2024-06-10 17:48:45 +00:00
alwu 35c46e487a Bug 1898344 - part3 : remove the pref 'media.media-capabilities.enable'. r=media-playback-reviewers,webidl,saschanaz,padenot
Media Capabilities has been shipped as a standard feature long enough,
it's no need to guard it by the preference anymore.

Differential Revision: https://phabricator.services.mozilla.com/D212322
2024-06-10 17:37:27 +00:00
sotaro c7248636fd Bug 1901192 - Force uploading recycled DataSourceSurface by CanvasTranslator r=gfx-reviewers,lsalzman
As a simple workaround, use DataSourceSurfaceWrapper to force the upload of recycled DataSourceSurface.

Differential Revision: https://phabricator.services.mozilla.com/D212903
2024-06-10 17:35:43 +00:00
Ryan Hunt 40545d2f35 Bug 1876155 - wasm: Add flag and feature for compile pipeline exploration. r=yury
Differential Revision: https://phabricator.services.mozilla.com/D212795
2024-06-10 17:13:11 +00:00
Manuel Bucher ca28980109 Bug 1747230 - Fix IsUpgradeDowngradeEndlessLoop blocking legitimate redirects when redirecting to different query parameters r=necko-reviewers,kershaw,simonf,maltejur
This changes where the IsUpgradeDowngradeEndlessLoop check triggers.
Before this patch, it triggered during the redirect caused by the https
upgrade. With this patch, it triggers during the downgrade for http
redirects. META and JS redirect are still detected during upgrade.
This should be fixed as a follow up (See Bug 1896691).
Downgrade in this context means same url, except with the scheme http
instead of https.

Different query parameters normally lead to different responses by web servers.
Don't consider the '#ref' part of the uri, because it doesn't get send to
the server and therefore can't change the server response.

We can't use the redirect chain anymore, because the query parameters
are trimmed since Bug 1715785.

This also removes the config option dom.security.https_only_check_path_upgrade_downgrade_endless_loop,
because it adds unnecessary complexity. Removing it for this patch is
easier.

https-only, https-first and httpssvc_https_upgrade tests had to be
modified, because they depended on the incorrect handling of query
strings in loop detection.

Differential Revision: https://phabricator.services.mozilla.com/D193672
2024-06-10 17:09:57 +00:00
Jonathan Kew b8287a3297 Bug 385615 - Avoid creating zero-length textframes when trying to handle ::first-letter. r=dholbert
This fixes the fuzzer-found assertion reported in bug 1899840, as well as the real-world
website hangs reported in bug 1900169.

In addition, it adds a pref (layout.css.intrinsic-size-first-letter.enabled) that gates
the new functionality during intrinsic size computation. This gives us a way to easily
disable it in the event of other regressions showing up.

Also add the testcase from 1899840 as a wpt crashtest.

Differential Revision: https://phabricator.services.mozilla.com/D212699
2024-06-10 16:58:43 +00:00
Sean 5530008e89 Bug 1898652 - Remove network.jar.require_size_match pref r=gregp,valentin
Differential Revision: https://phabricator.services.mozilla.com/D212176
2024-06-10 13:24:56 +00:00
Tamas Szentpeteri 51f395e7d2 Backed out 2 changesets (bug 1898621) as requested by tnikkel for causing bug 1901370. CLOSED TREE
Backed out changeset c7f221a9e1db (bug 1898621)
Backed out changeset 032081e46073 (bug 1898621)
2024-06-09 02:42:42 +03:00
Greg Stoll 46c1e87488 Bug 1901065 - do not exempt about:blank and about:srcdoc from DLP r=dlp-reviewers,handyman
Per nika's comments, these can be controlled by webpages.

Differential Revision: https://phabricator.services.mozilla.com/D212849
2024-06-07 18:53:13 +00:00
Brad Werth cb69e55219 Bug 1898621: Provide error results for surface promotion methods. r=gw,nical
This uses the warn macro for promotion errors. It's not clear this will
be useful for web authors, but hopefully it's useful for Firefox
developers.

This has the potential to be very spammy. I need ideas on how to limit
the reporting to new or interesting errors.

Differential Revision: https://phabricator.services.mozilla.com/D212340
2024-06-07 15:02:22 +00:00
Gregory Pappas 52e5a4ba97 Bug 1900986 - Remove unused toolkit.telemetry.geckoview.streaming pref r=geckoview-reviewers,chutten,ohall
It became unused in bug 1884526

Differential Revision: https://phabricator.services.mozilla.com/D212780
2024-06-07 14:46:31 +00:00
Sandor Molnar 4975dd27cf Backed out changeset 728458b02b26 (bug 1899359) for causing xpc failures @ test_provider_url.js CLOSED TREE 2024-06-07 17:22:20 +03:00
Harshit Sohaney a177bc4369 Bug 1899359 - Flip pref in url-classifier to fetch ETP lists from Remote Settings in Nightly only. r=timhuang
Depends on D210105

Differential Revision: https://phabricator.services.mozilla.com/D211913
2024-06-07 13:56:38 +00:00
Iulian Moraru 8d350d3cf6 Backed out 4 changesets (bug 1835983, bug 1719271) for causing multiple failures. CLOSED TREE
Backed out changeset cc4918cd9802 (bug 1719271)
Backed out changeset 53a1814554bf (bug 1835983)
Backed out changeset c5eed965602e (bug 1835983)
Backed out changeset 1b8e7959184a (bug 1835983)
2024-06-06 23:53:14 +03:00
Malte Juergens e97c67a4de Bug 1719271 - Enable HTTPS-First by default in Nightly r=freddyb,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D212713
2024-06-06 19:18:46 +00:00
Emilio Cobos Álvarez 6d7bc83613 Bug 1901068 - Setting for privacy-preserving attribution. r=mt,settings-reviewers,fluent-reviewers,mconley,bgrins
Differential Revision: https://phabricator.services.mozilla.com/D211656
2024-06-06 17:22:07 +00:00
Emilio Cobos Álvarez c9f45e36b2 Bug 1901060 - Privacy Preserving Attribution origin trial and API. r=bbirdsong,mt,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D211093
2024-06-06 16:43:41 +00:00
Tamas Szentpeteri c650eff9ee Backed out changeset b234ba179483 (bug 1747230) for causing mochitest failures on browser_target_blank.js. CLOSED TREE 2024-06-06 19:51:33 +03:00
Manuel Bucher db9b007290 Bug 1747230 - Fix IsUpgradeDowngradeEndlessLoop blocking legitimate redirects when redirecting to different query parameters r=necko-reviewers,kershaw,simonf,maltejur
This changes where the IsUpgradeDowngradeEndlessLoop check triggers.
Before this patch, it triggered during the redirect caused by the https
upgrade. With this patch, it triggers during the downgrade for http
redirects. META and JS redirect are still detected during upgrade.
This should be fixed as a follow up (See Bug 1896691).
Downgrade in this context means same url, except with the scheme http
instead of https.

Different query parameters normally lead to different responses by web servers.
Don't consider the '#ref' part of the uri, because it doesn't get send to
the server and therefore can't change the server response.

We can't use the redirect chain anymore, because the query parameters
are trimmed since Bug 1715785.

This also removes the config option dom.security.https_only_check_path_upgrade_downgrade_endless_loop,
because it adds unnecessary complexity. Removing it for this patch is
easier.

https-only, https-first and httpssvc_https_upgrade tests had to be
modified, because they depended on the incorrect handling of query
strings in loop detection.

Differential Revision: https://phabricator.services.mozilla.com/D193672
2024-06-06 15:04:47 +00:00
Tamas Szentpeteri da5b91412b Backed out 2 changesets (bug 1899359, bug 1886246) for causing xpcshell failures on test_bug1274685_unowned_list.js. CLOSED TREE
Backed out changeset 27d0c8b36db2 (bug 1899359)
Backed out changeset aaa6c0ed38fe (bug 1886246)
2024-06-06 17:20:04 +03:00
Harshit Sohaney c2adc1ebd8 Bug 1899359 - Flip pref in url-classifier to fetch ETP lists from Remote Settings in Nightly only. r=timhuang
Depends on D210105

Differential Revision: https://phabricator.services.mozilla.com/D211913
2024-06-06 12:41:48 +00:00
Anna Weine da3651c711 Bug 1885138 - Enabling Brotli Certificate Encoding for Nightly r=jschanck
Data classification note:
This patch extends the telemetry introduced in https://phabricator.services.mozilla.com/D211194.

The metrics that are still under Category 2 “Interaction data”.

The metrics measure the user interaction with the certificate compression decoders.
In this patch we check how often the users were using the certificate compression feature using the brotli decoder and what's the performance gain (amount of bytes saved during the TLS handshake).

Differential Revision: https://phabricator.services.mozilla.com/D210011
2024-06-06 10:41:01 +00:00
Anna Weine 205509197a Bug 1881027 - Enabling Zlib Certificate Encoding for Nightly r=djackson
This patch enables advertisement and decoding using zlib encoding algorithm the certificates during the TLS connection for Nightly.

Differential Revision: https://phabricator.services.mozilla.com/D203909
2024-06-06 07:45:22 +00:00
sotaro d3bd7ab3f1 Bug 1900677 - Add a capability to recycle DataSourceSurface allocated in CanvasTranslator::LookupSourceSurfaceFromSurfaceDescriptor() if possible r=gfx-reviewers,lsalzman
By default, it is disabled by pref gfx.canvas.remote.recycle-used-data-surface = false.

Add a capability to reuse used DataSourceSurface that was previously used for storing converted video data.

Add argument gfx::DataSourceSurface* aSurface to TextureHost::GetAsSurface(). aSurface may be used as returned DataSourceSurfacefi the TextureHost supports it.

Differential Revision: https://phabricator.services.mozilla.com/D212608
2024-06-06 03:25:53 +00:00
Cristina Horotan a1aa176cc4 Backed out changeset d4b3fe2e03c6 (bug 1898621) for wrench failures. CLOSED TREE 2024-06-06 02:47:35 +03:00
Brad Werth e28b609aec Bug 1898621: Provide error results for surface promotion methods. r=gw
This uses the warn macro for promotion errors. It's not clear this will
be useful for web authors, but hopefully it's useful for Firefox
developers.

This has the potential to be very spammy. I need ideas on how to limit
the reporting to new or interesting errors.

Differential Revision: https://phabricator.services.mozilla.com/D212340
2024-06-05 22:35:42 +00:00
Greg Stoll d36a87d7aa Bug 1886558 - exempt about pages from DLP r=dlp-reviewers,handyman
Differential Revision: https://phabricator.services.mozilla.com/D212212
2024-06-05 19:15:55 +00:00