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

102338 Коммитов

Автор SHA1 Сообщение Дата
criss 2aa1094a66 Backed out 4 changesets (bug 1722502) for causing Hazard bustage on ServiceWorkerQuotaUtils.cpp. CLOSED TREE
Backed out changeset e629eccab130 (bug 1722502)
Backed out changeset 9d8ddf54d9c6 (bug 1722502)
Backed out changeset 2e9d71f4f128 (bug 1722502)
Backed out changeset bbe06a4f707b (bug 1722502)
2021-08-27 10:11:13 +03:00
Eden Chuang 76d6efc88e Bug 1722502 - P4 Update the test for quota usage mitigation. r=dom-worker-reviewers,asuth
Depends on D122189

Differential Revision: https://phabricator.services.mozilla.com/D122190
2021-08-27 05:25:29 +00:00
Eden Chuang 5cfb1772c6 Bug 1722502 - P3 Quota usage mitigation algorithm implementation. r=dom-worker-reviewers,asuth
This patch introduces ServiceWorkerQuotaUtils.h, which provides helper methods related nsIQuotaManagerService and nsIClearDataService.

QuotaUsageChecker implements the quota usage checking algorithm.

    1. Getting the given origin/group usage through QuotaManagerService. QuotaUsageCheck::Start() implements this step.

    2. Checking if the group usage headroom(gGroupUsageHeadRoom) is satisfied. It could be following three situations. a. Group headroom is satisfied without any usage mitigation. b. Group headroom is satisfied after origin usage mitigation. This invokes nsIClearDataService::DeleteDataFromPrincipal(). c. Group headroom is satisfied after group usage mitigation. This invokes nsIClearDataService::DeleteDataFromBaseDomain().

QuotaUsageChecker::CheckQuotaHeadRoom() implements this step.
If the algorithm is done or error out, the QuotaUsageCheck::mCallback will be called with a bool result for external handling.

Depends on D122188

Differential Revision: https://phabricator.services.mozilla.com/D122189
2021-08-27 05:25:29 +00:00
Eden Chuang d7e3349535 Bug 1722502 - P2 Provide quota check finishing notification mechanism in ServiceWorker for testing. r=dom-worker-reviewers,asuth
This patch implements a callback mechanism to notify quota usage checking is done.

Depends on D120964

Differential Revision: https://phabricator.services.mozilla.com/D122188
2021-08-27 05:25:28 +00:00
Eden Chuang 269f6ff9c0 Bug 1722502 - P1 Implement the quota usage checking methods in ServiceWorker for quota usage mitigation. r=dom-worker-reviewers,asuth
This patch implements methods for ServiceWorkerRegistrationInfo to invoke the quota usage checking.

ServiceWorkerRegistrationInfo::CheckQuotaUsage() is an internal using method, such that it is a private method.

Differential Revision: https://phabricator.services.mozilla.com/D120964
2021-08-27 05:25:28 +00:00
Jeff Gilbert fa284e5717 Bug 1726265 - Prototype webgl draft ext OES_draw_buffers_indexed. r=lsalzman,emilio,webidl
Differential Revision: https://phabricator.services.mozilla.com/D122916
2021-08-27 01:47:14 +00:00
Emilio Cobos Álvarez cfca657d9c Bug 1722487 - Avoid some work for font list updates. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D123363
2021-08-26 23:17:54 +00:00
Bryce Seager van Dyk bbee1b1410 Bug 1726272 - Remove SetupEMEPref from EME tests. r=alwu
The SetupEMEPref helper is no longer needed. This patch removes it from tests.
This patch does some minimal restyling and simplifying of the tests following
removal, but largely does not change them. There should be *no* logic changed in
the tests following the patch. They should run as before.

