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

108819 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 03925ada26 Bug 1785322 - Add a use comment to remind people that new use-counters need data-r. r=saschanaz DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D154933
2022-08-17 20:23:06 +00:00
Marian-Vasile Laza 857f78b411 Backed out 7 changesets (bug 1765480) for causing build bustages on config.h. CLOSED TREE
Backed out changeset 5403acde30c2 (bug 1765480)
Backed out changeset 7176e2a3b1a0 (bug 1765480)
Backed out changeset a54225be60ac (bug 1765480)
Backed out changeset 50b0534f07a5 (bug 1765480)
Backed out changeset 104a811c42e5 (bug 1765480)
Backed out changeset 7e2ce67588d3 (bug 1765480)
Backed out changeset 6077ae857148 (bug 1765480)
2022-08-17 20:53:08 +03:00
Paul Adenot 6b7edc6cf9 Bug 1765480 - "send" before "receive"-ing when decoding audio using ffmpeg. r=alwu
This is what the documentation says we should be doing (and it's clearly the
right thing to do). We miss decoding a packet otherwise.

Depends on D150974

Differential Revision: https://phabricator.services.mozilla.com/D150975
2022-08-17 16:29:34 +00:00
Paul Adenot c007418c08 Bug 1765480 - Switch in-tree FFVPX PDM to use header from version 59. r=alwu
Depends on D151996

Differential Revision: https://phabricator.services.mozilla.com/D150974
2022-08-17 16:29:34 +00:00
Paul Adenot 0ebe2e3519 Bug 1780150 - Test that a muted media element with an audio track never has currentTime exceeding its duration. r=alwu
Depends on D152405

Differential Revision: https://phabricator.services.mozilla.com/D152406
2022-08-17 13:05:37 +00:00
Paul Adenot 751290ed0b Bug 1780150 - Cap currentTime to the end time of the last packet when a video with an audio track is muted. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D152405
2022-08-17 13:05:36 +00:00
Emilio Cobos Álvarez c34fbf90e8 Bug 1785231 - Cleanup a bit Document.cpp. r=edgar
Remove useless this->, which are not common anywhere else.

No behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D154887
2022-08-17 12:37:05 +00:00
Andreas Pehrson aa1236111a Bug 1785030 - Pre-load oleaut32.dll for fake-cdm in GMP. r=media-playback-reviewers,bobowen,padenot
This patch helps with a high rate of crashes on windows x86, where the GMP
process crashes after _exit(0) while trying to delay-load oleaut32.dll.

Differential Revision: https://phabricator.services.mozilla.com/D154787
2022-08-17 11:53:42 +00:00
Emilio Cobos Álvarez 9897cb6fe5 Bug 1781096 - Fix decoding="sync" when the frame is created after the image attribute. r=tnikkel
The fix is the one line in
nsImageLoadingContent::MaybeForceSyncDecoding, but I added new asserts
that should prevent this from regressing in the future.

Differential Revision: https://phabricator.services.mozilla.com/D154815
2022-08-17 10:10:26 +00:00
Gerald Squelart 4326b92ea7 Bug 1784812 - Use common JSONWriteFuncs when writing to a string - r=canaltinova,media-playback-reviewers,alwu
Most users of JSONWriter want to fill a string, so instead of having all these
similar implementations, we now have central reusable implementations:
- JSONStringWriteFunc contains a string and writes to it.
- JSONStringRefWriteFunc references a string and writes to it. This is most
  useful when the string already exists somewhere, or needs to be returned from
  a function (so we avoid another conversion when returning).

Differential Revision: https://phabricator.services.mozilla.com/D154618
2022-08-17 07:07:54 +00:00
Gerald Squelart eb90b3b175 Bug 1784812 - JSONWriter may optionally not own its writer - r=canaltinova
mWriter is now a reference, and the ownership is optional through a separate
member variable that could stay null.
User can now choose to keep the JSONWriteFunc on their stack, which saves a
heap allocation, and makes it easier to access the concrete JSONWriteFunc
implementation directly (instead of through WriteFunc()).

Differential Revision: https://phabricator.services.mozilla.com/D154617
2022-08-17 07:07:53 +00:00
Brad Werth 74c5332174 Bug 1777264 Part 6: Add a chrome test of HDR telemetry. r=media-playback-reviewers,alwu
This test will only pass on platform that accurately report the color
depth in their VideoInfo structures. Presently that is only macOS, so the
test has a conditional task that only runs on macOS.

