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

103033 Коммитов

Автор SHA1 Сообщение Дата
Sandor Molnar 325902a5b7 Backed out 5 changesets (bug 1733465) for causing android build bustages in android/SessionAccessibility.cpp. CLOSED TREE
Backed out changeset 4c5b28b66740 (bug 1733465)
Backed out changeset 3db0452b185c (bug 1733465)
Backed out changeset d7460c9c6acb (bug 1733465)
Backed out changeset 3cee3f595e45 (bug 1733465)
Backed out changeset 267d5fc92f12 (bug 1733465)
2021-10-01 19:13:59 +03:00
Daniel Holbert 54c1df0de9 Bug 1733465 part 3: Make nsPresContext::GetRootWidget() return an already_AddRefed pointer instead of a raw pointer. r=tnikkel
Also, make the same change to nsPresContext::GetTextInputHandlingWidget and
TextComposition::GetWidget, which are essentially aliases/wrappers for this
function.

This patch shouldn't change behavior at all, aside from:
* optimizing away some redundant reference counting and widget-lookups
* delaying some nsIWidget::Release() calls, which will now happen after we're
  actually done using the object, instead of happening when the getter
  completes. (It's unlikely this impacts behavior, because there are other
  objects that are keeping the nsIWidget instance alive.)

Motivation / "wins" from this patch:
* nsPresContext::GetRootWidget already works with a refcounted pointer
  internally. Before this patch, it drops the reference before returning the
  pointer.  This is a bit suspect and would cause security issues, in the
  unlikely event that this were the last strong reference to the object.  It
  can just as easily/efficiently transfer the strong reference to the caller,
  and let the caller determine when to release it.
* Many of the callers were already storing the return value in nsCOMPtr, which
  meant that they were incurring an additional AddRef/Release when
  populating/destructing that smart pointer. Now they can just take ownership
  of the already_AddRefed return value and avoid redundnat refcount-churn.
* For the callers that weren't storing the return value in nsCOMPtr, some of
  them were calling this getter twice in a row (once to test for truthiness and
  once to use the known-truthy value).  This was wasteful, both from the
  repeated lookup-work (since the function isn't a trivial getter), and from
  repeated refcount-churn.  This patch collapses these repeat-calls to a single
  call, avoiding those inefficiencies.

Differential Revision: https://phabricator.services.mozilla.com/D127180
2021-10-01 14:37:06 +00:00
Daniel Holbert 5b203843bc Bug 1733465 part 2: Modernize nsViewManager::GetWidget() to use already_AddRefed return value, instead of requiring getter_AddRefs at callsite. r=tnikkel
This patch shouldn't change behavior at all.

This patch replaces a manual NS_ADDREF call with typesafe code that manages the
reference count for us.  This reduces repeated boilerplate code, in the
implementation as well as the callsites.

Differential Revision: https://phabricator.services.mozilla.com/D127179
2021-10-01 14:37:05 +00:00
Henri Sivonen 7588a257ed Bug 1724243 - Make text/plain and MediaDocuments use the Standards Mode. r=smaug,emilio
Differential Revision: https://phabricator.services.mozilla.com/D123318
2021-10-01 12:55:28 +00:00
Daisuke Akatsuka d246521ee5 Bug 1678623: Implement a mechanism to fire bookmark-title-changed event. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D103147
2021-10-01 12:01:29 +00:00
criss 7897dc6975 Backed out 4 changesets (bug 1728934) for causing Mochitest failures. CLOSED TREE
Backed out changeset 5e64ae0a8b00 (bug 1728934)
Backed out changeset 3538237090bf (bug 1728934)
Backed out changeset a240e5a52df4 (bug 1728934)
Backed out changeset a932fbd95f01 (bug 1728934)
2021-10-01 11:49:44 +03:00
shravanrn@gmail.com 15a998b00b Bug 1728934 Part 3 - Ensure Ogg demux fails gracefully on rlbox sandbox OOM r=glandium,bholley
Differential Revision: https://phabricator.services.mozilla.com/D127023
2021-10-01 07:25:03 +00:00
Nils Ohlmeier 31254c9b40 Bug 1732778: sort SSSRC with RTX the same as without. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D126998
2021-10-01 05:09:31 +00:00
Byron Campen ccd22bb5d7 Bug 1680620: Remove some log spew that just happens to be causing intermittent failures in browser_WebrtcGlobalInformation.js. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D127162
2021-09-30 21:58:27 +00:00
Nika Layzell 244d4a4635 Bug 1733241 - Remove unnecessary for loop, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126992
2021-09-30 16:47:14 +00:00
Byron Campen 186cb6cb75 Bug 1733121: Re-enable test_peerConnection_captureStream_canvas_webgl.html on android emulator. r=ng
Depends on D127128

Differential Revision: https://phabricator.services.mozilla.com/D127129
2021-09-30 16:32:05 +00:00
Byron Campen dafd6769bd Bug 1504162: Re-enable test_getUserMedia_basicScreenshare.html on windows webrender. r=ng
Depends on D127127

Differential Revision: https://phabricator.services.mozilla.com/D127128
2021-09-30 16:32:05 +00:00
Byron Campen 27cdb24e44 Bug 1693804: Re-enable test_getUserMedia_basicScreenshare.html on linux swgl/webrender. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D127127
2021-09-30 16:32:04 +00:00
Alexandru Michis 3ec13dcba7 Backed out changeset 891f007ad684 (bug 1731587) for causing mochitest plain failures in mochitest/test_sanitizer_api.html
CLOSED TREE
2021-09-30 17:58:23 +03:00
Mirko Brodesser 5f6d9cd4c9 Bug 1731994: part 7) Update documentation of `nsIContentPermissionPrompt`. r=edgar DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D126910
2021-09-30 13:11:52 +00:00
Paul Adenot 2d55780bdd Bug 1733109 - function 'mozilla::dom::HTMLMediaElement::MozGetMetadata' has a definition with different parameter names in HTMLMediaElement.cpp. r=alwu
Depends on D126946

Differential Revision: https://phabricator.services.mozilla.com/D126947
2021-09-30 12:36:18 +00:00
Paul Adenot 477acd5f27 Bug 1733109 - narrowing conversion from 'double' to 'float' in HTMLMediaElement.cpp. r=alwu
Depends on D126945

Differential Revision: https://phabricator.services.mozilla.com/D126946
2021-09-30 12:36:18 +00:00
Paul Adenot f3cd1e466b Bug 1733109 - 'auto cdmProxy' can be declared as 'auto *cdmProxy' in HTMLMediaElement.cpp. r=alwu
Depends on D126944

Differential Revision: https://phabricator.services.mozilla.com/D126945
2021-09-30 12:36:18 +00:00
Paul Adenot 97fe06afcc Bug 1733109 - do not use 'else' after 'return' in HTMLMediaElement.cpp. r=alwu
Depends on D126943

Differential Revision: https://phabricator.services.mozilla.com/D126944
2021-09-30 12:36:17 +00:00
Paul Adenot 915a3a4d1a Bug 1733109 - local copy 'handle' of the variable 'aPrincipalHandle' is never modified; consider avoiding the copy in HTMLMediaElement.cpp. r=alwu
Depends on D126942

Differential Revision: https://phabricator.services.mozilla.com/D126943
2021-09-30 12:36:17 +00:00
Paul Adenot 0f7d0e3beb Bug 1733109 - 'auto decoder' can be declared as 'auto *decoder' in HTMLMediaElement.cpp. r=alwu
Depends on D126941

Differential Revision: https://phabricator.services.mozilla.com/D126942
2021-09-30 12:36:16 +00:00
Paul Adenot ab7bfb48a1 Bug 1733109 - 'auto decoder' can be declared as 'auto *decoder' in HTMLMediaElement.cpp. r=alwu
Depends on D126940

