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

95966 Коммитов

Автор SHA1 Сообщение Дата
Razvan Maries c8e604eb78 Backed out 4 changesets (bug 1660970, bug 1525854, bug 1663657, bug 1645108) for perma failures on test_trr_additional_section.js. CLOSED TREE
Backed out changeset ad6c2e8af09b (bug 1663657)
Backed out changeset 419e26e3f452 (bug 1525854)
Backed out changeset 55bf856faf33 (bug 1660970)
Backed out changeset c543a3a008fa (bug 1645108)
2020-09-15 02:35:05 +03:00
Barret Rennie f74cb16fd0 Bug 1657188 - Implement rel=preload load time telemetry r=Dexter,emilio,nika
Differential Revision: https://phabricator.services.mozilla.com/D86074
2020-09-14 21:03:52 +00:00
Valentin Gosu 6d149e6e7a Bug 1663657 - Turn IsIpAddr* functions into NetAddr methods r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D89552
2020-09-14 12:06:27 +00:00
Michael Froman 01b4f3072c Bug 1664519 - move media/webrtc/signaling/fuzztest to dom/media/webrtc/tests/fuzztests. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D90127
2020-09-14 18:47:36 +00:00
Kagami Sascha Rosylight f949ec8d28 Bug 1664514 - Proper null checks in CORS/fetch r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D89960
2020-09-14 18:36:25 +00:00
Doug Thayer 025f5fb9f0 Bug 1656261 - Back out all recent StartupCache work r=RyanVM
This backs out all work from bug 1627075 as well as all of its
descendents. There were a few conflicts when backing this out but
overall it was pretty clean, so I would say it's a fairly mild
level of risk. Historically Nathan Froyd has reviewed these patches,
but he is no longer at Mozilla, and no one else is particularly
familiar with the code, so I am passing this off to RyanVM who has
at least been familiar with the history of the bug.

Differential Revision: https://phabricator.services.mozilla.com/D90096
2020-09-14 17:00:53 +00:00
Kashav Madan 71ab95351c Bug 1664575 - Null check navigator in ContentPlaybackController::GetMediaSession, r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D89974
2020-09-14 16:23:55 +00:00
Cristina Coroiu ca591bd0d6 Backed out changeset 633d2aa345a3 (bug 1664514) fro crashtest failures at dom/fetch/tests/crashtests/1664514.html on a CLOSED TREE 2020-09-14 18:18:10 +03:00
Simon Giesecke 61dd418a6e Bug 1663924 - Use IDB_TRY_VAR in GetDatabaseFileURL. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D89896
2020-09-14 12:16:15 +00:00
Simon Giesecke 0fb99a23c1 Bug 1663924 - Change CheckPermission to return a Result rather than use an output parameter. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D89895
2020-09-14 12:16:07 +00:00
Simon Giesecke 8708305c70 Bug 1663924 - Change GetCurrentPermission to return a Result rather than use an output parameter. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D89894
2020-09-14 12:15:55 +00:00
Simon Giesecke 3b8bc2cbac Bug 1663924 - Use IDB_TRY in ReadCompressedNumber. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D89893
2020-09-14 12:15:37 +00:00
Simon Giesecke 75913f8b94 Bug 1663924 - Use ToResultInvoke in ReadCompressedIndexDataValues and fix some output parameter signatures. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D89892
2020-09-14 12:15:24 +00:00
Simon Giesecke f32f1f7a36 Bug 1663924 - Make use of IDB_TRY* in MakeCompressedIndexDataValues. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D89890
2020-09-14 12:15:12 +00:00
Simon Giesecke 7181711f5d Bug 1663924 - Make use of IDB_TRY* in GetStructuredCloneReadInfoFromSource and use switch. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D89889
2020-09-14 12:15:04 +00:00
Simon Giesecke cc4cd175d6 Bug 1663924 - Make use of IDB_TRY* in GetStructuredCloneReadInfoFromExternalBlob. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D89888
2020-09-14 12:14:52 +00:00
Simon Giesecke e1c0d0526d Bug 1663924 - Make use of IDB_TRY* in GetStructuredCloneReadInfoFromBlob. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D89887
2020-09-14 12:14:44 +00:00
Simon Giesecke 6a1c2a548b Bug 1663924 - Make use of IDB_TRY* in ReadCompressedIndexDataValuesFromSource and use switch. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D89886
2020-09-14 12:14:29 +00:00
Simon Giesecke b26988fef6 Bug 1664412 - Mark some error handling functions as MOZ_COLD. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D89885
2020-09-14 12:14:17 +00:00
Kagami Sascha Rosylight be6889463a Bug 1664514 - Proper null checks in CORS/fetch r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D89960
2020-09-14 09:50:46 +00:00
Sylvestre Ledru 6365af6a09 Bug 1664747 - Remove some duplicate if ("bugprone-redundant-branch-condition" warning) r=emilio,andi
Differential Revision: https://phabricator.services.mozilla.com/D90067
2020-09-14 10:52:43 +00:00
Cristina Coroiu d85babf17b Backed out 5 changesets (bug 1662805) for multiple failures, e.g. bc failures at dom/media/mediacontrol/tests/browser_media_control_non_eligible_media.js on a CLOSED TREE
Backed out changeset 820eb655de3d (bug 1662805)
Backed out changeset 23c90dd335b1 (bug 1662805)
Backed out changeset eff66444dc68 (bug 1662805)
Backed out changeset caeffea29d80 (bug 1662805)
Backed out changeset 2f8f9799d1f3 (bug 1662805)
2020-09-14 14:44:34 +03:00
Paul Adenot 3ca6ba96da Bug 1662805 - Make the silence duration before a tab is considered inaudible configurable. r=pehrsons
Depends on D89635

