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

23096 Коммитов

Автор SHA1 Сообщение Дата
Florian Quèze ab55e0b7a2 Bug 1880373 - make xpc::IsInAutomation() work in all child process types, r=smaug.
Differential Revision: https://phabricator.services.mozilla.com/D201883
2024-02-15 16:20:44 +00:00
Jeremie Courreges-Anglas 5e0f906d60 Bug 1879656: add support for OpenBSD/riscv64 in xpcom r=glandium DONTBUILD
reuse the linux files, they just work on OpenBSD

Differential Revision: https://phabricator.services.mozilla.com/D201318
2024-02-14 21:28:25 +00:00
Kelsey Gilbert b04996924d Bug 1037100 - Scoped.h removed because no outstanding uses. r=glandium,dom-storage-reviewers,jesup,janv
Differential Revision: https://phabricator.services.mozilla.com/D201763
2024-02-14 06:41:58 +00:00
Chris Peterson 515689e933 Bug 1880008 - Add char8_t string overloads to MFBT string functions when compiling with -std=c++20. r=xpcom-reviewers,emilio
When compiled with -std=c++17, u8"" string literals have type `const char[]`. When compiled with -std=c++20, u8"" string literals have type `const char8_t[]`. This patch adds the minimum char8_t overloads needed to compile Firefox with -std=c++20. If we want to use char8_t in more code or replace `Utf8Unit` with char8_t, that will require an extensive redesign of MFBT's and xpcom's string classes after we update from -std=c++17 to c++20.

Differential Revision: https://phabricator.services.mozilla.com/D201672
2024-02-14 01:33:31 +00:00
James Teh 4f57a512d7 Bug 1870783 part 2: Expose ispopup object attribute. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D197038
2024-02-12 06:24:15 +00:00
alwu 4ab0545847 Bug 1878039 - part1 : implement getStatusPolicy for WMFCDM. r=jolin
For MFCDM, we can use IsTypeSupported/IsTypeSupportedEx with HDCP query
[1] to know whether HDCP policy is usable.

[1]
https://docs.microsoft.com/en-us/uwp/api/windows.media.protection.protectioncapabilities.istypesupported?view=winrt-19041

Differential Revision: https://phabricator.services.mozilla.com/D200694
2024-02-10 00:24:33 +00:00
Narcis Beleuzu 4701f6b0f9 Backed out 5 changesets (bug 1878713, bug 1878039) for wpt failure on clearkey-check-status-for-hdcp.https.html
Backed out changeset ba6c8f006d21 (bug 1878039)
Backed out changeset 825190c91d7a (bug 1878039)
Backed out changeset dda9fe6e9007 (bug 1878039)
Backed out changeset 1ad9eddcde2a (bug 1878713)
Backed out changeset 693b73304431 (bug 1878713)
2024-02-09 03:16:47 +02:00
alwu 428850567e Bug 1878039 - part1 : implement getStatusPolicy for WMFCDM. r=jolin
For MFCDM, we can use IsTypeSupported/IsTypeSupportedEx with HDCP query
[1] to know whether HDCP policy is usable.

[1]
https://docs.microsoft.com/en-us/uwp/api/windows.media.protection.protectioncapabilities.istypesupported?view=winrt-19041

Differential Revision: https://phabricator.services.mozilla.com/D200694
2024-02-08 23:25:02 +00:00
Nathan LaPre 61034e5b74 Bug 1732306 - Part 1: Implement emphasis role mappings, r=Jamie
This revision implements the mapping for the ARIA 1.2 emphasis role, which was
unsupported in Firefox until now. This change addresses a web platform test
failure. To accomplish this, the revision adds the WAI-defined role, adds a role
enum value, adds platform mappings, and adds a markup role mapping. The change
requires a new static atom for the word "emphasis," also added in this revision.
Finally, this change removes the expected wpt failure and updates other tests.

Differential Revision: https://phabricator.services.mozilla.com/D200130
2024-02-08 17:49:41 +00:00
Iulian Moraru db55ffffda Backed out 4 changesets (bug 1732306) for causing osx browser-a11y failures on browser_text_basics.js. CLOSED TREE
Backed out changeset 55e194f1c92d (bug 1732306)
Backed out changeset 44270ea2f53c (bug 1732306)
Backed out changeset e063d64d28a6 (bug 1732306)
Backed out changeset 1824083c6fc1 (bug 1732306)
2024-02-08 04:06:38 +02:00
Nathan LaPre 279469706f Bug 1732306 - Part 1: Implement emphasis role mappings, r=Jamie
This revision implements the mapping for the ARIA 1.2 emphasis role, which was
unsupported in Firefox until now. This change addresses a web platform test
failure. To accomplish this, the revision adds the WAI-defined role, adds a role
enum value, adds platform mappings, and adds a markup role mapping. The change
requires a new static atom for the word "emphasis," also added in this revision.
Finally, this change removes the expected wpt failure and updates other tests.

