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

749247 Коммитов

Автор SHA1 Сообщение Дата
Tim Nguyen be558cf7e8 Bug 893934 - Flatten toolkit/components/alerts/resources/content/. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D108755
2021-03-17 11:53:33 +00:00
Niklas Goegge abde84c961 Bug 1698767 - Use ExtContentPolicyType instead of InternalContentPolicyType in SecFetch::IsUserTriggeredForSecFetchSite r=ckerschb
The internal content policy type of `TYPE_INTERNAL_IFRAME` gets mapped to `ExtContentPolicy::TYPE_SUBDOCUMENT`, so there is no need to use the internal type.

Differential Revision: https://phabricator.services.mozilla.com/D108640
2021-03-17 11:43:34 +00:00
Niklas Gögge ed5eaf624b Bug 1647128 - Detect webby navs caused by meta refreshes in IsUserTriggeredForSecFetchSite check r=necko-reviewers,ckerschb,valentin
Differential Revision: https://phabricator.services.mozilla.com/D108035
2021-03-17 11:42:55 +00:00
Tim Nguyen b1d31e62a3 Bug 1699061 - Remove sort-asc-classic.png and sort-dsc-classic.png. r=Paenglab
Differential Revision: https://phabricator.services.mozilla.com/D108756
2021-03-17 11:37:25 +00:00
Justin Wood 88d5d90dae Bug 1696944 - Part 3 - Add new image to taskcluster.yml. r=aki
Differential Revision: https://phabricator.services.mozilla.com/D108423
2021-03-17 11:22:02 +00:00
sotaro 429fab5354 Bug 1699001 - Rename RenderThread::SharedGL() to SingletonGL() r=nical
Name of Singleton is commonly used in gecko.

Name of SharedGL is confusing. It looks like "shared context", but it is not. The GL context is actually a singleton GLContext that is used by all WebRender. Each window creates one EGLSurface for each window. EGLSurface is switched for each window rendering.

Differential Revision: https://phabricator.services.mozilla.com/D108714
2021-03-17 10:51:45 +00:00
Nicolas Chevobbe 6534ca6963 Bug 1642599 - [devtools] Enable all console messages server support everywhere. r=ochameau,devtools-backward-compat-reviewers.
When enabling the watcher support, we end up having duplicate platform messages as we
received them both from the content process and the parent process (the messages are cloned).

A couple test cases are added to ensure we handle all kind of messages properly.

Depends on D107648

Differential Revision: https://phabricator.services.mozilla.com/D103285
2021-03-17 10:04:44 +00:00
Nicolas Chevobbe 4ad66686de Bug 1642599 - [devtools] Don't handle CSS messages in content processes. r=ochameau.
We're getting those messages directly from the frame targets, so we can safely
ignore them in the content process.
A test case is added in a following patch in this queue.

Differential Revision: https://phabricator.services.mozilla.com/D108632
2021-03-17 10:04:44 +00:00
Nicolas Chevobbe 26a0d5c543 Bug 1642599 - [devtools] Add test for webextension messages in Browser Console. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D108394
2021-03-17 10:04:43 +00:00
Nicolas Chevobbe 95dc829a7c Bug 1642599 - [devtools] Revert Bug 1697453. r=ochameau.
The patch for Bug 1697453 made it so we weren't dispatching resources tied to
a target being destroyed. This revealed an issue when adding a test for webextension
popup messages, where the target is being destroyed before the browser console can
consume it (see following patches in this queue).
Since Bug 1697453 was only done to try to make `browser_toolbox_backward_forward_navigation.js`
pass when fission is enabled, and given it's still failing, let's revert this
patch for now and reassess if this is needed, and if so, if we shoul only do that
for some specific resources.

Differential Revision: https://phabricator.services.mozilla.com/D108631
2021-03-17 10:04:43 +00:00
nchevobbe ada2cfd902 Bug 1642599 - [devtools] Don't use watchers in browser console/toolbox if devtools.browsertoolbox.fission is disabled. r=ochameau.
We bail out early in TargetList#hasTargetWatcherSupport and ResourceWatcher#hasResourceWatcherSupport
if we're in the browser toolbox or browser console and the pref is disabled.

Depends on D107410