Differential Revision: https://phabricator.services.mozilla.com/D89636
2020-09-14 09:42:31 +00:00
Paul Adenot f07e869482 Bug 1662805 - Replace instantaneous audibility decisions for MediaStream and regular playback with the AudibilityMonitor. r=pehrsons
Depends on D89634

Differential Revision: https://phabricator.services.mozilla.com/D89635
2020-09-14 09:41:26 +00:00
Paul Adenot 86f7c4ac6f Bug 1662805 - Extract the sample-rate decision for an AudioSink to its own function, in the same way it is done for the channel count. r=pehrsons
Depends on D89633

Differential Revision: https://phabricator.services.mozilla.com/D89634
2020-09-14 09:40:54 +00:00
Paul Adenot 5ac1881359 Bug 1662805 - Introduce an AudibilityMonitor to determine if an audio stream is considered audible. r=pehrsons
Depends on D89390

Differential Revision: https://phabricator.services.mozilla.com/D89633
2020-09-14 09:40:31 +00:00
Simon Giesecke fd749e52c8 Bug 1664608 - Remove invalid and unused include for mozzconf.h. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D90072
2020-09-14 09:21:48 +00:00
Simon Giesecke c72e39551a Bug 1664608 - Fix formatting. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D90079
2020-09-14 09:21:48 +00:00
Gerald Squelart 782cf5d3ad Bug 1657033 - Use Span<const char> in JSONWriter - r=froydnj
In most situations, JSONWriter users already know string lengths (either directly, or through `nsCString` and friends), so we should keep this information through JSONWriter and not recompute it again.
This also allows using JSONWriter with sub-strings (e.g., from a bigger buffer), without having to create null-terminated strings.

Public JSONWriter functions have overloads that accept literal strings.

Differential Revision: https://phabricator.services.mozilla.com/D86192
2020-09-14 02:33:20 +00:00
Emilio Cobos Álvarez 948fa5c6d2 Bug 1664156 - Remove -moz-suppressed. r=edgar
Per spec we shouldn't behave differently depending on how we blocked the
image/object/etc.