Differential Revision: https://phabricator.services.mozilla.com/D126941
2021-09-30 12:36:16 +00:00
Paul Adenot 4ef93dfafd Bug 1733109 - move constructors should be marked noexcept HTMLMediaElement.cpp. r=alwu
We don't use exceptions anyways, but having no warnings allows warning us when
warnings appear, so let's fix this.

Depends on D126939

Differential Revision: https://phabricator.services.mozilla.com/D126940
2021-09-30 12:36:16 +00:00
Paul Adenot 7b15802441 Bug 1733109 - narrowing conversion from 'unsigned long' to signed type 'int32_t' (aka 'int') is implementation-defined HTMLMediaElement.cpp. r=pehrsons
Somewhat controversial, let me know what you think.

Differential Revision: https://phabricator.services.mozilla.com/D126939
2021-09-30 12:36:15 +00:00
Paul Adenot eb06a61abe Bug 1733109 - redundant return statement at the end of a function with a void return type in HTMLMediaElement.cpp. r=alwu
Depends on D126937

Differential Revision: https://phabricator.services.mozilla.com/D126938
2021-09-30 12:36:15 +00:00
Paul Adenot c792014982 Bug 1733109 - narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int32_t' (aka 'int') is implementation-defined in HTMLMEdiaElement.cpp. r=alwu,emilio
This is Chrome-only.

Depends on D126936

Differential Revision: https://phabricator.services.mozilla.com/D126937
2021-09-30 12:36:15 +00:00
Paul Adenot 91a3981b9c Bug 1733109 - narrowing conversion from 'double' to 'float' in HTMLMEdiaElement.cpp. r=alwu
Depends on D126935

Differential Revision: https://phabricator.services.mozilla.com/D126936
2021-09-30 12:36:14 +00:00
Paul Adenot b9d6ecd246 Bug 1733109 - constructor does not initialize these fields: mOwnerBrowsingContextId in HTMLMEdiaElement.cpp. r=alwu
Depends on D126934

Differential Revision: https://phabricator.services.mozilla.com/D126935
2021-09-30 12:36:14 +00:00
Paul Adenot b5c0989ca4 Bug 1733109 - function 'mozilla::MediaDecoder::OnSecondaryVideoContainerInstalled' has a definition with different parameter names in MediaDecoder.h. r=bryce
Depends on D126933

Differential Revision: https://phabricator.services.mozilla.com/D126934
2021-09-30 12:36:13 +00:00
Paul Adenot cfb400193d Bug 1733109 - narrowing conversion from 'size_t' in MediaDecoder.cpp. r=bryce
INT64_MAX is more than enough for this, no worries to have.

Depends on D126932

Differential Revision: https://phabricator.services.mozilla.com/D126933
2021-09-30 12:36:13 +00:00
Paul Adenot 056fb0cac9 Bug 1733109 - do not use 'else' after 'return' in MediaDecoder.cpp. r=bryce
Depends on D126931

Differential Revision: https://phabricator.services.mozilla.com/D126932
2021-09-30 12:36:13 +00:00
Paul Adenot 51242cd516 Bug 1733109 - passing result of std::move() as a const reference argument; no move will actually happen in MediaDecoder.cpp. r=bryce
Depends on D126930

Differential Revision: https://phabricator.services.mozilla.com/D126931
2021-09-30 12:36:12 +00:00
Paul Adenot f71f67ea1e Bug 1733109 - the parameter 'aSecondaryVideoContainer' is copied for each invocation but only used as a const reference; consider making it a const reference in MediaDecoder.cpp r=bryce
Depends on D126929

Differential Revision: https://phabricator.services.mozilla.com/D126930
2021-09-30 12:36:12 +00:00
Paul Adenot d444b36c2d Bug 1733109 - do not use 'else' after 'return' in MediaDecoder.cpp. r=bryce
Depends on D126928

Differential Revision: https://phabricator.services.mozilla.com/D126929
2021-09-30 12:36:12 +00:00
Paul Adenot 9f33d4a4a4 Bug 1733109 - 'auto owner' can be declared as 'auto *owner' in MediaDecoder.cpp. r=bryce
Depends on D126927

Differential Revision: https://phabricator.services.mozilla.com/D126928
2021-09-30 12:36:11 +00:00
Paul Adenot 54769289b2 Bug 1733109 - use 'using' instead of 'typedef' in MediaDecoder.cpp. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D126927
2021-09-30 12:36:11 +00:00
Frederik Braun 10fd5a0e09 Bug 1731587 - [sanitizer] Remove string-based APIs, handle HTML comments, align exceptions with wpt r=hsivonen
This patch combines three relatively small changes:
1) Removing string-based APIs
-- Adjusting the Sanitize() function, its WebIDl definition etc. to only
accept Document/DocumentFragment
2) Parse allowComments from the Sanitizer constructor and pass into the
   underlying nsTreeSanitizer
3) Ensure that exceptions and error cases align with current wpt

Differential Revision: https://phabricator.services.mozilla.com/D126673
2021-09-30 12:08:57 +00:00
Jan Varga b75d89f7dc Bug 1728267 - Fix compilation when QM_ERROR_STACKS_ENABLED is not defined; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D126589
2021-09-30 11:14:58 +00:00
criss 63b598f4ea Merge mozilla-central to autoland on a CLOSED TREE 2021-09-30 12:52:49 +03:00
criss 7539ad54dd Merge autoland to mozilla-central. a=merge 2021-09-30 12:48:55 +03:00
Mirko Brodesser b0b4e0cd28 Bug 1731994: part 5) Rename `ContentPermissionRequestParent::mMaybeUnsafePermissionDelegate` to `ContentPermissionRequestParent::mIsRequestDelegatedToUnsafeThirdParty`. r=johannh
This seems clearer. "Is" is more precise then "maybe".

Differential Revision: https://phabricator.services.mozilla.com/D126502
2021-09-30 08:19:28 +00:00
Karl Tomlinson 2eca6f32f6 Bug 1733301 generate action ID for focusmanager.testmode WindowRaised() at time of call r=hsivonen
for consistency with OS-triggered calls
https://searchfox.org/mozilla-central/rev/b022ae1fc071ad7a29f64f281bc19b7b093df538/xpfe/appshell/AppWindow.cpp#3005
and so that interleaved element-focus actions don't make the active toplevel
window change notification (and its associated content window focus changes)
stale.

Differential Revision: https://phabricator.services.mozilla.com/D127029
2021-09-30 06:48:37 +00:00
Mike Hommey 70b2676ce8 Bug 1733034 - Fix linux bustage. CLOSED TREE 2021-09-30 04:26:22 +03:00
Botond Ballo e8f2c2cf60 Bug 1733281 - Remove MaybeMatrix4x4. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D127018
2021-09-30 00:08:35 +00:00
Botond Ballo 45ae4c55f6 Bug 1733278 - Remove MaybeZoomConstraints. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D127017
2021-09-30 00:08:34 +00:00
Mike Hommey d33a4ba4dc Bug 1436085 - Web Authentication - Remove remains of hard-coded support for U2F Google Accounts. r=smaug
The support was actually removed in bug 1406471, but the constants
remained unused.