Differential Revision: https://phabricator.services.mozilla.com/D107648
2021-03-17 10:04:43 +00:00
Thomas Wisniewski 3a36501cfa Bug 1693824 - Ship v21.0.0 of webcompat system addon. r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D108703
2021-03-17 10:04:08 +00:00
Alexandru Michis ae6b1fe49b Merge mozilla-central to autoland a=merge on a CLOSED TREE 2021-03-17 12:08:04 +02:00
Dave Hunt 93b09177fe Bug 1697199 - Remove remaining raptor-webext pageload test configurations r=perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D108490
2021-03-17 09:57:41 +00:00
Alexandru Michis b7b156e536 Merge autoland to mozilla-central. a=merge 2021-03-17 11:45:21 +02:00
Jon Coppeard f684ec5a23 Bug 1698543 - Rework handling of interaction between incremental barriers and rope flattening r=sfink
Currently we have a special path for performing barriers during rope flattening to take account of the fact that this overwrites the cell header word of ropes temporarily, making these cells untraceable.

The problem is that a rope can already be in the barrier buffer before flattening starts and so we need to check for this when processing the buffer.

The patch reworks use of temporary GC data to set one of the cell header flags when in use. This means we can check for it when processing the barrier buffer. It removes the special case function for barriers, which makes it slightly less efficient as we will now buffer all these ropes before skipping them later on. Hopefully that is not too deterimental to performance.

Differential Revision: https://phabricator.services.mozilla.com/D108664
2021-03-17 09:01:16 +00:00
Florian Quèze dc0e6ae9f9 Bug 1699036 - Fix build error on (symbol 'profiler_is_locked_on_current_thread()' is multiply-defined) on platforms with MOZ_GECKO_PROFILER not defined, r=gerald. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D108744
2021-03-17 08:50:18 +00:00
Alexandru Michis 0210028eb5 Backed out changeset 801dec9ebbd7 (bug 1697865) for causing frequent crashes on machines with dedicated graphics cards. a=backout 2021-03-17 10:33:28 +02:00
Jens Stutte 48b1ebeb71 Bug 1696397: Move SpinEventLoopUntilOrShutdown to -Quit and move the current shutdown state logic from nsThreadManager to AppShutdown; r=kmag,xpcom-reviewers
The SpinEventLoopUntilOrShutdown is interrupted in the main process only at stage "xpcom-shutdown", which is too late. In a content process instead we interrupt it early enough, at "content-child-will-shutdown".

This patch removes the current observer logic in nsThreadManager in favor of a current shutdown phase state machinery in AppShutdown and renames SpinEventLoopUntilOrShutdown to SpinEventLoopUntilOrQuit. It also ensures that SpinEventLoopUntilOrQuit breaks early (at "quit-application" in the main process).

For a further possible cleanup around shutdown state in child and parent process please refer to bug 1697745.

We have no automated test for this edge case, but we have diagnostic telemetry that will tell us if it helps.

Differential Revision: https://phabricator.services.mozilla.com/D107619
2021-03-17 08:07:48 +00:00
Hiroyuki Ikezoe 7f0f25eb52 Bug 1696718 - Propagate popup window position update to descendants documents. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D108559
2021-03-17 08:05:32 +00:00
Lars T Hansen 53265a2d6f Bug 1698984 - Allow large-memory test to oom. r=jandem
This test can oom on some underprovisioned 64-bit platforms like those in our CI,
so allow that as an outcome.

Differential Revision: https://phabricator.services.mozilla.com/D108740
2021-03-17 07:40:17 +00:00
Mike Hommey fd54149a7a Bug 1698706 - Fix linux build bustage. a=bustage-fix CLOSED TREE 2021-03-17 10:23:21 +02:00
Jan Varga c546aae9a0 Bug 1697115 - Rationalize QuotaManager::ResetUsageForClient arguments; r=dom-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D107616
2021-03-17 06:56:39 +00:00
Jan Varga b59182de8d Bug 1697115 - Rationalize QuotaManager::DecreaseUsageForClient arguments; r=dom-storage-reviewers,sg
Note that the method DecreaseUsageForOrigin has been renamed to
DecreaseUsageForClient.

