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

842712 Коммитов

Автор SHA1 Сообщение Дата
Andreas Pehrson e600cfbf57 Bug 1826530 - Implement MessagePumpForNonMainUIThreads for mac. r=xpcom-reviewers,ipc-reviewers,mstange,nika
The MessagePump implemented here is a MessagePumpCFRunLoopBase that also handles
xpcom events.

Differential Revision: https://phabricator.services.mozilla.com/D175101
2023-05-23 06:51:53 +00:00
Andreas Pehrson 7d70292bba Bug 1826530 - From the Windows MessagePumpForNonMainUIThreads remove use of NSAutoReleasePool. r=ipc-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D175145
2023-05-23 06:51:53 +00:00
Andreas Pehrson 919c5ee057 Bug 1826530 - Break platform-dependent MessagePumps out to platform-specific files. r=ipc-reviewers,nika
This makes things a bit clearer when adding the mac implementation.

Differential Revision: https://phabricator.services.mozilla.com/D175100
2023-05-23 06:51:53 +00:00
Andreas Pehrson 8e1b221afc Bug 1809672 - Improve TabCapturerWebrtc log messages. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D174299
2023-05-23 06:14:41 +00:00
Andreas Pehrson cea49bb4c4 Bug 1809672 - Move TabCapturerWebrtc::mRequests to the callback thread. r=karlt
This patch eliminates the race that bug 1809672 points out, and as a bonus it
significantly reduces the number of main thread hops.

Differential Revision: https://phabricator.services.mozilla.com/D174298
2023-05-23 06:14:41 +00:00
Andreas Pehrson b44f3aa817 Bug 1809672 - Make TabCapturerWebrtc thread members const. r=karlt
This patch creates the desktop capture thread only once needed, and then passes
it to the TabCapturerWebrtc ctor so its threading members can be const.

Differential Revision: https://phabricator.services.mozilla.com/D174297
2023-05-23 06:14:40 +00:00
Andreas Pehrson d131f12316 Bug 1809672 - In TabCapturerWebrtc::Start do not call CaptureFrame. r=karlt
This is on par with other DesktopCapturer implementations.

Differential Revision: https://phabricator.services.mozilla.com/D174296
2023-05-23 06:14:40 +00:00
Andreas Pehrson ada895b9ab Bug 1809672 - Mozify some argument names in TabCapturerWebrtc. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D174295
2023-05-23 06:14:40 +00:00
Andreas Pehrson cd60329357 Bug 1809672 - Use webrtc::SequenceChecker and RTC_GUARDED_BY for static analysis of threads in DesktopCaptureImpl. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D176296
2023-05-23 06:14:40 +00:00
Andreas Pehrson 4c44977f03 Bug 1809672 - Remove DesktopCaptureImpl::mRunning. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D174294
2023-05-23 06:14:40 +00:00
Andreas Pehrson bbe4eca70f Bug 1809672 - Only touch DesktopCaptureImpl::mCapturer on the DesktopCapture thread. r=karlt
This fixes an assertion failure in ~ScreenCapturerMac() which checks that it
runs on the capture thread.

Differential Revision: https://phabricator.services.mozilla.com/D176295
2023-05-23 06:14:39 +00:00
Andreas Pehrson 5e3123741f Bug 1809672 - In DesktopCaptureImpl inline EnsureCapturer. r=ng
Since we now know FocusOnSelectedSource will only be called after StartCapture()
there is no need for it to be able to create a capturer. This means
EnsureCapturer() has only one caller and can be inlined into StartCapture().

Note that this patch breaks the (verbose) capturer creation logic out to a
static function, but mCapturer and mCaptureThread assignment happens exclusively
in StartCapture().

Differential Revision: https://phabricator.services.mozilla.com/D174293
2023-05-23 06:14:39 +00:00
Andreas Pehrson b99de5a5dd Bug 1809672 - In DesktopCaptureImpl use std::stoi instead of atoi. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D175220
2023-05-23 06:14:39 +00:00
Andreas Pehrson ec308fb254 Bug 1809672 - In MediaManager call FocusOnSelectedSource only after the device successfully started. r=karlt
This will not only benefit the assumptions that can be made on the backend
side. It also means we will not shift focus to an external window in case a
window capture fails to start, of if an audio device that is part of the same
request fails to start.

Differential Revision: https://phabricator.services.mozilla.com/D174292
2023-05-23 06:14:39 +00:00
Andreas Pehrson 7dd63395c2 Bug 1809672 - Make TabCapturerWebrtc::mBrowsingId const. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D174291
2023-05-23 06:14:39 +00:00
Andreas Pehrson d72641a5b8 Bug 1809672 - Refactor TabCapturerWebrtc creation. r=ng,webrtc-reviewers
This restores libwebrtc's DesktopCapturer to their upstream state as far as
the tab capturer is concerned.