Differential Revision: https://phabricator.services.mozilla.com/D126864
2021-09-29 21:51:54 +00:00
Mike Hommey 8824ffa3c6 Bug 1733034 - Fix unreachable-code-loop-increment warning in dom. r=smaug
dom/base/CustomElementRegistry.cpp:580:56: error: loop will run at most once (loop increment never executed) [-Werror,-Wunreachable-code-loop-increment]
    for (auto iter = mCandidates.Iter(); !iter.Done(); iter.Next()) {
                                                       ^~~~~~~~~~~

Differential Revision: https://phabricator.services.mozilla.com/D126876
2021-09-29 21:44:53 +00:00
Mike Hommey ceabf5781e Bug 1733034 - Ignore unreachable-code-loop-increment in TestFlatten. r=dom-workers-and-storage-reviewers,janv
dom/quota/test/gtest/TestFlatten.cpp:18:3: error: loop will run at most once (loop increment never executed) [-Werror,-Wunreachable-code-loop-increment]
  for (const auto& item : Flatten<int>(nsTArray<int>{})) {
  ^~~
dom/quota/test/gtest/TestFlatten.cpp:26:3: error: loop will run at most once (loop increment never executed) [-Werror,-Wunreachable-code-loop-increment]
  for (const auto& item : Flatten<int>(nsTArray<CopyableTArray<int>>{})) {
  ^~~
dom/quota/test/gtest/TestFlatten.cpp:34:3: error: loop will run at most once (loop increment never executed) [-Werror,-Wunreachable-code-loop-increment]
  for (const auto& item :
  ^~~

clang figures out that the loop is not going to execute, which is the
whole point of the test.

Differential Revision: https://phabricator.services.mozilla.com/D126874
2021-09-29 21:44:52 +00:00
Mike Hommey 522233809a Bug 1733034 - Fix unreachable-code warning in dom/media. r=padenot
dom/media/gtest/TestMediaDataEncoder.cpp:199:16: error: code will never be executed [-Werror,-Wunreachable-code]
        result = Some(false);
               ^

`FAIL()` expands to an expression that starts with `return`, so the code
coming after it never runs.

Differential Revision: https://phabricator.services.mozilla.com/D126873
2021-09-29 21:44:52 +00:00
Mike Hommey bd24f1574c Bug 1733034 - Fix unreachable-code-return warning in dom/media. r=padenot
dom/media/mediacontrol/MediaStatusManager.cpp:260:13: error: 'return' will never be executed [-Werror,-Wunreachable-code-return]
  return u""_ns;
            ^~~

Differential Revision: https://phabricator.services.mozilla.com/D126871
2021-09-29 21:44:51 +00:00
Mike Hommey ad42c13a73 Bug 1733034 - Fix unreachable-code-return warnings in dom. r=smaug
dom/console/Console.cpp:2899:10: error: 'return' will never be executed [-Werror,-Wunreachable-code-return]
  return 0;
         ^
dom/console/Console.cpp:2955:10: error: 'return' will never be executed [-Werror,-Wunreachable-code-return]
  return 0;
         ^
dom/fetch/FetchDriver.cpp:252:10: error: 'return' will never be executed [-Werror,-Wunreachable-code-return]
  return NS_OK;
         ^~~~~

Differential Revision: https://phabricator.services.mozilla.com/D126870
2021-09-29 21:44:51 +00:00
Mike Hommey e68a314d26 Bug 1733034 - Fix unused-const-variable warnings in dom/security. r=freddyb
dom/security/nsCSPContext.cpp:80:23: error: unused variable 'CSP_CACHE_URI_CUTOFF_SIZE' [-Werror,-Wunused-const-variable]
static const uint32_t CSP_CACHE_URI_CUTOFF_SIZE = 512;
                      ^
dom/security/test/gtest/TestFilenameEvalParser.cpp:25:23: error: unused variable 'kDataUriWebExtCStyle' [-Werror,-Wunused-const-variable]
static constexpr auto kDataUriWebExtCStyle =
                      ^
dom/security/test/gtest/TestFilenameEvalParser.cpp:29:23: error: unused variable 'kOtherExtensionFile' [-Werror,-Wunused-const-variable]
static constexpr auto kOtherExtensionFile = "otherextension_file"_ns;
                      ^
dom/security/test/gtest/TestFilenameEvalParser.cpp:37:23: error: unused variable 'kOtherWorker' [-Werror,-Wunused-const-variable]
static constexpr auto kOtherWorker = "other-on-worker"_ns;
                      ^
dom/security/test/gtest/TestFilenameEvalParser.cpp:38:23: error: unused variable 'kRegexFailure' [-Werror,-Wunused-const-variable]
static constexpr auto kRegexFailure = "regexfailure"_ns;
                      ^

Differential Revision: https://phabricator.services.mozilla.com/D126869
2021-09-29 21:44:50 +00:00
Mike Hommey dcca662722 Bug 1733034 - Fix unused-const-variable warning in dom/media. r=padenot
dom/media/autoplay/AutoplayPolicy.cpp:38:23: error: unused variable 'sPOLICY_TRANSIENT_ACTIVATION' [-Werror,-Wunused-const-variable]
static const uint32_t sPOLICY_TRANSIENT_ACTIVATION = 1;
                      ^

Differential Revision: https://phabricator.services.mozilla.com/D126868
2021-09-29 21:44:50 +00:00
Mike Hommey 0e97fcf8b6 Bug 1733034 - Fix unused-const-variable warning in dom/base/BodyStream.cpp. r=smaug
dom/base/BodyStream.cpp:21:22: error: unused variable 'kStreamTransportServiceCID' [-Werror,-Wunused-const-variable]
static NS_DEFINE_CID(kStreamTransportServiceCID, NS_STREAMTRANSPORTSERVICE_CID);
                     ^

Differential Revision: https://phabricator.services.mozilla.com/D126867
2021-09-29 21:44:49 +00:00
Mike Hommey aec5c5347b Bug 1733034 - Fix unused*-variable warnings due to missing ifdefs. r=andi
dom/base/EventSource.cpp:59:22: error: unused variable 'gEventSourceLog' [-Werror,-Wunused-variable]
static LazyLogModule gEventSourceLog("EventSource");
                     ^
dom/xul/nsXULCommandDispatcher.cpp:35:22: error: unused variable 'gCommandLog' [-Werror,-Wunused-variable]
static LazyLogModule gCommandLog("nsXULCommandDispatcher");
                     ^
layout/generic/ScrollAnchorContainer.cpp:23:31: error: unused variable 'sAnchorLog' [-Werror,-Wunused-variable]
static mozilla::LazyLogModule sAnchorLog("scrollanchor");
                              ^
memory/replace/phc/PHC.cpp:308:15: error: unused variable 'kAllocJunk' [-Werror,-Wunused-const-variable]
const uint8_t kAllocJunk = 0xe4;
              ^

Differential Revision: https://phabricator.services.mozilla.com/D126866
2021-09-29 21:44:49 +00:00
Tom Schuster e94c448967 Bug 1731622 - Handle images in ContentChild::RecvInvokeDragSession. r=nika
This is a copy of the similar code in RemoteDragStartData::AddInitialDnDDataTo

Differential Revision: https://phabricator.services.mozilla.com/D126794
2021-09-29 20:32:50 +00:00
Byron Campen b27336c341 Bug 1180968: Re-enable this test, and update it to reflect spec fixes since it was disabled. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D126417
2021-09-29 17:42:02 +00:00
John Lin ae736a691c Bug 1731455 - disable platform encoder in WebRTC tests on Linux and Windows. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D126313
2021-09-29 16:18:46 +00:00
Steve Fink 9b50396636 Bug 1730539 - Fix ~nsCOMPTr hazard report in SourceElementCallback() r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D125432
2021-09-29 16:17:37 +00:00
Tom Schuster 6f20efa2a0 Bug 1722576 - Fix clang-tidy build error
Differential Revision: https://phabricator.services.mozilla.com/D126921
2021-09-29 14:11:42 +00:00
Frederik Braun a4dd947798 Bug 1716726 - reformat file r=ckerschb
Depends on D126899

Differential Revision: https://phabricator.services.mozilla.com/D126900
2021-09-29 13:29:43 +00:00
Frederik Braun c9588886af Bug 1716726 - avoid races and intermittent csp test failures, by loading frame only after listeners are set up r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D126899
2021-09-29 13:29:43 +00:00
Olli Pettay 0ca720d7a3 Bug 1725680, requested index should be used only by the nsSHistory (and related code in CanonicalBrowsingContext), r=peterv
Using requestedIndex on the child side is hard, because there are race conditions when a session history load is triggered
and at the same time a non-session history load commits a new active entry.

Differential Revision: https://phabricator.services.mozilla.com/D126619
2021-09-29 13:22:34 +00:00
Tom Schuster 5d023856bb Bug 1722576 - Rename PostMessageOptions to StructuredSerializeOptions. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126717
2021-09-29 12:48:17 +00:00
Tom Schuster 5cc3ab5f12 Bug 1722576 - Implement self.structuredClone(). r=smaug,sfink,baku
Differential Revision: https://phabricator.services.mozilla.com/D122339
2021-09-29 12:48:17 +00:00
Niklas Goegge d9e823a6f5 Bug 1725173: Add sec-fetch tests for extension content scripts. r=ckerschb,robwu
Differential Revision: https://phabricator.services.mozilla.com/D122361
2021-09-29 09:42:49 +00:00
Cristian Tuns b022ae1fc0 Backed out 23 changesets (bug 1729329) for causing mochitest failures. CLOSED TREE
Backed out changeset a93125ed5957 (bug 1729329)
Backed out changeset dc99904cbba2 (bug 1729329)
Backed out changeset 71b980477982 (bug 1729329)
Backed out changeset 95961bdd8342 (bug 1729329)
Backed out changeset 75a787792d04 (bug 1729329)
Backed out changeset b2569472c3ff (bug 1729329)
Backed out changeset 41bb3539816d (bug 1729329)
Backed out changeset 28ec9a8c87d8 (bug 1729329)
Backed out changeset e54965a98dc1 (bug 1729329)
Backed out changeset 73767c02ff30 (bug 1729329)
Backed out changeset db670850cf51 (bug 1729329)
Backed out changeset cebb8e6014d9 (bug 1729329)
Backed out changeset 9008da35b3bb (bug 1729329)
Backed out changeset 9c171b04d134 (bug 1729329)
Backed out changeset ea3b6cfc339c (bug 1729329)
Backed out changeset 1f89052caba5 (bug 1729329)
Backed out changeset 105de5963c64 (bug 1729329)
Backed out changeset 122ca4b1e1d5 (bug 1729329)
Backed out changeset b1ed3b891384 (bug 1729329)
Backed out changeset 7c2ea3b9ab2b (bug 1729329)
Backed out changeset 6fba0c67d51e (bug 1729329)
Backed out changeset e8cb19427b66 (bug 1729329)
Backed out changeset e88066fc3cff (bug 1729329)
2021-09-29 04:02:02 -04:00
Peter Van der Beken 7f6162812d Bug 1729329 - Make mInScopeVariables hold objects instead of pointers. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124681
2021-09-29 07:24:46 +00:00
Peter Van der Beken 68dbde3fae Bug 1729329 - Convert nsCOMArrays in XSLT code to nsTArrays and remove impossible to hit OOM errors. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124680
2021-09-29 07:24:45 +00:00
Peter Van der Beken ff0dfb64c1 Bug 1729329 - Remove impossible to hit OOM errors from XSLT code. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124679
2021-09-29 07:24:45 +00:00
Peter Van der Beken 798a9d84fa Bug 1729329 - Make txExecutionState::addInstruction return the added instruction. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124678
2021-09-29 07:24:44 +00:00
Peter Van der Beken a6b741b425 Bug 1729329 - Minor cleanup related to txExecutionState::addToplevelItem. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124677
2021-09-29 07:24:44 +00:00
Peter Van der Beken 35a9dea37a Bug 1729329 - Mark txList::insertBefore as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124675
2021-09-29 07:24:43 +00:00
Peter Van der Beken 6923487cea Bug 1729329 - Mark txStylesheetCompilerState::pushChooseGotoList as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124674
2021-09-29 07:24:43 +00:00
Peter Van der Beken 1b9ea56366 Bug 1729329 - Mark txStylesheetCompilerState::pushObject as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124673
2021-09-29 07:24:42 +00:00
Peter Van der Beken 4bcb6e8918 Bug 1729329 - Mark txStylesheetCompilerState::pushSorter as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124672
2021-09-29 07:24:42 +00:00
Peter Van der Beken 68c80c83ff Bug 1729329 - Mark txStylesheetCompilerState::pushHandlerTable as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124671
2021-09-29 07:24:42 +00:00
Peter Van der Beken 5afab09740 Bug 1729329 - Mark txStylesheetCompilerState::pushPtr as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124670
2021-09-29 07:24:41 +00:00
Peter Van der Beken 365e87f190 Bug 1729329 - Mark txExecutionState::pushResultHandler as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124669
2021-09-29 07:24:41 +00:00
Peter Van der Beken c3f50a101f Bug 1729329 - Mark txExecutionState::pushBool as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124668
2021-09-29 07:24:40 +00:00
Peter Van der Beken 0f40b2a854 Bug 1729329 - Mark txExecutionState::pushEvalContext as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124667
2021-09-29 07:24:40 +00:00
Peter Van der Beken 8e3fab76fc Bug 1729329 - Mark txStack::push as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124666
2021-09-29 07:24:40 +00:00
Peter Van der Beken 88e8e89fd9 Bug 1729329 - Mark txUnionNodeTest::addNodeTest as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124665
2021-09-29 07:24:39 +00:00
Peter Van der Beken 8964e1409b Bug 1729329 - Mark UnionExpr::addExpr as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124664
2021-09-29 07:24:39 +00:00
Peter Van der Beken 4a866d01ab Bug 1729329 - Mark PathExpr::addExpr as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124663
2021-09-29 07:24:39 +00:00
Peter Van der Beken cfb0fd3a44 Bug 1729329 - Mark PredicateList::add as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124662
2021-09-29 07:24:38 +00:00
Peter Van der Beken 7f625827f8 Bug 1729329 - Mark FunctionCall::addParam as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124661
2021-09-29 07:24:38 +00:00
Peter Van der Beken d2a965e883 Bug 1729329 - Mark txPushNewContext::addSort as infallible. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124660
2021-09-29 07:24:37 +00:00
Peter Van der Beken 012b908be4 Bug 1729329 - Remove OOM checks after calling infallible nsTArray methods. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124659
2021-09-29 07:24:37 +00:00
Peter Van der Beken fd4a607035 Bug 1729329 - Remove simple OOM checking. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D124658
2021-09-29 07:24:37 +00:00
Chris Peterson 151ad3eeb4 Bug 1732844 - Fix non-unified build errors in dom/media/webrtc/. r=webrtc-reviewers,ng
dom/media/webrtc/MediaEngineDefault.cpp:102:3 [-Wunreachable-code-loop-increment] loop will run at most once (loop increment never executed)
dom/media/webrtc/MediaEngineDefault.cpp:547:7 [-Wunreachable-code] code will never be executed
dom/media/webrtc/common/browser_logging/WebRtcLog.cpp:29:16 [-Wunused-const-variable] unused variable 'default_log_name'

Differential Revision: https://phabricator.services.mozilla.com/D126755
2021-09-29 03:47:45 +00:00
Chris Peterson 79809454f8 Bug 1732840 - Fix non-unified build errors in webaudio code. r=padenot
Building with `ac_add_options --disable-unified-build` on macOS hits the following warnings-as-errors:

dom/media/GraphDriver.cpp:594:21: warning: code will never be executed [-Wunreachable-code]
dom/media/webaudio/blink/HRTFPanner.cpp:43:16 [-Wunused-const-variable] unused variable 'RenderingQuantum'

Differential Revision: https://phabricator.services.mozilla.com/D126754
2021-09-29 03:46:41 +00:00
Paul Bone a3770290ab Bug 1726712 - Only do a shrinking GC if we're not animating r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D124014
2021-09-29 00:37:39 +00:00
Byron Campen 93b6c3a1d9 Bug 1538440: Re-enable this test on aarch64. r=ng
Since we cannot really run aarch64 windows jobs on try, we're just going to
have to land this and see what happens.

Depends on D126414

Differential Revision: https://phabricator.services.mozilla.com/D126415
2021-09-28 21:24:26 +00:00
Jed Davis fb5243f075 Bug 1715414 - Start PBackground earlier in content processes. r=nika
Previously we were staring `PBackground` in content processes in
response to receiving the `SetXPCOMProcessAttributes` IPC message, which
is sent immediately after the process is launched.  Meanwhile, the
idle scheduler tries to use PBackground when the main thread considers
itself idle.  But if thread scheduling is such that the content process
main thread becomes idle before the IPC I/O thread has received and
dispatched that message, then we have a problem (signaled by an assertion
failure).

This patch moves content process `PBackground` startup earlier, to the
end of `ContentProcess::Init`; that point is after enough of IPC and
XPCOM is started for it to work, but before we start spinning the main
thread event loop.

Differential Revision: https://phabricator.services.mozilla.com/D126144
2021-09-28 19:13:15 +00:00
Sandor Molnar fe9f55e2fb Backed out 2 changesets (bug 1722576) for causing wpt failures in structured-clone.any.worker.html
Backed out changeset d31a1c199922 (bug 1722576)
Backed out changeset 4d0e3d6a1960 (bug 1722576)
2021-09-28 22:59:51 +03:00
alwu 50b24cbdcc Bug 1732807 - add profiler labels and markers in TrackBuffersManager. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D126744
2021-09-28 17:54:00 +00:00
Tom Schuster 6cec896db2 Bug 1722576 - Rename PostMessageOptions to StructuredSerializeOptions. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D126717
2021-09-28 17:09:18 +00:00
Tom Schuster 06bda1bd5c Bug 1722576 - Implement self.structuredClone(). r=smaug,sfink,baku
Differential Revision: https://phabricator.services.mozilla.com/D122339
2021-09-28 17:09:17 +00:00
Frederik Braun 70fd288cc6 Bug 1732896 - expand script,style collection to type document r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D126780
2021-09-28 15:50:08 +00:00
Michelle Goossens c159e29e05 Bug 1727943 - Part 2: Migrate mochitest, reftest and crashtest Windows 10 ccov suites from AWS to Azure r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D125350
2021-09-28 15:27:39 +00:00
Peter Van der Beken 41f13509b9 Bug 1726595 - WebIDL code generation for Promise returning callbacks doesn't handle abrupt completions correctly. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D125531
2021-09-28 15:20:58 +00:00
Haiyang Xu bd1db4dc05 Bug 1732274 - Record a message when directory removal fails in quota manager shutdown; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D126769
2021-09-28 13:30:38 +00:00
Olli Pettay a20bf5465f Bug 1731132, unsuppress painting on top level content presshells sooner, r=emilio
Unsuppressing is done only if the page can use stylesheet cache. That should mean the
load isn't a cold load and also some other resources may be cached and thus
painting could happen sooner.

There is currently a regression around dom.ipc.processCount.webIsolated handling, but the
testing has been done with dom.ipc.processCount.webIsolated==1, and the patch for bug 1731792
should give back similar behavior as what process count 1 has.

Differential Revision: https://phabricator.services.mozilla.com/D125878
2021-09-28 12:04:42 +00:00
Karl Tomlinson d546a8ee6e Bug 1731076 enable test_setSinkId_default_addTrack.html even on platforms without a loopback device r=pehrsons
Depends on D126630

Differential Revision: https://phabricator.services.mozilla.com/D126631
2021-09-28 04:55:17 +00:00
Karl Tomlinson ea5e978b4a Bug 1731076 expose an audio output device and enable test_setSinkId_default_addTrack.html on linux r=pehrsons
This was disabled for all builds due to a failed attempt at equality syntax.
https://hg.mozilla.org/try/rev/5b2572b7e09a27ea8f7f122ff67d8a91b9ae3a27#l1.35

"audiooutput" devices are now not exposed before permission is granted.
https://bugzilla.mozilla.org/show_bug.cgi?id=1493982

Differential Revision: https://phabricator.services.mozilla.com/D126630
2021-09-28 04:55:17 +00:00
criss a8345dc602 Backed out changeset 671ba1530436 (bug 1715414) for casuing bustages on ContentProcess.cpp. CLOSED TREE 2021-09-28 07:33:53 +03:00
Jed Davis 86b3598e72 Bug 1715414 - Start PBackground earlier in content processes. r=nika
Previously we were staring `PBackground` in content processes in
response to receiving the `SetXPCOMProcessAttributes` IPC message, which
is sent immediately after the process is launched.  Meanwhile, the
idle scheduler tries to use PBackground when the main thread considers
itself idle.  But if thread scheduling is such that the content process
main thread becomes idle before the IPC I/O thread has received and
dispatched that message, then we have a problem (signaled by an assertion
failure).

This patch moves content process `PBackground` startup earlier, to the
end of `ContentProcess::Init`; that point is after enough of IPC and
XPCOM is started for it to work, but before we start spinning the main
thread event loop.

Differential Revision: https://phabricator.services.mozilla.com/D126144
2021-09-28 02:02:19 +00:00
criss 9d7155125b Backed out 2 changesets (bug 1731792) for causing devtools failures on browser_console_error_source_click.js
Backed out changeset 567d4eb7bc83 (bug 1731792)
Backed out changeset db57b8568ae9 (bug 1731792)
2021-09-28 06:15:28 +03:00
Katherine Patenio fdf80b1d64 Bug 1724319 - fix browser_test_data_text_csv when downloads pref is true. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D125471
2021-09-28 00:45:35 +00:00
Mike Hommey 585adbd4da Bug 1732245 - Silence the unused-but-set-variable warning in dom/webauthn. r=keeler
dom/webauthn/WinWebAuthnManager.cpp(274,11): error: variable 'winAttestation' set but not used [-Werror,-Wunused-but-set-variable]
    DWORD winAttestation = WEBAUTHN_ATTESTATION_CONVEYANCE_PREFERENCE_ANY;
          ^
dom/webauthn/WinWebAuthnManager.cpp(529,9): error: variable 'winAttachment' set but not used [-Werror,-Wunused-but-set-variable]
  DWORD winAttachment = WEBAUTHN_AUTHENTICATOR_ATTACHMENT_ANY;
        ^

Differential Revision: https://phabricator.services.mozilla.com/D126449
2021-09-27 23:43:16 +00:00
criss 13e6ed006a Backed out changeset 12768301ed56 (bug 1726712) for depending on bug 1727960. CLOSED TREE 2021-09-28 02:32:55 +03:00
Tim Huang bedecdcbae Bug 1731557 - Part 3: Check the fact if the channel/window is allowlisted in ContentBlocking checks. r=pbz
Priviously, the ContentBlocking::ShouldAllowAccessFor() checkes don't
check if the storage permission was came from the allowList or not. This
patch changes that and it will check if the channel/window is
allowlisted at the same moment as checking the ContentBlockingAllowList.
It returns early if the channel/window is in the allowList.

Differential Revision: https://phabricator.services.mozilla.com/D126278
2021-09-27 22:50:42 +00:00
Tim Huang 8cdcc3ac79 Bug 1731557 - Part 2: Modify the antitracking code to use the nsILoadInfo.storagePermission. r=pbz
After we change the old nsILoadInfo.hasStoragePermission, we need to
modify the code that is using it.

Differential Revision: https://phabricator.services.mozilla.com/D126277
2021-09-27 22:50:41 +00:00
Nika Layzell 2793bb97a7 Bug 1731792 - Part 1: Avoid cycling between processes when navigating within a tab, r=smaug
This patch replaces the previous process selection infrastructure with a
new setup implemented entirely in C++, which should more accurately
track the set of processes in use, and should encourage re-use of the
existing content process when navigating by not counting the current
tab.

This approach intentionally allows for process switching to another
process during navigation if there is uneven load between processes to
encourage balanced process use.

I think this may also fix some of the session restore issues with many
tabs using the same process, rather than being spread over 4, as we now
track a tab earlier in its lifecycle before the BrowserParent instance
is created.

Differential Revision: https://phabricator.services.mozilla.com/D126405
2021-09-27 22:34:20 +00:00
alwu f287b980e0 Bug 1605699 - add more assertions to see if sample's attributes are still valid before we return it via `GetSample()`. r=bryce
In D58392 and D58393, we already added some assertions to ensure that (1) sample is valid when it got added (2) sample is valid when we call `GetSample()`.

However, the crash still exists and doesn't hit these two places. So another possible situation is that samples become invalid during modification before we return it via `GetSample()`.

Therefore, add more assertion to see my guess is correct or not.

Differential Revision: https://phabricator.services.mozilla.com/D126722
2021-09-27 18:44:21 +00:00
Alex Lopez 63022efc7a Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-27 18:12:51 +00:00
Mark Banner c24876807d Bug 1730166 - Add an await to test_ipc_messagemanager_blob.js to ensure the test runs to expected completion. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D125202
2021-09-27 16:44:57 +00:00
Tom Ritter f1b76f9152 Bug 1729969: Exempt all Privileged Extensions from script filename validation r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D126133
2021-09-27 15:42:46 +00:00
Tom Ritter 2dd8729bf9 Bug 1729969: Refactor how and when we collect about: and moz-extension data r=freddyb
Previously we would only include about: and moz-extension details
on Windows, because I erroneously thought that was the only place
we could sanitize them properly. But these types of URLs aren't
hard to sanitize, and really it's file:// URIs that are hard, and
those will stay windows only.

So now we collect about: and moz-extension: URIs on all platforms
and we additionally include whether the extension is privileged
or not.

We put them under new keys also.

Differential Revision: https://phabricator.services.mozilla.com/D126132
2021-09-27 15:42:46 +00:00
Tom Ritter 16d622b12d Bug 1729969: Refactor 'extension' Filetype Reporting r=freddyb
The regex will only match file:// URIs, so make that more
explicit in the documentation and code.

Depends on D125113

Differential Revision: https://phabricator.services.mozilla.com/D126131
2021-09-27 15:42:45 +00:00
Tom Ritter 566ef2d95e Bug 1729969: Improve race checking and add an exemption for about:preferences r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D125113
2021-09-27 15:42:45 +00:00
Butkovits Atila 24d8b4f45f Backed out 2 changesets (bug 1731792) for causing mochitest failures.
Backed out changeset 44c28a29bbd8 (bug 1731792)
Backed out changeset 51bdb1d4baab (bug 1731792)
2021-09-27 18:54:29 +03:00
Nika Layzell e1a2352d73 Bug 1731792 - Part 1: Avoid cycling between processes when navigating within a tab, r=smaug
This patch replaces the previous process selection infrastructure with a
new setup implemented entirely in C++, which should more accurately
track the set of processes in use, and should encourage re-use of the
existing content process when navigating by not counting the current
tab.

This approach intentionally allows for process switching to another
process during navigation if there is uneven load between processes to
encourage balanced process use.

I think this may also fix some of the session restore issues with many
tabs using the same process, rather than being spread over 4, as we now
track a tab earlier in its lifecycle before the BrowserParent instance
is created.

Differential Revision: https://phabricator.services.mozilla.com/D126405
2021-09-27 13:49:32 +00:00
Tom Schuster 82e1fab48c Bug 1729239 - Implement HTMLScriptElement.supports(type) method. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D124900
2021-09-27 12:49:51 +00:00
Makoto Kato ef0c6ca163 Bug 1731931 - Set correct input type for <input type=date>. r=masayuki
Actually, date, datetime-local and time won't set correct `mHTMLInputType`
in `InputContext` since focused `aContent` isn't input element on UAWidget.

Another attribute (`inputmode`) is still correct value since `IMEState` isn't
editable, even if this isn't fixed.

Differential Revision: https://phabricator.services.mozilla.com/D126576
2021-09-27 12:41:40 +00:00
Makoto Kato e63a60f263 Bug 1731931 - More clean up IMEStateManager::SetIMEState. r=masayuki
Depends on D126574

Differential Revision: https://phabricator.services.mozilla.com/D126575
2021-09-27 12:41:40 +00:00
Makoto Kato ae1c3269db Bug 1731931 - Add some form control test cases to test_imestate.html etc. r=masayuki
Add date, time and datetime-local that Gecko supports now.

Differential Revision: https://phabricator.services.mozilla.com/D126574
2021-09-27 12:41:39 +00:00
lyavor 23180fc834 Bug 1732319 - Increase timeout for dom/security/test/https-first/test_referrer_policy.html r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D126669
2021-09-27 12:26:48 +00:00
Christoph Kerschbaumer 6def86cd4f Bug 1732633: Update tests within dom/security to work with https-first enabled r=lyavor
Differential Revision: https://phabricator.services.mozilla.com/D126648
2021-09-27 09:36:58 +00:00
Emily McDonough b542ee1e58 Bug 1732393 - Remove useless include of ServoCSSPropList.h in Document.cpp r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D126552
2021-09-26 00:14:39 +00:00
Andreea Pavel 74fb80abc4 Bug 1703712 - disable browser_bug1303838.js for frequent failures r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D125343
2021-09-24 23:18:50 +00:00
Andreea Pavel 6196f00cd0 Bug 1680896 - disable test_pending_animation_tracker.html on win10_2004 not debug r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D126607
2021-09-24 23:09:53 +00:00
Jan Varga 3a33acd549 Bug 1728267 - Remove implicit ToResult from QM_TRY when no extra argument is passed; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125323
2021-09-24 13:08:31 +00:00
Jan Varga 2fd705fb88 Bug 1728267 - Remove implicit ToResult from QM_TRY when no extra argument is passed in dom/localstorage; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125321
2021-09-24 13:08:31 +00:00
Jan Varga ebf956bd02 Bug 1728267 - Remove implicit ToResult from QM_TRY when no extra argument is passed in dom/simpledb; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125320
2021-09-24 13:08:30 +00:00
Jan Varga 685aa0cc5e Bug 1728267 - Remove implicit ToResult from QM_TRY when no extra argument is passed in dom/cache; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125319
2021-09-24 13:08:30 +00:00
Jan Varga 590fd74ae2 Bug 1728267 - Remove implicit ToResult from QM_TRY when no extra argument is passed in dom/indexedDB; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125318
2021-09-24 13:08:30 +00:00
Jan Varga d512bd65af Bug 1728267 - Remove implicit ToResult from QM_TRY when no extra argument is passed in dom/quota; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125317
2021-09-24 13:08:29 +00:00
Kagami Sascha Rosylight f07b669434 Bug 1726157 - Add GetStorageAccess to nsIGlobalObject r=asuth,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D123145
2021-09-24 06:06:51 +00:00
Nika Layzell 66064a20e9 Bug 1725572 - Part 2: Keep BrowsingContext alive until every process has acknowledged the discard, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D125897
2021-09-23 18:54:31 +00:00
Byron Campen f14c7fcd33 Bug 1731302: Block TURN TLS for these test cases. r=ng
Depends on D126022

Differential Revision: https://phabricator.services.mozilla.com/D126023
2021-09-23 17:30:21 +00:00
Byron Campen 4ea90f27f8 Bug 1731302: Update this test to expect relay-tls candidates. r=ng
Depends on D126021

Differential Revision: https://phabricator.services.mozilla.com/D126022
2021-09-23 17:30:21 +00:00
Byron Campen cd01a4f0ec Bug 1731302: Add a "relay-tls" type to our mochitest harness. r=ng
Also, allow nICEr to use loopback on this test, like the other relay tests.

Depends on D126020

Differential Revision: https://phabricator.services.mozilla.com/D126021
2021-09-23 17:30:20 +00:00
Byron Campen 44eebce79b Bug 1731302: Re-enable the TURN TLS mochitest (except on android). r=ng
Depends on D126019

Differential Revision: https://phabricator.services.mozilla.com/D126020
2021-09-23 17:30:20 +00:00
Cosmin Sabou e2e44b6376 Backed out changeset c6819fdea3a5 (bug 1695216) for causing XMLHttpRequestWorker related crashes. CLOSED TREE 2021-09-23 20:25:21 +03:00
Nihanth Subramanya b3c27b86d4 Bug 1695216 - XMLHttpRequest should reset response upon network errors. r=annevk,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D124989
2021-09-23 16:28:23 +00:00
Byron Campen 1b5bbdbc55 Bug 1718297: Re-enable this test on windows. r=ng
Depends on D126413

Differential Revision: https://phabricator.services.mozilla.com/D126414
2021-09-23 13:31:43 +00:00
Byron Campen ffebc18849 Bug 1702071: Re-enable this test on windows fission. r=ng
Depends on D126412

Differential Revision: https://phabricator.services.mozilla.com/D126413
2021-09-23 13:31:42 +00:00
Byron Campen 359e6abd4c Bug 1127828: Re-enable this bug on linux debug e10s. r=ng
Depends on D126411

Differential Revision: https://phabricator.services.mozilla.com/D126412
2021-09-23 13:31:42 +00:00
Byron Campen 7045264fa0 Bug 1171255: Re-enable this test. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D126411
2021-09-23 13:31:41 +00:00
Marian-Vasile Laza 6cd781871d Backed out changeset 914436169022 (bug 1695216) for causing build bustages. 2021-09-23 16:04:34 +03:00
Nihanth Subramanya 9f3565b9fb Bug 1695216 - XMLHttpRequest should reset response upon receiving a bad chunk. r=annevk,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D124989
2021-09-23 12:02:09 +00:00
lyavor c8c3f419e0 Bug 1725402 - HTTPS-First should copy referrerInfo (and potentially more state) from upgraded channel when performing a fallback to http.r=ckerschb,Gijs,freddyb
Differential Revision: https://phabricator.services.mozilla.com/D122585
2021-09-23 10:51:14 +00:00
Jan Varga b4ef3d074a Bug 1728267 - Remove implicit ToResult from QM_TRY when one extra argument is passed; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125316
2021-09-23 10:16:09 +00:00
Jan Varga 4cc9bf1d18 Bug 1728267 - Remove implicit ToResult from QM_TRY when two extra arguments are passed; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125315
2021-09-23 10:16:09 +00:00
Jan Varga eccdb851bb Bug 1728267 - Remove implicit ToResult from QM_WARNONLY_TRY macros; r=dom-storage-reviewers,jstutte,jari
We can use QM_TO_RESULT (instead of MOZ_TO_RESULT) because QM_WARNONLY_TRY
doesn't propagate errors, so no other adjustment is needed.

Differential Revision: https://phabricator.services.mozilla.com/D125314
2021-09-23 10:16:08 +00:00
Butkovits Atila 5d47f7e878 Merge mozilla-central to autoland. CLOSED TREE 2021-09-23 13:14:43 +03:00
Butkovits Atila eb735ac57e Backed out changeset 53b1fa0faa6d (bug 1696251) for breaking the static-analysis integration. a=backout 2021-09-23 13:06:40 +03:00
Marian-Vasile Laza 6f50b58711 Backed out changeset be76cb91e85a (bug 1726157) for causing xpcshell failures on test_ext_cache_api.js. CLOSED TREE 2021-09-23 13:04:56 +03:00
hxu ba25f249eb Bug 1726598 - Remove sFactoryShutdown and sMutex from dom::cache::Manager since they are obselete. r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D125678
2021-09-23 09:04:41 +00:00
Kagami Sascha Rosylight 2094595971 Bug 1726157 - Add GetStorageAccess to nsIGlobalObject r=asuth,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D123145
2021-09-23 08:49:56 +00:00
Mirko Brodesser b507a6325d Bug 1731994: part 4) Declare more methods around `ContentPermissionRequestBase` `const`. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D126350
2021-09-23 08:48:18 +00:00
Mirko Brodesser 5d0afe9005 Bug 1731994: part 3) Extend documentation of `ContentPermissionRequestBase`'s constructor. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D126349
2021-09-23 08:48:17 +00:00
Mirko Brodesser c3adf90c7d Bug 1731994: part 2) Add some documentation to `ContentPermissionRequestBase`'s constructor. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D126338
2021-09-23 08:48:17 +00:00
Mirko Brodesser 34c70a5402 Bug 1731994: part 1) const-qualify some members of `ContentPermissionRequestBase`. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D126337
2021-09-23 08:48:16 +00:00
Jan Varga 1c3defcc5b Bug 1728267 - Fix TestQMResult.cpp to start with the current last stack id instead of using a hard coded constant; r=dom-storage-reviewers,jstutte
This is needed especially when QMResult is used in some global initialization
like InitializeQuotaManager.