Differential Revision: https://phabricator.services.mozilla.com/D107615
2021-03-17 06:56:39 +00:00
Jan Varga de33fe2cf6 Bug 1697115 - Rationalize QuotaManager::NoteOriginDirectoryCreated arguments and return type; r=dom-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D107614
2021-03-17 06:56:39 +00:00
Jan Varga ebce7d3ac8 Bug 1697115 - Rationalize QuotaManager::EnsureQuotaForOrigin arguments; r=dom-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D107612
2021-03-17 06:56:38 +00:00
Jan Varga d45596dcf0 Bug 1697115 - Rationalize QuotaManager::InitQuotaForOrigin arguments; r=dom-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D107611
2021-03-17 06:56:38 +00:00
Jan Varga 8a8706b797 Bug 1697115 - Use FullOriginMetadata instead of OriginMetadata in QuotaManager::LoadQuota::LoadQuotaFromCache; r=dom-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D107610
2021-03-17 06:56:38 +00:00
Jan Varga 83de9af404 Bug 1697115 - Rename mTimestamp to mLastAccessTime in FullOriginMetadata; r=dom-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D107609
2021-03-17 06:56:37 +00:00
Karl Tomlinson 3732339b05 Bug 1699026 Add helper methods to manage incomplete GetUserMediaTasks r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D108380
2021-03-17 06:28:18 +00:00
Karl Tomlinson e79a9a497b Bug 1699026 - Simplify some MozPromiseHolder constructions r=pehrsons
MozPromiseHolder stores only a single pointer and so there is no advantage to
having an allocation and additional pointer indirection.

Differential Revision: https://phabricator.services.mozilla.com/D108379
2021-03-17 06:28:18 +00:00
Karl Tomlinson 4e2e5e1886 Bug 1699026 - use Fail() for GetUserMediaTask::Denied() r=pehrsons
There is a change in behavior that the SourceListener::Stop() is now run off a
queued event, but timing is not urgent.

Differential Revision: https://phabricator.services.mozilla.com/D108378
2021-03-17 06:28:18 +00:00
Karl Tomlinson 17d4cb0af4 Bug 1699026 - Remove unreached off-main-thread GetUserMediaTask::Denied() path r=pehrsons
Denied() is called only from Observe(), which is main thread only.

The comment "Should happen *after* error runs for consistency, but may not
matter" was obsolete as of
https://hg.mozilla.org/mozilla-central/rev/46c936ce7efed56027d7770690f94ee31f415d7a#l3.634

Differential Revision: https://phabricator.services.mozilla.com/D108377
2021-03-17 06:28:17 +00:00
Karl Tomlinson 926480113b Bug 1699026 - reject MozPromise immediately in GetUserMediaTask::Fail() r=pehrsons
MozPromise can be rejected from any thread.

"Do after the above runs, as it checks active window list" was obsolete as of
https://hg.mozilla.org/mozilla-central/rev/99426a6a77bf8ddfb334ed052eb18e2a9bc48122#l3.223

Differential Revision: https://phabricator.services.mozilla.com/D108376
2021-03-17 06:28:17 +00:00
Karl Tomlinson 83f737b345 Bug 1699026 - Remove unused GetUserMediaTask::SetConstraints() r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D108375
2021-03-17 06:28:16 +00:00
Karl Tomlinson 22194d1ca0 Bug 1699026 add webidl for selectAudioOutput behind media.setsinkid.enabled r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D108368
2021-03-17 06:28:16 +00:00
Karl Tomlinson 3ab6d93988 Bug 1699026 - set media.setsinkid.enabled for all audio-output wpts r=jib
Differential Revision: https://phabricator.services.mozilla.com/D108367
2021-03-17 06:28:15 +00:00
Alexandru Michis 0f6819e94d Bug 1697970 - Disable test_arraybufferinputstream_large.html on linux asan for permafailing. r=jstutte,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D108220
2021-03-17 05:56:22 +00:00
Henrik Skupin 940df9b40c Bug 1691402 - [marionette] Don't try to destroy a non-existent session. r=marionette-reviewers,jdescottes,jgraham
If there is no active WebDriver session the code
related to deleting a session, and resetting other
state should not be run again.

This could actually happen when the
"Marionette:Quit" command is called, which itself
destroys the session, and the follwing socket
connection drop tries to run it again.