Differential Revision: https://phabricator.services.mozilla.com/D174290
2023-05-23 06:14:39 +00:00
Michael Froman 5fbcdcf947 Bug 1832751 - add no-op tracking files for cherry-picked commits. r=pehrsons,webrtc-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D177919
2023-05-23 06:14:38 +00:00
Andreas Pehrson 4447aba5a4 Bug 1832751 - cherry-pick upstream libwebrtc commit 301e546a68. r=webrtc-reviewers,mjf
Upstream commit: https://webrtc.googlesource.com/src/+/301e546a689020320f919a660591759e993ef051
    Remove SequenceCheckerImpl::valid_system_queue_

    As pointed out in issue webrtc:15146 this Mac/iOS specific variable,
    makes the SequenceChecker behave incorrectly on those platforms.

    The variable was introduced in a CL that merged the previous checker
    classes, ThreadChecker and SequencedTaskChecker, but curiously neither
    one of them had such a variable. So I'm not exactly sure what problem
    was being solved. Hence I'm wondering if we actually need it.

    Reference: https://webrtc-review.googlesource.com/c/src/+/129721

    Bug: webrtc:15146
    Change-Id: Ia7a9eb17b993c4f8a1e8204c658bf0b3dbdaa1e0
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/304401
    Reviewed-by: Peter Hanspers <peterhanspers@webrtc.org>
    Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#40019}

Differential Revision: https://phabricator.services.mozilla.com/D177875
2023-05-23 06:14:38 +00:00
Andreas Pehrson 8824e00492 Bug 1832751 - cherry-pick upstream libwebrtc commit 3da04a93cd. r=webrtc-reviewers,mjf
Upstream commit: https://webrtc.googlesource.com/src/+/3da04a93cd18dc7b65c6756910cc8a9cbf20fb8c
    Allow SequenceChecker to be initialized detached.

    The motivation for this is to not have to implement this pattern:

    foo.h:

    class Foo {
     public:
      Foo();
     private:
      SequenceChecker checker_;
    };

    foo.cc:

    Foo::Foo() {
      checker_.Detach();
    }

    And instead be able to do this inline in the .h file:

    class Foo {
     public:
      Foo();
     private:
      SequenceChecker checker_{SequenceChecker::kDetached};
    };

    Bug: none
    Change-Id: Idd7ca82d15c2f77f3aaccf26f1943a49f4b40661
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/298445
    Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
    Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#39616}

Differential Revision: https://phabricator.services.mozilla.com/D177874
2023-05-23 06:14:38 +00:00
Ryan VanderMeulen 6af5555c16 Bug 1833859 - Update double-conversion to version 3.3.0. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D178437
2023-05-23 04:01:10 +00:00
Norisz Fay 29239058b2 Backed out changeset 10ef626b7f82 (bug 1834388) for causing wpt failures on dynamic-range.html CLOSED TREE 2023-05-23 06:45:01 +03:00
Mike Hommey 3b332113e3 Bug 1802675 - Don't build winheap.cpp when mozglue is a static library. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D163383
2023-05-23 03:01:22 +00:00
Mike Hommey 1ff5f4f2af Bug 1834001 - Remove VS 2017 toolchain. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D178501
2023-05-23 03:00:02 +00:00
Masayuki Nakano fb4359c2c7 Bug 1833320 - Make `HTMLEditor::HandleInsertParagraphInListItemElement` consider caret position without `WSScanResult` if it reaches a block boundary r=m_kato
When `WSRunScanner::ScanNextVisibleNodeOrBlockBoundary` reaches a block
boundary, it may return `WSScanResult` without valid position value from
this path:
https://searchfox.org/mozilla-central/rev/11a4d97a7b5cdfa133f4bda4525649f651703018/editor/libeditor/WSRunObject.cpp#1777-1782

That happens if the reason is `WSType::CurrentBlockBoundary` or
`WSType::OtherBlockBoundary` even in usual cases.

If it's `WSType::CurrentBlockBoundary`, `TextFragmentDataAtStartRef().EndRef()`
may point in a text node in the block, but its `GetEndReasonContent()` returns
the block.  I'm not sure whether this is intentional result. (I guess t's a
bug.)

If it's `WSType::OtherBlockBoundary`, `TextFragmentDataAtStartRef().EndRef()`
may point in the list item, but `GetEndReasonContent()` returns a child block.

Those scan result change needs to understand `TextFragmentData` behavior again,
but it's difficult as you know. Therefore, this fixes the caller side not to
use `WSScanResult::Point()` if it meets a block boundary since start of the
block boundary is a good place to put caret.