Differential Revision: https://phabricator.services.mozilla.com/D125313
2021-09-23 05:27:37 +00:00
Jan Varga c7dda8bf82 Bug 1728267 - Remove implicit ToResult from QM_TRY_RETURN; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125312
2021-09-23 04:06:11 +00:00
Jan Varga 1312f985cf Bug 1728267 - Remove auto conversion of QMResult to nsresult; r=dom-storage-reviewers,jstutte,jari
This will also prevent implicit conversion of Result<V, QMResult> to
Result<V, nsresult>.

Differential Revision: https://phabricator.services.mozilla.com/D125311
2021-09-23 04:06:10 +00:00
Jan Varga 7cd6d08965 Bug 1728267 - Introduce MOZ_TO_RESULT; r=dom-storage-reviewers,jstutte,jari
Differential Revision: https://phabricator.services.mozilla.com/D125310
2021-09-23 04:06:10 +00:00
owlishDeveloper 800e6ffa5d Bug 1697866 - Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly r=agi,JulianWels,nika,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D120914
2021-09-23 01:41:47 +00:00
Jeff Gilbert 86a739553a Bug 1731677 - Remove cruft from webgl-mochitest/*. r=gfx-reviewers,lsalzman
* Remove test_webgl_conformance because we're always conformant now.
* Remove test_webgl_color_buffer_float because we have coverage in CTS
  now.

Differential Revision: https://phabricator.services.mozilla.com/D126139
2021-09-23 00:53:32 +00:00
Mike Hommey 2acd954790 Bug 1731986 - Remove unused remains of WMFMediaDataDecoder telemetry. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D126332
2021-09-23 00:01:14 +00:00
Mike Hommey 56ead2db02 Bug 1731957 - Remove test_group_bug1464568.html. r=mattwoodrow
It does nothing with webrender enabled. Also remove
nsDOMWindowUtils::GetOMTCTransform, because it was only used from that
test.

Differential Revision: https://phabricator.services.mozilla.com/D126316
2021-09-22 23:57:53 +00:00
Jeff Muizelaar 834b8edbaf Bug 1731085. Properly handle unaligned accesses. r=bryce
Previously we ran into crashes here on platforms that
don't support unaligned accesses like ARM32.

Differential Revision: https://phabricator.services.mozilla.com/D126391
2021-09-22 23:21:56 +00:00
Hiroyuki Ikezoe 3608e394a5 Bug 1731009 - Properly check whether the given nsIFrame is inside an OOP Iframe visible rect or not even if the frame size is (0x0). r=tnikkel
Before this change, in nsLayoutUtils::FrameIsScrolledOutOfViewInCrossProcess
we call BaseRect::IsEmpty() for the returned value of GetFrameVisibleRectOnScreen,
unfortunately if the returned value size is (0x0), BaseRect::IsEmpty() returns
true thus we misthink the given nsIFrame is out of the visible area of the OOP
iframe where the nsIFrame lives.

Note that we have already done the same check for in-process cases in
IsFrameScrolledOutOfView [1].

The test case in this change fails without this change, suceeds with
the change. Though, to be honest, I don't know the reason those styles
, `display: grid`, etc. generate (0x0) sized frame even if decendants have
sized.

[1] https://searchfox.org/mozilla-central/rev/15de05f0e6d841cbc2ac66f8dcad72ebdada47f6/layout/generic/nsIFrame.cpp#11090-11094

Differential Revision: https://phabricator.services.mozilla.com/D126312
2021-09-22 22:10:37 +00:00
Noemi Erli 50d4e6c878 Backed out changeset 890d147bad1d (bug 1697866) for causing bustages in WindowGlobalParent.cpp CLOSED TREE 2021-09-23 01:20:43 +03:00
criss 7f1d028a6f Bug 1722668 - Fix lint failure r=fix 2021-09-22 23:27:34 +03:00
Jan Varga 6e2ea3fb58 Bug 1722668 - Add test_unsetLastAccessTime.js for the case when quota information is cached; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D125169
2021-09-22 19:08:33 +00:00
Jan Varga a294b48418 Bug 1722668 - Implement nsIQuotaManagerService::getFullOriginMetadata; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D125168
2021-09-22 19:08:33 +00:00
Sean Feng a1b9c83581 Bug 1731831 - Rename timedChannel to timedChannelInfo for ReplacementChannelConfig r=dragana,necko-reviewers
`timedChannel` is wrong because it implies it is a channel, however it
is in fact a `TimedChannelInfo`.

Differential Revision: https://phabricator.services.mozilla.com/D126254
2021-09-22 19:07:56 +00:00
owlishDeveloper 7acebc65af Bug 1697866 - Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly r=agi,JulianWels,nika,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D120914
2021-09-22 18:30:39 +00:00
Dan Minor f62d42b1d9 Bug 1642415 - Add metasource to L10nFileSourceDescriptor; r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D125242
2021-09-22 18:16:08 +00:00
Dan Minor 2228681a5b Bug 1642415 - Update existing tests to pass metasource into createMock; r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D125240
2021-09-22 18:16:07 +00:00
Dan Minor 7e6caf3eeb Bug 1642415 - Use metasource in FileSource; r=platform-i18n-reviewers,extension-reviewers,gregtatum,zombie
Differential Revision: https://phabricator.services.mozilla.com/D125239
2021-09-22 18:16:07 +00:00
Andreas Farre cd96fe70a4 Bug 1711886 - Part 1: Store PrincipalInfo in SessionStorageCacheParent. r=asuth
By storing the PrincipalInfo in the parent copy it is possible to
query the BackgroundSessionStorageManager withouth the need of a
preprocessing step matching resulting data to principals using the
browsing context tree. Instead the result from the query contains the
principal info.

To be able to initialize the parent actor lazily with a principal
info, it was needed to make clearing the storage be a less fine
grained transaction. Instead of sending updates per cache, we after
clearing in the child process we send a message to the parent that in
turn performs the same steps.

Differential Revision: https://phabricator.services.mozilla.com/D125680
2021-09-22 15:42:46 +00:00
Edgar Chen 3aeb8d0b4b Bug 1730117 - Part 2: Make EnterModalState suppress event handling for the nested in-process documents; r=smaug
This also makes nsIDOMWindowUtils::SuppressEventHandling work properly.

Differential Revision: https://phabricator.services.mozilla.com/D125615
2021-09-22 14:50:56 +00:00
Edgar Chen e016ae9d81 Bug 1730117 - Part 1: Make sync XHR suppress event handling for the nested in-process documents; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D125187
2021-09-22 14:50:55 +00:00
Paul Adenot 26420d2dea Bug 1724014 - Disable audio input processing when checking tab muting. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D126251
2021-09-22 11:48:53 +00:00
Andrew McCreight 61aac61b62 Bug 1731886 - Use release asserts for WebIDL union getters. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D126293
2021-09-22 11:28:58 +00:00
Andreea Pavel a1a601efac Backed out changeset 4256690c306d (bug 1731009) build bustages on nsLayoutUtils.cpp on a CLOSED TREE 2021-09-22 15:50:18 +03:00
Niklas Goegge e2d1c379b3 Bug 1722252: Check if frame options should be ignored after checking if frame options are present. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D121872
2021-09-22 09:47:52 +00:00
Hiroyuki Ikezoe 681fcbb965 Bug 1731009 - Properly check whether the given nsIFrame is inside an OOP Iframe visible rect or not even if the frame size is (0x0). r=tnikkel
Before this change, in nsLayoutUtils::FrameIsScrolledOutOfViewInCrossProcess
we call BaseRect::IsEmpty() for the returned value of GetFrameVisibleRectOnScreen,
unfortunately if the returned value size is (0x0), BaseRect::IsEmpty() returns
true thus we misthink the given nsIFrame is out of the visible area of the OOP
iframe where the nsIFrame lives.

Note that we have already done the same check for in-process cases in
IsFrameScrolledOutOfView [1].

The test case in this change fails without this change, suceeds with
the change. Though, to be honest, I don't know the reason those styles
, `display: grid`, etc. generate (0x0) sized frame even if decendants have
sized.

[1] https://searchfox.org/mozilla-central/rev/15de05f0e6d841cbc2ac66f8dcad72ebdada47f6/layout/generic/nsIFrame.cpp#11090-11094

Differential Revision: https://phabricator.services.mozilla.com/D126312
2021-09-22 09:20:02 +00:00
Matt Woodrow 2572ff38a4 Bug 1725267 - Split Paint entry points to make them easier to understand. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D125800
2021-09-22 03:36:52 +00:00
Matt Woodrow 9773c606a4 Bug 1725267 - Remove unused region from PresShell::Paint. r=tnikkel
PaintFrame only uses the input region if !WidgetLayers, which Paint always passes.

Differential Revision: https://phabricator.services.mozilla.com/D125795
2021-09-22 03:36:50 +00:00
Alex Lopez a8e7083c84 Bug 1696251: Allow mach commands as stand-alone functions and adapt existing commands. r=mhentges,webdriver-reviewers,perftest-reviewers,sparky,whimboo
This removes the `@CommandProvider` decorator and the need to implement
mach commands inside subclasses of `MachCommandBase`, and moves all
existing commands out from classes to module level functions.

Differential Revision: https://phabricator.services.mozilla.com/D121512
2021-09-21 20:38:16 +00:00
Emily McDonough 4f6abc1d13 Bug 1721265 Part 2 - Send information about CSS page-size values to the print frontend through FinishPrintPreview r=emilio
This adds an optional paper orientation to PrintPreviewResultInfo populates it
from the CSS page size when finishing print preview. The value is then placed
in the PrintPreviewSuccessInfo to be sent to the frontend.

Differential Revision: https://phabricator.services.mozilla.com/D124248
2021-09-21 16:38:53 +00:00
Sandor Molnar 8bb72e737f Backed out 2 changesets (bug 1730117) for causing wpt failures in no_window_open_when_term_nesting_level_nonzero. CLOSED TREE
Backed out changeset bafc4ddc87f6 (bug 1730117)
Backed out changeset 27a1d92e550c (bug 1730117)
2021-09-21 18:00:06 +03:00
Edgar Chen 1b679a7b3f Bug 1730117 - Part 2: Make EnterModalState suppress event handling for the nested in-process documents; r=smaug
This also makes nsIDOMWindowUtils::SuppressEventHandling work properly.

Differential Revision: https://phabricator.services.mozilla.com/D125615
2021-09-21 11:39:46 +00:00
Edgar Chen e0ba65d8f8 Bug 1730117 - Part 1: Make sync XHR suppress event handling for the nested in-process documents; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D125187
2021-09-21 11:39:45 +00:00