Differential Revision: https://phabricator.services.mozilla.com/D108169
2021-03-17 05:41:28 +00:00
Henrik Skupin ab272ca331 Bug 1691402 - [marionette] Move current browsing context members to WebDriver session. r=marionette-reviewers,jdescottes,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D108168
2021-03-17 05:41:28 +00:00
Henrik Skupin 2b0aabf308 Bug 1691402 - [marionette] Add session module for WebDriver session. r=marionette-reviewers,jdescottes,jgraham
This patch creates a new module for the WebDriver session
specific implementation. It no longer requires session data
like capabilities to be directly bound to the GeckoDriver class.

Differential Revision: https://phabricator.services.mozilla.com/D107552
2021-03-17 05:41:27 +00:00
Sam Foster 6ba985b5a8 Bug 1690567 - Hide some sync context menu items when not signed in. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D104746
2021-03-17 04:22:50 +00:00
Daniel Holbert c05be9f492 Bug 1699000: Use GetCrossDocParentFrameInProcess() in TextOverflow.cpp. r=tnikkel
This patch doesn't change behavior; GetCrossDocParentFrameInProcess() is just a
wrapper for GetCrossDocParentFrame(), which is what we were calling before.

The "InProcess" version of this API (which we're migrating to in this patch) is
used to annotate GetCrossDocParentFrame() callsites that have been vetted as
being OK with the fact that this API returns null at the boundary of a
cross-origin iframe, if fission is enabled.

In this patch, the one call that I'm migrating is inside of
IsFrameDescendantOfAny(), which is a helper-function called by
TextOverflow::PruneDisplayListContents(), which is a function that we use to
traverse a display list and hide content that's been hidden via
"text-overflow:ellipsis" or "-webkit-line-clamp".

We're OK to migrate this call to the "InProcess"-flavored API, because it's
just looking back up the frame tree from the display items that we can reach in
our traversal, which are trivially all part of the same process.

Differential Revision: https://phabricator.services.mozilla.com/D108710
2021-03-17 04:07:25 +00:00
Markus Stange 22e96ffd4e Bug 1697991 - Enable Dark Mode support in the crash reporter client, and fix a case of black-on-black text. r=mac-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D108151
2021-03-17 03:40:08 +00:00
Chris Peterson 7cba58e66d Bug 1571631 - Remove MOZ_MUST_USE definition. r=sg
Depends on D108345

Differential Revision: https://phabricator.services.mozilla.com/D108346
2021-03-17 03:01:21 +00:00
Chris Peterson 7bc752e42b Bug 1571631 - Replace MOZ_MUST_USE with [[nodiscard]] in mfbt. r=sg
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

Depends on D108344

Differential Revision: https://phabricator.services.mozilla.com/D108345
2021-03-17 03:01:21 +00:00
Mike Hommey 0ea5ad6742 Bug 1698706 - Always add PIC flags to C{,XX}FLAGS. r=firefox-build-system-reviewers,andi,sheehan,mhentges
The build always uses them anyways, but configure tests don't, and some
of them fail as a consequence in some cases (example: when UBsan is
enabled, all AC_LANG_CPLUSPLUS + AC_CHECK_FUNCS tests fail). We also had
similar problems in the past, such as bug 1513605.

By adding the PIC flags to CFLAGS and CXXFLAGS, we ensure old-configure
tests use the flags as well.

While here, we also remove DSO_CFLAGS, which was always empty, and we
stop passing -fPIC to wasm compiles, because it has no effect there.

Differential Revision: https://phabricator.services.mozilla.com/D108560
2021-03-17 02:27:22 +00:00
Mike Hommey f74f871db7 Bug 1697950 - Partial support for mach bootstrap on arm64 mac. r=firefox-build-system-reviewers,sheehan,mhentges
This is enough to make the instructions on the Google doc unnecessary.

Differential Revision: https://phabricator.services.mozilla.com/D108132
2021-03-17 02:11:51 +00:00
Timothy Nikkel b548753fc2 Bug 1698546. Don't allow double tap to zoom on mac when context menus are open in the same situations that we don't allow pinch zooming. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D108724
2021-03-17 01:53:22 +00:00
Csoregi Natalia 1fe0f680de Backed out changeset 86089c4629b5 (bug 1698706) for spidermonkey bustage. CLOSED TREE 2021-03-17 03:48:31 +02:00