Differential Revision: https://phabricator.services.mozilla.com/D178281
2023-05-23 02:46:20 +00:00
Mike Hommey d4194ac378 Bug 1833995 - Add a macOS 13.3 SDK toolchain. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D178498
2023-05-23 00:16:41 +00:00
Mike Hommey ed40b2cd61 Bug 1833995 - Add a script to explore the Apple software update catalog. r=firefox-build-system-reviewers,gsvelto,sergesanspaille
and a doc on how to use it to find SDKs.

Differential Revision: https://phabricator.services.mozilla.com/D178497
2023-05-23 00:16:41 +00:00
Butkovits Atila a35652ef08 Backed out changeset 4a8d978dd79c (bug 1834164) for causing failures at 1467277-1.html. CLOSED TREE 2023-05-23 03:23:58 +03:00
Butkovits Atila 86a49d4b27 Backed out 11 changesets (bug 1834014, bug 1829691) for causing failures at browser_console_content_object_in_sidebar.js.
Backed out changeset bd3077e43541 (bug 1834014)
Backed out changeset 96dc91b50ecf (bug 1834014)
Backed out changeset 6099ee399488 (bug 1829691)
Backed out changeset d3488c2d7309 (bug 1829691)
Backed out changeset a89ce140c316 (bug 1829691)
Backed out changeset 40d7f94265c2 (bug 1829691)
Backed out changeset e86660a6f994 (bug 1829691)
Backed out changeset 5c63d7e15cac (bug 1829691)
Backed out changeset 2e5a01539749 (bug 1829691)
Backed out changeset 1b53cac4d88b (bug 1829691)
Backed out changeset be4a4c19e24f (bug 1829691)
2023-05-23 03:20:38 +03:00
Mike Hommey c95c96ee73 Bug 1833958 - Upgrade minimum supported Clang version to 7. r=firefox-build-system-reviewers,sergesanspaille
Per
https://glandium.github.io/firefox-linux-compat-matrix/#scope=build&version=115&show_eol=false
this leaves out Ubuntu 16.04, which hasn't built a newer version of
Firefox since version 88.0, and SUSE SLE-12-SP4, which goes EOL next
month, so before 115 is released.

Differential Revision: https://phabricator.services.mozilla.com/D178485
2023-05-22 23:07:29 +00:00
Nicklas Boman b91ba7b84e Bug 1833732 - Freebsd build error after wifi scanning refactor r=necko-reviewers,jesup DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D178375
2023-05-22 22:11:08 +00:00
Andrew Sutherland 49e7f477b9 Bug 1834360 - Add support for ES modules in ChromeWorker. r=dom-worker-reviewers,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D178696
2023-05-22 22:00:03 +00:00
Glenn Watson 42ef0ea1c2 Bug 1830588 - Fix clip on fractional composite prims r=gfx-reviewers,lsalzman
Also add a test and re-enable the new clip-mask code paths.

Differential Revision: https://phabricator.services.mozilla.com/D178614
2023-05-22 21:48:13 +00:00
CanadaHonk c0c95c1afe Bug 1834164 - Serialize NaN and infinity numbers r=emilio
Added NaN/inf serialization of <number> and changed calc() code to not
remove NaN/infinity in code using it.

This change is unfortunately imperfect as some things using <number>
still refuse to serialize NaN/infinity for some reason (scale()?), but
this bug/patch is just for <number> so leaving that out of scope for this.

Also added new WPT test file for number NaN/inf serialization based
on existing serialization tests (all pass already!).

5 other WPT subtests now newly pass.

Differential Revision: https://phabricator.services.mozilla.com/D178587
2023-05-22 21:46:42 +00:00
Kagami Sascha Rosylight 71f894693b Bug 1834344 - Add test for accessing .body after cancellation r=smaug
D177904 changed the behavior in a good way but that's not being tested.

Differential Revision: https://phabricator.services.mozilla.com/D178708
2023-05-22 21:13:20 +00:00
Erik Nordin f5d78becdd Bug 1834014 - Update always- and never-translate menuitem tests r=gregtatum
Depends on D178512

Differential Revision: https://phabricator.services.mozilla.com/D178513
2023-05-22 21:11:12 +00:00
Erik Nordin d97c2e7033 Bug 1834014 - Add effects to always- and never-translate menuitems r=gregtatum
Adds functionality to the following menuitems:

always-translate language will immediately translate
the page if not already translated.

never-translate language will hide the translations
button and restore the page if translated.

never-translate site will hide the translations
button and restore the page if translated.

Depends on D177860

Differential Revision: https://phabricator.services.mozilla.com/D178512
2023-05-22 21:11:12 +00:00
Erik Nordin d96be7b26f Bug 1829691 - Add Translations panel settings menuitem tests r=gregtatum
Adds tests for all of the menuitems in the Translations
panel settings menu, including always-translate-language,
never-translate-language, and never-translate-site.

Depends on D177859