Differential Revision: https://phabricator.services.mozilla.com/D200130
2024-02-07 19:51:39 +00:00
Kelsey Gilbert 34cdfc4f86 Bug 1874226 - Use unique_ptr not Scoped in xpcom/*. r=xpcom-reviewers,necko-reviewers,valentin,emilio
Differential Revision: https://phabricator.services.mozilla.com/D200250
2024-02-07 18:30:22 +00:00
Kelsey Gilbert b2be0b2dcd Bug 1874226 - DebugFilesAutoLock to lock/unlock in ctor/dtor instead of via Scoped<> inheritance. r=xpcom-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D200249
2024-02-07 18:30:22 +00:00
Cathie Chen d7bb85c04b Bug 1878888 - Add the runtime flag and parsing for the blocking attribute, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D200810
2024-02-07 17:06:56 +00:00
Emilio Cobos Álvarez 2971047c81 Bug 1875100 - Propagate top level activeness automatically to top descendants. r=nika,tabbrowser-reviewers,mconley,extension-reviewers,robwu,geckoview-reviewers,owlish,kaya
For that, opt in tabbrowser and the shopping sidebar to manual
activeness management.

Differential Revision: https://phabricator.services.mozilla.com/D198942
2024-02-07 10:58:15 +00:00
Cristian Tuns 2d66624de2 Backed out changeset ecd780688279 (bug 1875100) for causing mochitest failures in test_suspend_media_by_inactive_docshell.html 2024-02-07 01:25:21 -05:00
Emilio Cobos Álvarez e68568b511 Bug 1875100 - Propagate top level activeness automatically to top descendants. r=nika,tabbrowser-reviewers,mconley,extension-reviewers,robwu,geckoview-reviewers,owlish
For that, opt in tabbrowser and the shopping sidebar to manual
activeness management.

Differential Revision: https://phabricator.services.mozilla.com/D198942
2024-02-06 21:47:37 +00:00
Emilio Cobos Álvarez e445a2bc43 Bug 1878108 - Replace custom MOZ_LIFETIME_BOUND with built-in. r=nika,glandium
The built-in version is better as it also allows annotating particular
parameters (it not only applies to method declarations).

Differential Revision: https://phabricator.services.mozilla.com/D200432
2024-02-06 13:00:39 +00:00
Jan de Mooij 8366c1d2b2 Bug 1877193 part 18 - Assert startup prefs are set before JS_Init*. r=mgaudet,necko-reviewers,valentin
Looking at bug 1877605 made me realize we should define better when (startup) prefs
are set exactly.

This patch adds assertions to check startup prefs can only be set before `JS_Init` and
also fixes the embeddings to follow this new rule. This makes the JS shell and browser
behavior more consistent, and makes it possible to rely on pref values during startup.

Differential Revision: https://phabricator.services.mozilla.com/D200148
2024-02-06 12:51:34 +00:00
pstanciu 1200f7991d Backed out 2 changesets (bug 1878108) for causing sm bustages in Attributes.h. CLOSED TREE
Backed out changeset 05e2d2bc1260 (bug 1878108)
Backed out changeset bb356c39c0e2 (bug 1878108)
2024-02-06 13:11:26 +02:00
Emilio Cobos Álvarez 02f7ec8f63 Bug 1878108 - Replace custom MOZ_LIFETIME_BOUND with built-in. r=nika,glandium
The built-in version is better as it also allows annotating particular
parameters (it not only applies to method declarations).

Differential Revision: https://phabricator.services.mozilla.com/D200432
2024-02-06 08:51:50 +00:00
Nathan LaPre 6b8a3f8047 Bug 1829028: Explicitly support term, definition ARIA roles, r=Jamie
This revision aims to add support for the 'term' and 'definition' ARIA roles.
These roles already exist in Gecko, but aren't fully mapped where they should
be. To address the problem, this revision adds a static atom for "definition,"
implements the ARIA map for definition, adds a markup map entry for the dfn
element (which has the DEFINITION role), and puts the term and definition atoms
in the role map. As a consequence of these changes, this revision also removes
the expected web platform test failures and updates other existing tests.

Differential Revision: https://phabricator.services.mozilla.com/D200219
2024-02-06 03:50:29 +00:00
Cosmin Sabou 66d12d2fff Backed out 2 changesets (bug 1874226) for causing bustages on dom/ContentParent.h. CLOSED TREE
Backed out changeset 3efd59369cd6 (bug 1874226)
Backed out changeset cd7b0bd12dae (bug 1874226)
2024-02-06 03:08:23 +02:00
Kelsey Gilbert c9e48e76b7 Bug 1874226 - Use unique_ptr not Scoped in xpcom/*. r=xpcom-reviewers,necko-reviewers,valentin,emilio
Differential Revision: https://phabricator.services.mozilla.com/D200250
2024-02-06 00:21:43 +00:00
Kelsey Gilbert 3462371168 Bug 1874226 - DebugFilesAutoLock to lock/unlock in ctor/dtor instead of via Scoped<> inheritance. r=xpcom-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D200249
2024-02-06 00:21:42 +00:00
Sergey Galich 17bea6506e Bug 286014 - removing unused DOMAutoComplete event r=credential-management-reviewers,issammani
Differential Revision: https://phabricator.services.mozilla.com/D200698
2024-02-05 21:48:40 +00:00
Emilio Cobos Álvarez f9f5d323e0 Bug 1877389 - Simplify Servo static atom setup. r=glandium,firefox-style-system-reviewers,zrhoffman
We hopefully don't hit bug 1517685 again.

Differential Revision: https://phabricator.services.mozilla.com/D199971
2024-01-30 23:30:31 +00:00
Paul Bone 3a813ca67c Bug 1867190 - Add prefs for PHC probablities r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D198652
2024-01-30 05:33:38 +00:00
Stephen A Pohl df5561e1e8 Bug 1752164: Don't fall back to our internal file protocol handler when macOS is prompting users to pick an app when opening a downloaded file. r=mstange,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D199347
2024-01-29 19:04:20 +00:00
Jens Stutte c4b00a432d Bug 1875621 - SlicedInputStream::Serialize should serialize the outer SlicedInputStream as a pipe in the efficient path. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D199852
2024-01-29 16:42:01 +00:00
Daniel Holbert cdc6455bd6 Bug 1876233: Mark nsTPromiseFlatString as a stack-only class. r=nika
No functional change.  This class is only meant to be instantiated as a
temporary object, and this annotation helps enforce that.

Differential Revision: https://phabricator.services.mozilla.com/D199561
2024-01-25 06:54:09 +00:00
Daniel Holbert a632083c3d Bug 1876233: Delete nsTPromiseFlatString's copy-constructor, to avoid clang -Wdeprecated-copy warning. r=nika
Reasons:
- The copy-constructor is never actually used.
- We already explicitly delete the reassignment operator for this class, which
  suggests this class is not really designed to be copied.
- There's not really any good reason for us to make copies of instances of this
  class, since this class is just meant to be a lightweight temporary wrapper
  to be used only-when-needed, and only at API boundaries to external or legacy
  functions.
- When the copy-constructor was used, it triggered a clang
  `-Wdeprecated-copy` build warning, for using the default copy constructor
  when the reassignment operator was non-default (explicitly deleted).

Differential Revision: https://phabricator.services.mozilla.com/D199383
2024-01-25 06:54:09 +00:00
Narcis Beleuzu 1e726a0e49 Backed out 3 changesets (bug 1867190) for bustages on PHC.cpp . CLOSED TREE
Backed out changeset ce5606473bf9 (bug 1867190)
Backed out changeset 3766cf32a308 (bug 1867190)
Backed out changeset 16ce5caa9557 (bug 1867190)
2024-01-25 07:58:11 +02:00
Paul Bone c665d103ee Bug 1867190 - Add prefs for PHC probablities r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D198652
2024-01-25 05:03:08 +00:00
Norisz Fay 935e67eb9f Backed out 2 changesets (bug 1875079) for causing bc failures on browser_menu_touch.js CLOSED TREE
Backed out changeset 015e7b62138b (bug 1875079)
Backed out changeset 3a62cca5ea26 (bug 1875079)
2024-01-22 20:01:57 +02:00
Kagami Sascha Rosylight e2ca74f825 Bug 1875079 - Part 1: Toggle touchmode from nsXULPopupManager r=desktop-theme-reviewers,dao,emilio
Differential Revision: https://phabricator.services.mozilla.com/D198801
2024-01-22 12:05:33 +00:00
Gabriele Svelto e825df6c3f Bug 1867233 - Rename IsAnnotationAllowlistedForPing() r=afranchuk
Differential Revision: https://phabricator.services.mozilla.com/D194976
2024-01-19 11:38:24 +00:00
Olli Pettay f1ad64a075 Bug 1874969 - Consider to use GetHeterogeneousCpuInfo when deciding how many background threads TaskController should have, r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D198745
2024-01-17 16:44:08 +00:00
Mike Hommey 1bf33f4f6d Bug 1874038 - Add Linux distro name and version to recorded system info. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D198219
2024-01-15 22:26:46 +00:00
Steve Fink ba7d3327fc Bug 1790873 - Move printf_stderr() to mozglue so it can be used within js/src r=glandium,nika
Differential Revision: https://phabricator.services.mozilla.com/D157354
2024-01-11 02:09:30 +00:00
Steve Fink 938a635e60 Bug 1790873 - Use stderr directly in printf_stderr rather than opening a separate file r=glandium,nika
Differential Revision: https://phabricator.services.mozilla.com/D166853
2024-01-11 02:09:30 +00:00
Stanca Serban 94288d3f1e Backed out 5 changesets (bug 1794063, bug 1790873) for causing Linux spidermonkey builds bustages in Printer.h. CLOSED TREE
Backed out changeset c729aa80e73e (bug 1794063)
Backed out changeset 442a0de27b61 (bug 1790873)
Backed out changeset 6934f2978802 (bug 1790873)
Backed out changeset 296f6da7b6ed (bug 1790873)
Backed out changeset 01ddb562d770 (bug 1790873)
2024-01-10 01:18:55 +02:00
Steve Fink fab3527be1 Bug 1790873 - Move printf_stderr() to mozglue so it can be used within js/src r=glandium,nika
Differential Revision: https://phabricator.services.mozilla.com/D157354
2024-01-09 22:46:00 +00:00
Steve Fink 9abb6aa75c Bug 1790873 - Use stderr directly in printf_stderr rather than opening a separate file r=glandium,nika
Differential Revision: https://phabricator.services.mozilla.com/D166853
2024-01-09 22:45:59 +00:00
Stephen A Pohl 41a9498074 Bug 1684897: Ensure that xpcom/io/CocoaFileUtils.mm uses NSAutoReleasePools. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D197607
2024-01-08 15:14:52 +00:00
Tomislav Jovanovic 30b4718430 Bug 1872969 - Avoid js keywords as argument names r=nika
Argument names in xpidl don't really matter, so this should be a no-op.

Differential Revision: https://phabricator.services.mozilla.com/D197640
2024-01-05 22:17:01 +00:00
Cristian Tuns e0933655b5 Backed out changeset fb5ff84b29bf (bug 1684897) for causing multiple OS X failures CLOSED TREE 2024-01-05 17:25:54 -05:00
Stephen A Pohl d41c3358de Bug 1684897: Ensure that xpcom/io/CocoaFileUtils.mm uses NSAutoReleasePools. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D197607
2024-01-05 19:30:22 +00:00
Oliver Medhurst 465206f92c Bug 1793560 - Remove navigate-to CSP directive r=tschuster
It has never shipped after being implemented years ago,
and was removed from spec in September 2022:
https://github.com/w3c/webappsec-csp/pull/564

Now skipping navigate-to WPT tests. Filed issue upstream for their future removal:
https://github.com/w3c/webappsec-csp/issues/608
Consensus seems to agree to remove, will do in follow up bug once landed.

Also removed our own tests.

Added a hack in StartDocumentLoad as just removing the navigate-to check call
breaks some inhertiance, see comment for more info.

Differential Revision: https://phabricator.services.mozilla.com/D181630
2024-01-03 16:43:12 +00:00
Lee Salzman b1d89237e5 Bug 1872327 - Don't leak runnables on shutdown in nsThreadPool. r=aosmond
It looks like this was an oversight in bug 1155059, that in one place an
already_AddRefed does not get converted to a RefPtr.

Differential Revision: https://phabricator.services.mozilla.com/D197374
2023-12-29 06:37:44 +00:00