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

106640 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey 407fae9455 Bug 1765474 - Fix unused-but-set-variable warning in OggDemuxer.cpp. r=media-playback-reviewers,padenot
dom/media/ogg/OggDemuxer.cpp:1905:7: error: variable 'hops' set but not used [-Werror,-Wunused-but-set-variable]
  int hops = 0;
      ^

Differential Revision: https://phabricator.services.mozilla.com/D144147
2022-04-22 01:25:08 +00:00
Mike Hommey 7ee709ee45 Bug 1765474 - Fix unused-but-set-variable warning in MIDIUtils.cpp. r=gsvelto
dom/midi/MIDIUtils.cpp:110:12: error: variable 'bytesRead' set but not used [-Werror,-Wunused-but-set-variable]
  uint32_t bytesRead = 0;
           ^

Differential Revision: https://phabricator.services.mozilla.com/D144140
2022-04-22 01:25:05 +00:00
Sean Feng 893710b672 Bug 1765866 - Update the BUG_COMPONENT for Performance APIs to DOM: Performance r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D144340
2022-04-22 00:27:38 +00:00
Zaggy1024 48766a7591 Bug 1765769 - Fix compilation errors with --disable-av1 set. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D144343
2022-04-21 23:21:41 +00:00
Sean Feng 698c05dab7 Bug 1734997 - Fix some failures related to the new interfaces that are introduced by the Scheduling API r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D133495
2022-04-21 18:47:53 +00:00
Sean Feng 7e68246bb0 Bug 1734997 - Allow some timeouts not to clamp in workers r=smaug
Depends on D133494

Differential Revision: https://phabricator.services.mozilla.com/D142948
2022-04-21 18:47:53 +00:00
Sean Feng 5042a856cf Bug 1734997 - Prototype the Prioritized Task Scheduling API r=smaug
Spec: https://wicg.github.io/scheduling-apis/

Differential Revision: https://phabricator.services.mozilla.com/D133494
2022-04-21 18:47:52 +00:00
Jim Blandy 94f2ec8fbe Bug 1755702: Return NOT_IMPLEMENTED from mozilla::webgpu::CanvasContext::GetInputStream. r=jgilbert
Continue to set the returned stream to `nullptr` (which callers do not
check for, but is safe), but return `NS_ERROR_NOT_IMPLEMENTED` instead
of `NS_OK` --- callers do check the `nsresult`.

Returning an `NS_FAILED` result from our `GetInputStream`
implementation causes `HTMLCanvasElement.prototype.toDataURL` to
return the fallback value `"data:,"`.

Differential Revision: https://phabricator.services.mozilla.com/D144242
2022-04-21 18:01:38 +00:00
David Parks c16c179c4c Bug 1764560: Disable mochitest bug418986-3 on Windows-e10s r=bobowen
The test hasn't been working properly.  The timing of the IPDL message PBrowser::ChildToParentMatrix is often too late for the test -- it will have already computed and compared invalid "device" coordinates.  Disabling the test while we figure this out.

Differential Revision: https://phabricator.services.mozilla.com/D144318
2022-04-21 18:00:18 +00:00
Lee Salzman cc5a1729f6 Bug 1765162 - Fix leak in GlyphCacheEntry. r=aosmond
GlyphBuffer was getting allocated but never destroyed.
This adds a destructor that fixes that.