Differential Revision: https://phabricator.services.mozilla.com/D177860
2023-05-22 21:11:12 +00:00
Erik Nordin f160cb118c Bug 1829691 - Add never-translate-site functionality r=gregtatum
Adds functionality for the never-translate-site
menuitem in the Translations panel settings menu.
When active, translations will not be offered for
this website.

Depends on D177858

Differential Revision: https://phabricator.services.mozilla.com/D177859
2023-05-22 21:11:12 +00:00
Erik Nordin 25c37eaca9 Bug 1829691 - Add never-translate-language functionality r=gregtatum
Adds functionality for the never-translate-language
menuitem in the Translations panel settings menu.
When active, translations will not be offered for
websites in this language.

Depends on D177857

Differential Revision: https://phabricator.services.mozilla.com/D177858
2023-05-22 21:11:12 +00:00
Erik Nordin 9c721f1794 Bug 1829691 - Add always-translate-language functionality r=gregtatum
Adds functionality for the always-translate-language
menuitem in the Translations panel settings menu.
When active, websites will auto-translate for that
language.

Depends on D177856

Differential Revision: https://phabricator.services.mozilla.com/D177857
2023-05-22 21:11:11 +00:00
Erik Nordin 2208af6a3a Bug 1829691 - Add Translations settings menuitems r=gregtatum,fluent-reviewers,flod
Adds new menuitems to the Translations panel settings
menu for always translate language, never translate
language, and never translate site.

Depends on D177855

Differential Revision: https://phabricator.services.mozilla.com/D177856
2023-05-22 21:11:11 +00:00
Erik Nordin 2cd76b9910 Bug 1829691 - Add Translations about:preferences tests r=gregtatum
Adds tests for the Translations Preferences panel
in the about:preferences page.

Depends on D177854

Differential Revision: https://phabricator.services.mozilla.com/D177855
2023-05-22 21:11:11 +00:00
Erik Nordin cd28ad2532 Bug 1829691 - Add Translations settings panel to about:preferences r=gregtatum,fluent-reviewers,settings-reviewers,Gijs,flod
Adds a new button and panel for managing Translations
settings to the about:preferences panel.

Manages always-translate languages, never-translate
languages, and never-translate sites.

Depends on D178228

Differential Revision: https://phabricator.services.mozilla.com/D177854
2023-05-22 21:11:11 +00:00
Erik Nordin 30d0a6e3d7 Bug 1829691 - Copy Translation Exceptions code to new files r=gregtatum,settings-reviewers,Gijs
Copies the code for Translation exceptions in about:preferences
to new files to preserve the git-blame history so that they can be
modified in a subsequent patch

Differential Revision: https://phabricator.services.mozilla.com/D178228
2023-05-22 21:11:11 +00:00
Erik Nordin 6d99d38a6a Bug 1829691 - Skip about:translations debounce tests on Linux r=gregtatum
Skips a test that is causing intermittent failures in CI, which
tests functionality that is not part of the Translations MVP.
See Bug 1821461

Differential Revision: https://phabricator.services.mozilla.com/D178723
2023-05-22 21:11:11 +00:00
Mike Hommey 13d7e1f500 Bug 1751561 - Don't include DllMain when mozglue is linked statically. r=jandem
mozglue has its own DllMain, which conflicts with this one.

Differential Revision: https://phabricator.services.mozilla.com/D178410
2023-05-22 21:03:41 +00:00
Dan Baker 2a66925d66 Bug 1834369 - Relax target values to improve test performance on slower machines.r=jib
Differential Revision: https://phabricator.services.mozilla.com/D178698
2023-05-22 20:53:56 +00:00
Emilio Cobos Álvarez 7bf7be802a Bug 1834388 - Fix dynamic-range WPT tests for the boolean context. r=CanadaHonk
https://drafts.csswg.org/mediaqueries-5/#mq-boolean-context is pretty
clear:

> If the feature would be true for any value other than the number 0, a
> <dimension> with the value 0, the keyword none, or a value explicitly
> defined by that media feature to evaluate as false in a boolean
> context, the media feature evaluates to true.
> Otherwise, it evaluates to false.

These hit the "otherwise". The unknown behavior might make sense, but if
someone wants it the spec needs to change (for all media features
consistently).

Differential Revision: https://phabricator.services.mozilla.com/D178712
2023-05-22 20:49:04 +00:00
Norisz Fay faf5a7e250 Backed out changeset 02068c2fa1bc (bug 1810582) for causing bustages on nsConsoleService.cpp CLOSED TREE 2023-05-23 01:12:42 +03:00
Norisz Fay 52188d9733 Backed out changeset e2d6154400a7 (bug 1833403) for causing reftest failures on resizer-bottomend.xhtml 2023-05-23 01:03:26 +03:00