This may have made sense in the past when ad blockers were implemented
via nsIContentPolicy, but I think nowadays it doesn't make sense, and
showing fallback is preferred.

There's a couple extra cleanups we can do after this lands, like
removing HTMLImageElement.imageBlockingStatus and simplifying a bit that
code. But I'll do that in a separate bug.

Differential Revision: https://phabricator.services.mozilla.com/D89912
2020-09-13 11:33:13 +00:00
Noemi Erli 733e3b440c Backed out changeset 64eb902728bc (bug 1664156) for causing mochitest failures in test_meta_csp_self.html CLOSED TREE 2020-09-12 22:56:18 +03:00
Emilio Cobos Álvarez 4b18c556e4 Bug 1664156 - Remove -moz-suppressed. r=edgar
Per spec we shouldn't behave differently depending on how we blocked the
image/object/etc.

This may have made sense in the past when ad blockers were implemented
via nsIContentPolicy, but I think nowadays it doesn't make sense, and
showing fallback is preferred.

There's a couple extra cleanups we can do after this lands, like
removing HTMLImageElement.imageBlockingStatus and simplifying a bit that
code. But I'll do that in a separate bug.

Differential Revision: https://phabricator.services.mozilla.com/D89912
2020-09-12 17:39:18 +00:00
Cristina Coroiu f7fbc59a7a Backed out 3 changesets (bug 1663917) for causing crashes
Backed out changeset 5ff7eb9b8a22 (bug 1663917)
Backed out changeset 8d5dfe86bd98 (bug 1663917)
Backed out changeset 02d7087c466d (bug 1663917)
2020-09-12 18:03:32 +03:00
Emilio Cobos Álvarez 1ef2a5628a Bug 1664432 - Remove -moz-user-disabled. r=edgar
We treat it exactly the same as -moz-broken. The pseudo-class is not
exposed to content, so I don't think we have a reason to keep it around.

Differential Revision: https://phabricator.services.mozilla.com/D89904
2020-09-11 19:26:40 +00:00
Razvan Maries 8f97d6d022 Backed out changeset b5d0e150491e (bug 1661544) for perma failures on HTMLBody-ScrollArea_quirksmode.html. 2020-09-12 09:48:34 +03:00
Agi Sferro 652cebf086 Bug 1648154 - Expose JSActor.name to javascript. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D89656
2020-09-12 02:39:30 +00:00
Barret Rennie 4820139e53 Bug 1661096 - Support system NSPR in IOUtils r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D89803
2020-09-10 22:43:30 +00:00
Agi Sferro d0fac0e5a3 Bug 1564451 - Add missing AddObserver calls for application-{background,foreground} r=pehrsons
This is a refuse from Bug 1658353, the AddObserver calls were removed by mistake.

Differential Revision: https://phabricator.services.mozilla.com/D89800
2020-09-11 05:41:05 +00:00
Frederic Wang 4f44f0d754 Bug 1664467: Remove runtime preferences for legacy MathML lengths. r=emilio
This commit remove the following preferences, which have been
disabled since Firefox 70:
- mathml.nonzero_unitless_lengths.disabled
- mathml.legacy_number_syntax.disabled

These are edge syntaxes for MathML3 lengths that don't align well
with CSS and we haven't received any bug report about it since they
were disabled. Tests are updated to treat attributes using such
values as invalid.

update tests

Differential Revision: https://phabricator.services.mozilla.com/D89920
2020-09-11 19:48:07 +00:00
Botond Ballo d5b3bf63f9 Bug 1661544 - Ensure initial viewport is computed before reporting innerWidth. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D88947
2020-09-09 21:14:31 +00:00
Denis Palmeiro 63cdb2b343 Bug 1652126: Obtain an OffThreadToken immediately so parse tasks can be canceled anytime, and clean up dangling Runnables during cancellation. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D89465
2020-09-11 15:28:04 +00:00
Paul Adenot 810a0eb3fe Bug 1663917 - Remove special case on Windows for VOICE cubeb stream. r=kinetik
This [0] commit unties the device selection from the fact that a stream
transports voice data. Telling cubeb that the stream has voice data allows
lowering the complexity of the resampler, and lowering the impact of the
resampler on the latency.