Differential Revision: https://phabricator.services.mozilla.com/D143917
2022-04-21 17:59:45 +00:00
Cosmin Sabou 512562821f Backed out 16 changesets (bug 1752332) for causing unrooted hazard failures. CLOSED TREE
Backed out changeset 1e57c99c133b (bug 1752332)
Backed out changeset 090719a92e33 (bug 1752332)
Backed out changeset c9c556d2f676 (bug 1752332)
Backed out changeset 1ca918455158 (bug 1752332)
Backed out changeset 1e3858df144d (bug 1752332)
Backed out changeset 33fb4d7c0f3c (bug 1752332)
Backed out changeset 6320b4b3d12d (bug 1752332)
Backed out changeset 322bbf59820a (bug 1752332)
Backed out changeset fe8f3e1c43b0 (bug 1752332)
Backed out changeset e5d5d24b0f3b (bug 1752332)
Backed out changeset f48f4c1b0784 (bug 1752332)
Backed out changeset 61b6a151b215 (bug 1752332)
Backed out changeset 0e70bf8ca3e4 (bug 1752332)
Backed out changeset 2dadbfd0b1d7 (bug 1752332)
Backed out changeset ce9e1254e82f (bug 1752332)
Backed out changeset 3ce1d0529b34 (bug 1752332)
2022-04-21 21:33:03 +03:00
Boris Chiou 8e54e21d3a Bug 1737918 - Part 4: Implement scroll() in layout and support nearest scroller. r=emilio
There is a known issue: if we change overflow property of the
scroll-container, we may have to update the scroll-linked animations of
its descendants. This may be very tricky, so I filled Bug 1765211 for it.

Differential Revision: https://phabricator.services.mozilla.com/D143420
2022-04-21 17:05:19 +00:00
Boris Chiou 3efc8e6e9c Bug 1737918 - Part 3: Replace Scroller::Type with StyleScroller. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D143419
2022-04-21 17:05:18 +00:00
Boris Chiou 8efa1324d7 Bug 1737918 - Part 2: Replace StyleScrollDirection with StyleAxis. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D143418
2022-04-21 17:05:18 +00:00
Chun-Min Chang 1ed9f039d3 Bug 1765627 - Make sure {Disc, C}onnectDeviceInput are correctly called r=padenot
Add some assertions to make sure the ConnectDeviceInput and
DisconnectDeviceInput are called at the right time.

Differential Revision: https://phabricator.services.mozilla.com/D144218
2022-04-21 16:09:58 +00:00
Jens Stutte cdac43d50c Bug 1764251: Avoid race between process creation callback and application shutdown. r=smaug
Before this patch we would add the shutdown blockers in `ContentParent::Init`. This had two downsides:

1. The blockers were added each time we recycled an existing process again.
2. The time period between creating a new process and using it was not covered by shutdown blockers at all.

This patch anticipates the addition of the shutdown blockers to the very beginning of `ContentParent`'s lifetime, ensuring that it happens only once and that they will be removed also in case of process creation failures.
Shutdown blockers are now only added inside `BeginSubprocessLaunch` and removed in `LaunchSubprocessReject`, `ActorDestroy` or `KillHard` - that is at the very beginning and the very end of the process' life.

Differential Revision: https://phabricator.services.mozilla.com/D143711
2022-04-21 14:34:12 +00:00
Tom Ritter 735f58c46f Bug 1752332: Remove the shouldSanitizeFunction member r=KrisWright
In the following patch we are going to change the signature of
ShouldSanitizePreference to take a Pref object.  Pref is only
known to the Preferences compilation unit; so to keep this member
(whose signature will change) we would need to expose the Pref
class. However it will only be a forward declaration, one could
not construct a Pref object in e.g. the gtest.

It is simpler to just remove the member entirely and call
ShouldSanitizePreference unconditionally - the member was only
used for the gtest, and while the gtest will be less robust
because of this change, it will still do some testing.

Depends on D141419

Differential Revision: https://phabricator.services.mozilla.com/D141420
2022-04-21 13:22:51 +00:00
Tom Ritter 1b7e20d742 Bug 1752332: Add preferences that control whether we send user data and/or crash r=KrisWright
Depends on D141418

Differential Revision: https://phabricator.services.mozilla.com/D141419
2022-04-21 13:22:50 +00:00
Tom Ritter 75768c0672 Bug 1752332: Make SerializePreferences correctly sanitize preferences r=KrisWright,necko-reviewers,dragana
To do the correct thing in Preferences::SerializePreferences
(which is used during subprocess startup) we need to know if
the destination process is a web content process or not.
We add parameters to
SharedPreferenceSerializer::SerializeToSharedMemory that let
us figure that out.