Differential Revision: https://phabricator.services.mozilla.com/D123630
2021-08-26 19:55:33 +00:00
Bryce Seager van Dyk 815e608fd6 Bug 1726024 - Use MustGetShutdownBarrier in SpeechRecognition. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D123006
2021-08-26 18:37:04 +00:00
Bryce Seager van Dyk 45cf63443e Bug 1726024 - Use MustGetShutdownBarrier in CamerasParent. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D123005
2021-08-26 18:37:03 +00:00
Bryce Seager van Dyk 7ced8e76ab Bug 1726024 - Handle failure to get shutdown barrier in MediaTrackGraph. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D123004
2021-08-26 18:37:03 +00:00
Bryce Seager van Dyk dfb5047d9c Bug 1726024 - Handle failure to get shutdown barrier in MediaRecorder. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D123003
2021-08-26 18:37:03 +00:00
Bryce Seager van Dyk eb55d7f7d1 Bug 1726024 - Use MustGetShutdownBarrier in MediaManager. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D123002
2021-08-26 18:37:02 +00:00
Bryce Seager van Dyk 105ae13756 Bug 1726024 - Handle failure to get async shutdown service in GetShutdownBarrier. r=jib
We will fail to get the service if this function is called and we're already in
shutdown. Call sites for this function do not guard against doing so (and I'm
not sure there's a nice way to check). So we need to handle failure in the
function and have call sites check if this failed.

An alternative function is added, MustGetShutdownBarrier, which maintains the
original behaviour. Callers that still wish to crash on failure can instead opt
to use this function.

Differential Revision: https://phabricator.services.mozilla.com/D123001
2021-08-26 18:37:02 +00:00
Henri Sivonen 58e0b2946c Bug 1716290 - Remove protections against the document changing as part of kCharsetFromFinalUserForcedAutoDetection reload. r=emk,emilio
NOTE! In cases where there is no HTTP-layer encoding declaration, and CSS
parsing inherits the encoding from the HTML document, for preloads, this
changes the inherited encoding from windows-1252 to UTF-8 in order to
make the speculative encoding correct in the common `<meta charset=utf-8>`
case.

Differential Revision: https://phabricator.services.mozilla.com/D123593
2021-08-26 18:02:15 +00:00
Alexandru Michis 010cf9dd17 Backed out 3 changesets (bug 1725555) for causing crashes in nsTextFrame.
CLOSED TREE

Backed out changeset d0864a5c8e90 (bug 1725555)
Backed out changeset 22b941581212 (bug 1725555)
Backed out changeset f2357e055668 (bug 1725555)
2021-08-26 20:43:41 +03:00
Michelle Goossens a4d80273f3 Bug 1715832 - Part 6: Migrate Windows 10 mochitest-webgl1-core from AWS to Azure r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D123705
2021-08-26 17:06:23 +00:00
Nika Layzell c38d0d1762 Bug 1726865 - Prefer using existing content processes for subframes during process selection, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D123661
2021-08-26 16:57:27 +00:00
Jonathan Kew 849c259bc7 Bug 1725555 - patch 3 - Also use continuations array to accelerate nsTextFrame::SelectionStateChanged. r=emilio
After CollectClientRectsAndText is eliminated from the profiles here, SelectionStateChanged
is the next obvious hotspot, and it can similarly be accelerated by binary-searching the continuations.

Depends on D122999

Differential Revision: https://phabricator.services.mozilla.com/D123000
2021-08-26 16:56:44 +00:00
Jonathan Kew 6481b69a6c Bug 1725555 - patch 2 - Enable the primary nsTextFrame to provide, and cache, an array of all the continuations in the chain. r=emilio
This allows us to binary-search the continuations from nsRange::CollectClientRectsAndText,
instead of linear-searching the linked list for every range we need to look up.

Depends on D122998

Differential Revision: https://phabricator.services.mozilla.com/D122999
2021-08-26 16:56:43 +00:00
Paul Zuehlcke 518d5ded96 Bug 1683165 - Add a pref to control anti-tracking webcompat features. r=timhuang,twisniewski,webcompat-reviewers,dimi
Differential Revision: https://phabricator.services.mozilla.com/D123614
2021-08-26 15:13:10 +00:00
Christian Holler 4491b90615 Bug 1725356 - Check MediaTransportHandlerSTS::mInitPromise before use. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D122438
2021-08-26 10:54:01 +00:00
Paul Adenot 939bc4005f Bug 1724997 - Add a marker for AudioStream underruns. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D123217
2021-08-26 09:15:41 +00:00
Paul Adenot a6a9c6e85c Bug 1724997 - Remove the supporting code for using the async logger with MOZ_LOG. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D122741
2021-08-26 09:15:41 +00:00
Paul Adenot 0d92e0b339 Bug 1724997 - Put the AudioWorkletProcessor's name in the marker when calling its process method. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D122740
2021-08-26 09:15:40 +00:00
Paul Adenot cd9af3411c Bug 1724997 - Add tracing markers for more MediaTrackGraph events. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D122739
2021-08-26 09:15:40 +00:00
Paul Adenot 145a722aac Bug 1724997 - Support a comment in the AsyncLogger. r=pehrsons
This is going to be used to distinguish markers: different instances of the same
class, an AudioWorklet's name, etc.

Differential Revision: https://phabricator.services.mozilla.com/D122738
2021-08-26 09:15:39 +00:00
Paul Adenot fa3557911c Bug 1724997 - Manually choose a tag for tracing markers. r=pehrsons
It would be nice to be able to auto-generate a string, but on Windows we only
have a very long name with all the qualifiers, and it's unreadable in practice
in the marker view.

This allows having names that are more human friendly and shorter. Generally
it's going to be the name of the function though.

Differential Revision: https://phabricator.services.mozilla.com/D122737
2021-08-26 09:15:39 +00:00
Paul Adenot 4721b46f61 Bug 1724997 - Fix a typo in a constant's name. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D122736
2021-08-26 09:15:39 +00:00
Paul Adenot 6da8e045b1 Bug 1724997 - Add profiler markers on AudioWorklet.addModule. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D122735
2021-08-26 09:15:38 +00:00
Paul Adenot 3be2a7663f Bug 1724997 - Add callbacks for the start and end of addModule on a Worklet. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D122734
2021-08-26 09:15:38 +00:00
Paul Adenot 5a3c805491 Bug 1724997 - Add markers in AudioWorklet related methods. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D122733
2021-08-26 09:15:37 +00:00
Paul Adenot d0c7314f1c Bug 1724997 - Remove old macros that are unused. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D122732
2021-08-26 09:15:37 +00:00
criss 2be42eea15 Backed out changeset ab805f2926d5 (bug 1716290) for causing failures on link-header-preload.html. CLOSED TREE 2021-08-26 12:07:17 +03:00
Karl Tomlinson e0a129f45d Bug 1705289 Remove spurious mozMediaSource media track constraint from tests r=jib
This constraint does not exist.
https://hg.mozilla.org/mozilla-central/rev/49e5c7d46ea0cd9515d292131259ac539652ce2b#l6.25

Depends on D123560

Differential Revision: https://phabricator.services.mozilla.com/D123561
2021-08-26 08:10:18 +00:00
Karl Tomlinson 0fbca822af Bug 1705289 use more restrictive variable declarations r=jib
No behavior changes.

Depends on D123559

Differential Revision: https://phabricator.services.mozilla.com/D123560
2021-08-26 08:10:17 +00:00
Karl Tomlinson 2c6d6b1e44 Bug 1705289 loosen message on failure to meet getDisplayMedia() user activation requirement r=jib
This never needed to be called directly from a handler, though a
(potentially async) call should at least be triggered by a handler.
https://hg.mozilla.org/mozilla-central/rev/4d512fa7b071#l1.19

Depends on D122193

Differential Revision: https://phabricator.services.mozilla.com/D123559
2021-08-26 08:10:17 +00:00
Henri Sivonen ff85d45e69 Bug 1716290 - Remove protections against the document changing as part of kCharsetFromFinalUserForcedAutoDetection reload. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D123593
2021-08-26 06:25:31 +00:00
Matt Woodrow d751b43176 Bug 1727489 - Remove PLayerTransaction. r=jrmuizel,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D123595
2021-08-26 04:59:57 +00:00
Butkovits Atila c83e348e26 Backed out 2 changesets (bug 1727488, bug 1727489) for causing bustages on KnowsCompositor.cpp. CLOSED TREE
Backed out changeset 5a00db1b7a6a (bug 1727489)
Backed out changeset 13686567e748 (bug 1727488)
2021-08-26 04:49:16 +03:00
Matt Woodrow 0d4e9aa48a Bug 1727489 - Remove PLayerTransaction. r=jrmuizel,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D123595
2021-08-26 00:25:21 +00:00
Andreea Pavel e52159d432 Bug 1634684 - disable test_peerConnection_verifyVideoAfterRenegotiation.html on linux64 debug for frequent failures r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D123684
2021-08-25 22:30:53 +00:00
Matt Woodrow b8eef01e83 Bug 1708403 - Make resetting of scroll position for drawSnapshot opt-in. r=mstange,kmag
Differential Revision: https://phabricator.services.mozilla.com/D117613
2021-08-25 20:49:18 +00:00
Bryce Seager van Dyk 929e903893 Bug 1726202 - Add cbcs clear key test cases. r=jolin
Add several test cases to cover our cbcs path. These test a number of different
patterns. These patterns are
- 1:9, 5:5, 10:0. These are more conventional patterns.
- 7:7, 9:8. These are not conventional. Both go against the spec by not summing
  to 10. This tests we can appropriately handle unconventional cases.

Note that the spec says patterns should only be applied to video tracks. So in
all cases the audio actually use 0:0 (full encryption). So these test cases also
cover the 0:0 case.

Differential Revision: https://phabricator.services.mozilla.com/D123498
2021-08-25 20:41:43 +00:00
Nika Layzell d47f4a615c Bug 1725572 - Avoid process-switching to a dead process, r=kmag
After some investigation, I was able to find a theoretical codepath
which could lead to the "missing initial frame browsing context" error:

1. Two iframes are created for the same origin, and begin process
   switching.
2. The first iframe finishes process switching, but for some reason
   (e.g. being in shutdown) the call to `LaunchSubprocessResolve`
   errors.
3. The second callback is called and also calls LaunchSubprocessResolve,
   which this time returns `true` due to it previously having been
   called.
4. The BrowserParent is created in the new content process despite
   `InitInternal()` never having been finished, and therefore the
   ContentParent never becoming subscribed to the BrowsingContextGroup.

To fix this, I made 2 changes:

1. Abort from process switching if the target process which we're going
   to be creating a BrowserParent in `IsDead()`, and
2. Track the return value from `LaunchSubprocessResolve`, so we return
   `false` if it is called a second time after a failed content process
   launch.

I'm not confident that this is the cause of the crashes, as I was unable
to reproduce the issue.

Differential Revision: https://phabricator.services.mozilla.com/D123548
2021-08-25 17:54:10 +00:00
Bob Owen 8434181376 Bug 1701796: Move IsTouchDeviceSupportPresent to LookAndFeel remoting to prevent win32k usage in the content process. r=emilio,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D123497
2021-08-25 14:32:13 +00:00
Iulian Moraru dc862c1716 Bug 1725635 - disable browser_gc_schedule.js on linux_18.04_64_debug for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D123306
2021-08-25 12:40:22 +00:00
Emilio Cobos Álvarez ec922d3f90 Bug 1721952 - Don't let nsTextFragment::IsBidi get out of sync even if the document has already enabled bidi. r=smaug
It's not a sound optimization in presence of adoption.

Differential Revision: https://phabricator.services.mozilla.com/D123524
2021-08-25 11:07:40 +00:00
Andi-Bogdan Postelnicu 2fc4f70e9b Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium
Automatically generated path that adds flag `REQUIRES_UNIFIED_BUILD = True` to `moz.build`
when the module governed by the build config file is not buildable outside on the unified environment.

This needs to be done in order to have a hybrid build system that adds the possibility of combing
unified build components with ones that are built outside of the unified eco system.

Differential Revision: https://phabricator.services.mozilla.com/D122345
2021-08-25 10:46:17 +00:00
Andi-Bogdan Postelnicu eeb2d05d90 Bug 1725145 - add header for getpid() for win platform. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D123545
2021-08-25 10:46:15 +00:00