[0]: ac3569ef18

Differential Revision: https://phabricator.services.mozilla.com/D89591
2020-09-11 13:16:05 +00:00
Bryce Seager van Dyk dad3db465a Bug 1662212 - Add telemetry to track play time of encrypted HTMLMediaElements. r=drno
Add 3 probes
- Play time for encrypted elements.
- Play time for Clearkey elements.
- Play time for Widevine elements.

Differential Revision: https://phabricator.services.mozilla.com/D88895
2020-09-10 22:04:39 +00:00
Bryce Seager van Dyk d836e296cd Bug 1664268 - Re-enable dom/media/test/test_streams_element_capture_reset.html on linux. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D89808
2020-09-11 05:37:42 +00:00
Emilio Cobos Álvarez 20252cfeaf Bug 1664411 - Factor out a condition to unconditionally enable clipboard events in some documents. r=masayuki
This patch shouldn't introduce any behavior change.

Differential Revision: https://phabricator.services.mozilla.com/D89834
2020-09-11 11:08:35 +00:00
Bogdan Tara 11b8b5a61b Backed out 7 changesets (bug 1661364, bug 1660342) for making bug 1551615 perma fail CLOSED TREE
Backed out changeset a56449ddacc9 (bug 1661364)
Backed out changeset fc185ddca53b (bug 1661364)
Backed out changeset 99234e013005 (bug 1661364)
Backed out changeset eac6bfc4a98d (bug 1661364)
Backed out changeset 9cb0e2dc8d8a (bug 1661364)
Backed out changeset 37b78e402c23 (bug 1661364)
Backed out changeset ae991d4209a7 (bug 1660342)
2020-09-11 14:13:46 +03:00
Emilio Cobos Álvarez 3ccd260400 Bug 1664114 - Try to find a more usable selection for copy-paste if copying from an HTMLEditor. r=masayuki
See the bug for the complications that made me write this slightly hacky
fix... Other solutions definitely welcome.

Add a test, adjusted so it would fail without the change.

Differential Revision: https://phabricator.services.mozilla.com/D89835
2020-09-11 09:14:07 +00:00
David Teller b63923c338 Bug 1663418 - Faster path for ContentProcess in RequestProcInfo;r=froydnj
Prior to this patch, RequestProcInfo attempts to examine all processes from mozilla::ipc::GeckoChildProcessHost::GetAll callbacks.

This causes two issues:
- lifetime management for raw `ContentProcess*` used during the callbacks works but is complicated to audit;
- for each `GeckoChildProcessHost` identified as a `ContentProcess`, we need to perform a linear lookup within content processes during each callback, which makes the code O(n^2) where n is the number of content processes.

This patch rewrites this section of `RequestProcInfo` by splitting it as follows:

1. We use the same `GeckoChildProcessHost::GetAll` callback to examine non-ContentProcess, without any lookup.
2. We use the list of `ContentProcess` to examine ContentProcesses, without any lookup.

As a bonus, new code is not as deeply nested.

Differential Revision: https://phabricator.services.mozilla.com/D89364
2020-09-11 07:01:48 +00:00
Tom Tung 4e7b64f602 Bug 1655067 - Use Result<V, E> for some functions and use CACHE_TRY_VAR for their callsites; r=dom-workers-and-storage-reviewers,sg
Depends on D86209

Differential Revision: https://phabricator.services.mozilla.com/D84837
2020-09-11 07:58:34 +00:00
Tom Tung 530b1157bf Bug 1655067 - Use range for for some loops; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D86209
2020-09-11 07:58:06 +00:00