In Preferences::SerializePreferences we fix the call to
aShouldSanitizeFn to pass the correct destination.

Depends on D141415

Differential Revision: https://phabricator.services.mozilla.com/D141416
2022-04-21 13:22:49 +00:00
Tom Ritter 9334d4f749 Bug 1752332: Remove the blocklisting check in ::OnPreferenceChange r=KrisWright
Now that we send everything (except sometimes the user value
is sanitized) we should no longer perform this check.

This is also good because it eliminates security code you
have to have (and thus accidently omitting it is a
vulnerability) and changes it to security code that happens
automatically, and is enforced by the compiler (via mandatory
ctor argument.)

Depends on D141414

Differential Revision: https://phabricator.services.mozilla.com/D141415
2022-04-21 13:22:49 +00:00
Tom Ritter 97452fcc53 Bug 1752332: Correctly populate the sanitized bit for PreferenceUpdate r=KrisWright
PreferenceUpdate is the IPC message notifying a child process
that a preference has been updated. To correctly decide whether
or not a value should be sanitized in it, we need to know
what type of destination process it is; we add parameters to
Preferences::GetPreference indicating that.

Inside of ToDomPref we call ShouldSanitizePreference to
correctly populate the sanitized bit.

Depends on D141412

Differential Revision: https://phabricator.services.mozilla.com/D141413
2022-04-21 13:22:48 +00:00
Tom Ritter 9546954a23 Bug 1752332: Rename ShouldSyncPreference to ShouldSanitizePreference r=KrisWright
This simplifies the number of negations needed,
and makes things easy to understand. I think
anyway; I know that without renaming it I made
several annoying-to-diagnose negation errors...

Depends on D141411

Differential Revision: https://phabricator.services.mozilla.com/D141412
2022-04-21 13:22:48 +00:00
Tom Ritter e05da6fb4c Bug 1752332: Tell ShouldSyncPreference if the destination is a web content process r=KrisWright
A couple places where it might be a web content process
still pass 'false' - this will be corrected in a later
patch.

Depends on D141410

Differential Revision: https://phabricator.services.mozilla.com/D141411
2022-04-21 13:22:47 +00:00
Tom Ritter b662df4c61 Bug 1752332: Move ShouldSyncPreferences to Preferences module r=KrisWright
Depends on D141409

Differential Revision: https://phabricator.services.mozilla.com/D141410
2022-04-21 13:22:47 +00:00
Tom Ritter b7307088a9 Bug 1752332: Rename references to parent-only pref structures r=KrisWright
We're going to be using them in more contexts, so generalize
the name.

Depends on D141408

Differential Revision: https://phabricator.services.mozilla.com/D141409
2022-04-21 13:22:47 +00:00
Tom Ritter bb04bf6564 Bug 1752332: Add a sanitized property to prefs r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D141408
2022-04-21 13:22:46 +00:00
Edgar Chen b15ceeb12c Bug 1745915 - Add test for resizing a fullscreen window; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D133742
2022-04-21 11:49:13 +00:00
Peter Van der Beken 4ea21227e2 Bug 1271960 - Better clean up of linked lists. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D144203
2022-04-21 11:13:11 +00:00
Iulian Moraru 23f3db7957 Backed out changeset 3399a9be4b03 (bug 1764112) for causing mda crashes on test_abort.html. CLOSED TREE 2022-04-21 14:08:00 +03:00
Yulia Startsev 7b6ada3766 Bug 1763586 - Remove Element from LoadScript and child classes; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D143139
2022-04-21 09:53:34 +00:00
Yulia Startsev 9c4d96a57d Bug 1763586 - Adjust ScriptFetchOptions to be more accurate; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D143137
2022-04-21 09:53:33 +00:00
Olli Pettay 1c0ec158ee Bug 1764112, ensure there is a reasonable SpeechRecognition object around when handling SpeechEvents, r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D143455
2022-04-21 09:16:21 +00:00
Iulian Moraru 746c2cdf29 Backed out changeset 5e7f9f410081 (bug 1271960) for causing bp-hybrid bustages. CLOSED TREE 2022-04-21 12:20:03 +03:00
Olli Pettay ae68ae2e2e Bug 1761728, MaybeDiscarded::IsNull doesn't mean the value isn't null, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D144003
2022-04-21 08:56:25 +00:00
Peter Van der Beken 0c7c343bf7 Bug 1271960 - Better clean up of linked lists. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D144203
2022-04-21 07:04:24 +00:00
Masayuki Nakano 1cc969671c Bug 1758420 - part 2: Clean up update timing of `TextComposition` r=m_kato
Currently, it's done at creating `CompositionTransaction`, not after executing
it.  Let's clean it up now.