Differential Revision: https://phabricator.services.mozilla.com/D153284
2022-08-17 06:50:52 +00:00
Brad Werth f431a8f9f7 Bug 1777264 Part 5: Define and emit VIDEO_HDR_PLAY_TIME_MS. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D152820
2022-08-17 06:50:52 +00:00
Brad Werth 9af975d943 Bug 1777264 Part 4: Make TelemetryProbesReporter track play time of HDR video. r=media-playback-reviewers,alwu
This doesn't seperately track whether or not the HDR video is visible, as
we do for video generally.

Differential Revision: https://phabricator.services.mozilla.com/D152819
2022-08-17 06:50:52 +00:00
Brad Werth 8d95a0c511 Bug 1777264 Part 2: Update VideoInfo color depth with information from decoded frames. r=media-playback-reviewers,alwu
Some information that VideoInfo needs is not available from the metadata
header. This change makes it so that VideoInfo structure is updated with
color depth information from the VideoData Image as frames come in.

Each Image implementation is responsible for returning the correct
GetColorDepth value. The virtual implementation returns COLOR_8, which
matches the existing default value in VideoData.

Differential Revision: https://phabricator.services.mozilla.com/D153282
2022-08-17 06:50:51 +00:00
Brad Werth e9e82d1721 Bug 1777264 Part 1: Make MediaDecoder aware of changed TrackInfo as it changes. r=alwu
When TrackInfo changes in the MediaFormatReader, this ensures that MediaDecoder
has the same information.

Differential Revision: https://phabricator.services.mozilla.com/D153815
2022-08-17 06:50:50 +00:00
Iulian Moraru 859487ba6b Backed out 4 changesets (bug 1784812) for causing build bustages on DDMediaLogs. CLOSED TREE
Backed out changeset c9998c927079 (bug 1784812)
Backed out changeset d2568bc2f8a6 (bug 1784812)
Backed out changeset 9f01bf89c583 (bug 1784812)
Backed out changeset d8506496d8f2 (bug 1784812)
2022-08-17 05:48:36 +03:00
Adam Vandolder 81c2706200 Bug 1774155 - Avoid copying data URI specs in deprecation warning. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D154692
2022-08-17 02:18:22 +00:00
Gerald Squelart 253bb5dc48 Bug 1784812 - Use common JSONWriteFuncs when writing to a string - r=canaltinova,media-playback-reviewers,alwu
Most users of JSONWriter want to fill a string, so instead of having all these
similar implementations, we now have central reusable implementations:
- JSONStringWriteFunc contains a string and writes to it.
- JSONStringRefWriteFunc references a string and writes to it. This is most
  useful when the string already exists somewhere, or needs to be returned from
  a function (so we avoid another conversion when returning).

Depends on D154617

Differential Revision: https://phabricator.services.mozilla.com/D154618
2022-08-16 22:57:49 +00:00
Gerald Squelart 722fbce3cc Bug 1784812 - JSONWriter may optionally not own its writer - r=canaltinova
mWriter is now a reference, and the ownership is optional through a separate
member variable that could stay null.
User can now choose to keep the JSONWriteFunc on their stack, which saves a
heap allocation, and makes it easier to access the concrete JSONWriteFunc
implementation directly (instead of through WriteFunc()).

Depends on D154616

Differential Revision: https://phabricator.services.mozilla.com/D154617
2022-08-16 22:57:49 +00:00
Rob Wu a4f8ce604c Bug 1782816 - Introduce test.assertDeepEq r=rpl,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D153531
2022-08-16 20:06:37 +00:00
Lee Salzman 98afe660d7 Bug 1784910 - Render bitmap fonts as light-on-dark text. r=aosmond
When we are rendering dark-on-light text, we invert the bitmap after
rendering to produce a standard white-on-black mask, since we must actually
render that as black-on-white to get CoreText to produce the correct dilation.

However, when we know we're rendering bitmap fonts for emoji, we don't actually
want this inversion to happen at all. So we need to ensure bitmaps go through
the normal light-on-dark path that doesn't do this.

Differential Revision: https://phabricator.services.mozilla.com/D154777
2022-08-16 16:49:10 +00:00
Andreas Farre e6bdbb5f03 Bug 1595491 - Part 2: Adapt test files to <embed> and <object> behaving more like <iframe>. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D148118
2022-08-16 16:42:59 +00:00
Andreas Farre 4b493b6a30 Bug 1595491 - Part 1: Make <embed> and <object> behave more like <iframe>. r=smaug,emilio
By making image loading in <embed> and <object> behave more like when
an <iframe> loads an image, we can make sure that the synthetic
document generated is process switched if the image is cross
origin. This is done by making image loading in nsObjectLoadingContent
follow the document loading path.