Differential Revision: https://phabricator.services.mozilla.com/D141194
2022-04-21 03:37:56 +00:00
Masayuki Nakano 5c4fed5f9d Bug 1758420 - part 1: Let `TextComposition` know where is changed in storing text node r=m_kato
`IMEContentObserver` observes the text node change which contains the current
composition string.  Therefore, it can let `TextComposition` know where is
updated by web apps and adjust offset and length in the text node.

Differential Revision: https://phabricator.services.mozilla.com/D141193
2022-04-21 03:37:56 +00:00
Noemi Erli 560b5ccdb5 Backed out 4 changesets (bug 1737918) for causing bustages in ScrollTimeline.cpp CLOSED TREE
Backed out changeset cecdd071c1aa (bug 1737918)
Backed out changeset fcc5ecd364e4 (bug 1737918)
Backed out changeset f7bf3143e4a7 (bug 1737918)
Backed out changeset a143d2e54fb9 (bug 1737918)
2022-04-21 01:21:14 +03:00
Andrew McCreight 5ec46e3cef Bug 1764370 - Use NS_GET_IID instead of NS_DEFINE_IID for PRIVATE_IDBREQUEST_IID. r=dom-workers-and-storage-reviewers,asuth
Create a new fake class so that NS_GET_IID can be used instead of
NS_DEFINE_IID.

Differential Revision: https://phabricator.services.mozilla.com/D143509
2022-04-20 21:09:27 +00:00
Cristian Tuns 467d2abfd0 Backed out 16 changesets (bug 1752332) for causing gtest failures CLOSED TREE
Backed out changeset 2523f5463789 (bug 1752332)
Backed out changeset 8d2932869cbd (bug 1752332)
Backed out changeset 7d159898e81d (bug 1752332)
Backed out changeset 5b9bbe252fec (bug 1752332)
Backed out changeset aeb79413e987 (bug 1752332)
Backed out changeset c184c517de91 (bug 1752332)
Backed out changeset 1bc4f1780f37 (bug 1752332)
Backed out changeset 2b78f295d903 (bug 1752332)
Backed out changeset 21f015b60220 (bug 1752332)
Backed out changeset a74095dfe3da (bug 1752332)
Backed out changeset 4b04bf33486e (bug 1752332)
Backed out changeset 8566711743a8 (bug 1752332)
Backed out changeset eec507d87b2b (bug 1752332)
Backed out changeset ef50d2618c7f (bug 1752332)
Backed out changeset 1b4d316e7f20 (bug 1752332)
Backed out changeset e40a778cb93f (bug 1752332)
2022-04-20 17:23:11 -04:00
Boris Chiou 512b4a3fb3 Bug 1737918 - Part 4: Implement scroll() in layout and support nearest scroller. r=emilio
There is a known issue: if we change overflow property of the
scroll-container, we may have to update the scroll-linked animations of
its descendants. This may be very tricky, so I filled Bug 1765211 for it.