We also make sure that we pass the image size back to the embedder
element to not get stuck with the intrinsic size.

To avoid named targeting being able to target these synthetic
documents, as well as showing up in `Window.frames` and being counted
in `Window.length`, we keep a filtered list of non-synthetic browsing
contexts for that use-case.

This feature is controlled by two prefs:

* browser.opaqueResponseBlocking.syntheticBrowsingContext

  This triggers the creation of synthetic documents for images loaded
  in <object> or embed.

* browser.opaqueResponseBlocking.syntheticBrowsingContext.filter

  This turns on the filtering of synthetic browsing contexts in named
  targeting, `Window.length` and `Window.frames`.

Differential Revision: https://phabricator.services.mozilla.com/D148117
2022-08-16 16:42:58 +00:00
Nicolas Silva 0f41553847 Bug 1780051 - Avoid crashing when taking an invalid array buffer in writeBuffer. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D154533
2022-08-16 14:03:27 +00:00
Tim Huang 4bcf9694bb Bug 1746349 - Stop considering document.domain when deciding if we need to reset the window name. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D143994
2022-08-16 12:40:09 +00:00
Cristian Tuns 51db164284 Backed out 2 changesets (bug 1780150) for causing build bustages on AudioSinkWrapper.h CLOSED TREE
Backed out changeset d060eced6ecf (bug 1780150)
Backed out changeset 9c2c6af6a7cf (bug 1780150)
2022-08-16 08:45:40 -04:00
Paul Adenot b24d32bcb7 Bug 1780150 - Test that a muted media element with an audio track never has currentTime exceeding its duration. r=alwu
Depends on D152405

Differential Revision: https://phabricator.services.mozilla.com/D152406
2022-08-16 12:31:28 +00:00
Paul Adenot 33d6b2bc65 Bug 1780150 - Cap currentTime to the end time of the last packet when a video with an audio track is muted. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D152405
2022-08-16 12:31:28 +00:00
Andi-Bogdan Postelnicu 5981839b9a Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
Updated with rustfmt 1.5.1-stable (4b91a6e 2022-08-08)
# ignore-this-changeset

Depends on D154661

Differential Revision: https://phabricator.services.mozilla.com/D154662
2022-08-16 07:08:28 +00:00
Andi-Bogdan Postelnicu eeac3728d2 Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium
Updated with clang-format version 14.0.5 (taskcluster-DydCt-ryTuKvBYw1HQOugw)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D154661
2022-08-16 07:08:27 +00:00
Lee Salzman 2ba1202314 Bug 1784315 - Ensure the clipping applied to glyph cache entries matches. r=aosmond,gfx-reviewers
If viewport clipping is applied to the bounds of glyphs, we can end up finding the
wrong entry if the clipping would differ, since we no longer compare the bounds to
the entry bounds when searching for a matching entry in an effort to reduce the
amount of bounds computations in the common case.

To workaround this, each entry now remembers its full, unclipped bounds. Upon
finding a candidate entry, we offset the full bounds to the new offset and reapply
clipping. If the bounds then match with the old clipped bounds with the new offset
applied, then we know the amount of applied clipping is the same, and it is safe
to reuse the entry.

Differential Revision: https://phabricator.services.mozilla.com/D154490
2022-08-16 03:05:45 +00:00
Masayuki Nakano d47a6b9cd9 Bug 1770161 - Make `Element::PostHandleEventForLinks` stop setting focus to it at `mousedown` when its descendant editable element will get focus r=smaug
If `<a href="...">` element has editable elements and clicked in it, focus will
be moved to the editing host of the clicked element.  Therefore,
`Element::PostHandleEventForLinks` shouldn't set focus to the link element in
the case.

Differential Revision: https://phabricator.services.mozilla.com/D154363
2022-08-16 02:00:58 +00:00
Andrew Osmond 5b2fd01232 Bug 1783309 - Convert OffscreenCanvas domain allowlist pref to DataMutexString. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D153831
2022-08-16 01:00:23 +00:00
Andrew Osmond 8d1323b0e8 Bug 1782722 - Make WebGL override unmasked renderer/vendor pref accesses thread safe. r=gfx-reviewers,lsalzman,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D153469
2022-08-16 01:00:22 +00:00
mleclair 4e3546243c Bug 1774693: Added Set-Cookie as forbidden header name r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D154663
2022-08-15 23:13:58 +00:00
Edgar Chen 679f4cf339 Bug 1755863 - Part 4: Use async nsClipboard API to implement clipboard.readText(); r=NeilDeakin,mbrodesser
Depends on D145379