Differential Revision: https://phabricator.services.mozilla.com/D143420
2022-04-20 20:28:53 +00:00
Boris Chiou 0567aa6b83 Bug 1737918 - Part 3: Replace Scroller::Type with StyleScroller. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D143419
2022-04-20 20:28:53 +00:00
Boris Chiou 53830b1b34 Bug 1737918 - Part 2: Replace StyleScrollDirection with StyleAxis. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D143418
2022-04-20 20:28:53 +00:00
Tom Ritter 3313c98eaf Bug 1752332: Remove the shouldSanitizeFunction member r=KrisWright
In the following patch we are going to change the signature of
ShouldSanitizePreference to take a Pref object.  Pref is only
known to the Preferences compilation unit; so to keep this member
(whose signature will change) we would need to expose the Pref
class. However it will only be a forward declaration, one could
not construct a Pref object in e.g. the gtest.

It is simpler to just remove the member entirely and call
ShouldSanitizePreference unconditionally - the member was only
used for the gtest, and while the gtest will be less robust
because of this change, it will still do some testing.

Depends on D141419

Differential Revision: https://phabricator.services.mozilla.com/D141420
2022-04-20 20:21:47 +00:00
Tom Ritter 59092e70b4 Bug 1752332: Add preferences that control whether we send user data and/or crash r=KrisWright
Depends on D141418

Differential Revision: https://phabricator.services.mozilla.com/D141419
2022-04-20 20:21:47 +00:00
Tom Ritter 43277d4358 Bug 1752332: Make SerializePreferences correctly sanitize preferences r=KrisWright,necko-reviewers,dragana
To do the correct thing in Preferences::SerializePreferences
(which is used during subprocess startup) we need to know if
the destination process is a web content process or not.
We add parameters to
SharedPreferenceSerializer::SerializeToSharedMemory that let
us figure that out.

In Preferences::SerializePreferences we fix the call to
aShouldSanitizeFn to pass the correct destination.

Depends on D141415

Differential Revision: https://phabricator.services.mozilla.com/D141416
2022-04-20 20:21:46 +00:00
Tom Ritter 80d036e297 Bug 1752332: Remove the blocklisting check in ::OnPreferenceChange r=KrisWright
Now that we send everything (except sometimes the user value
is sanitized) we should no longer perform this check.

This is also good because it eliminates security code you
have to have (and thus accidently omitting it is a
vulnerability) and changes it to security code that happens
automatically, and is enforced by the compiler (via mandatory
ctor argument.)

Depends on D141414

Differential Revision: https://phabricator.services.mozilla.com/D141415
2022-04-20 20:21:45 +00:00
Tom Ritter 1cc103189e Bug 1752332: Correctly populate the sanitized bit for PreferenceUpdate r=KrisWright
PreferenceUpdate is the IPC message notifying a child process
that a preference has been updated. To correctly decide whether
or not a value should be sanitized in it, we need to know
what type of destination process it is; we add parameters to
Preferences::GetPreference indicating that.

Inside of ToDomPref we call ShouldSanitizePreference to
correctly populate the sanitized bit.

Depends on D141412

Differential Revision: https://phabricator.services.mozilla.com/D141413
2022-04-20 20:21:44 +00:00
Tom Ritter e9bd1a1b96 Bug 1752332: Rename ShouldSyncPreference to ShouldSanitizePreference r=KrisWright
This simplifies the number of negations needed,
and makes things easy to understand. I think
anyway; I know that without renaming it I made
several annoying-to-diagnose negation errors...

Depends on D141411

Differential Revision: https://phabricator.services.mozilla.com/D141412
2022-04-20 20:21:44 +00:00
Tom Ritter a7e00d1b86 Bug 1752332: Tell ShouldSyncPreference if the destination is a web content process r=KrisWright
A couple places where it might be a web content process
still pass 'false' - this will be corrected in a later
patch.

Depends on D141410

Differential Revision: https://phabricator.services.mozilla.com/D141411
2022-04-20 20:21:44 +00:00