Differential Revision: https://phabricator.services.mozilla.com/D145380
2022-08-15 20:27:28 +00:00
Edgar Chen 99e4c1d99c Bug 1755863 - Part 3-2: Use async nsClipboard API to implement clipboard.read(); r=NeilDeakin,nika
Async clipboard API used to have same capability as DataTransfer for clipobard
read operation. But after this patch, we intent to use the nsIClipboard service
directly in async clipboard, which also includes some changes on mime types support
for read operation. Now async clipboard read supports only built-in types, i.e.
text/plain, text/html and image/png. This also align with other browsers.

Depends on D150164

Differential Revision: https://phabricator.services.mozilla.com/D145379
2022-08-15 20:27:27 +00:00
Edgar Chen 122eb1bdf1 Bug 1755863 - Part 3-1: Make ItemEntry a reference counted object; r=nika
In D145379, ItemEntry will be used in lambda capture, it is much safer to make
it a reference counted object to ensue the captured object lives long enough.

Depends on D152516

Differential Revision: https://phabricator.services.mozilla.com/D150164
2022-08-15 20:27:26 +00:00
Edgar Chen 3e5030eb96 Bug 1755863 - Part 2: Add async API/IPC for getting matching data flavors from clipboard; r=nika,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D152516
2022-08-15 20:27:26 +00:00
Butkovits Atila ae6a677e52 Backed out changeset 7538d23ee88e (bug 1767262) for causing failures at content-visibility-081.html. CLOSED TREE 2022-08-15 20:37:49 +03:00
Martin Robinson 1cf715eb0d Bug 1767262 - Lazily layout content that is hidden via `content-visibility: hidden` r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D145949
2022-08-15 16:18:43 +00:00
Tom Schuster b7a20e09d8 Bug 1770094 r=freddyb,emilio
Differential Revision: https://phabricator.services.mozilla.com/D154518
2022-08-15 14:41:10 +00:00
Dan Robertson 27907e8f9a Bug 1771423 - Set Content-Type to an empty string for an empty blob with no type. r=kershaw,smaug,necko-reviewers
Set the Content-Type to an empty string for an blob when the type was not
given. Ensure that the channel Content-Type is not overriden in the case
that it was previously set and the blob type is not valid.

Depends on D147568

Differential Revision: https://phabricator.services.mozilla.com/D147481
2022-08-15 13:52:12 +00:00
Jan-Niklas Jaeschke 2ee3afc7f2 Bug 1784303 - Fixed crashtest from Bug 1700237. r=smaug
This bug fixes issues introduced in Bug 1700237 where the crashtest caused an infinite loop of JS exceptions.

Differential Revision: https://phabricator.services.mozilla.com/D154491
2022-08-15 12:23:30 +00:00
Marian-Vasile Laza bab4a983d9 Backed out changeset 3849f10b5154 (bug 1770094) requested by the dev - patch is incomplete. CLOSED TREE 2022-08-15 12:34:02 +03:00
Frederic Wang 3c65c69660 Bug 1783995 - Remove MathML preference deprecated_menclose_notation_radical. r=emilio
- Remove the preference and corresponding tests.
- nsMathMLmencloseFrame continues to implement the radical notation for
  now, since it's still used by nsMathMLmsqrtFrame. Ideally, we should
  refactor our code so that msqrt/mroot share the same implementation.

Differential Revision: https://phabricator.services.mozilla.com/D154194
2022-08-15 08:55:50 +00:00
Tom Schuster 8b61fb65a2 Bug 1770094 r=freddyb,emilio
Differential Revision: https://phabricator.services.mozilla.com/D154518
2022-08-15 08:19:06 +00:00
Marian-Vasile Laza d0b3c95cc2 Backed out 2 changesets (bug 1781728) for causing bustages on WebGLTexture.cpp. CLOSED TREE
Backed out changeset 94e7a44f0d16 (bug 1781728)
Backed out changeset 985d9726a7f6 (bug 1781728)
2022-08-15 09:33:13 +03:00
Paul Bone 4bdb2927d4 Bug 1781728 - Fix code style r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D154525
2022-08-15 03:48:48 +00:00