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

803258 Коммитов

Автор SHA1 Сообщение Дата
Nika Layzell 939c91e1d9 Bug 1772006 - Part 3: Move basic string APIs to more appropriate .cpp files, r=xpcom-reviewers,barret
Due to the history of how nsString was implemented, many APIs ended up being
implemented in inappropriate files. This change moves simple definitions which
won't require any changes for each type to happen within that type's .cpp file.

This is necessary to eventually enable the directory to be built without
unified builds.

Differential Revision: https://phabricator.services.mozilla.com/D148298
2022-07-30 00:12:47 +00:00
Nika Layzell b41825fb93 Bug 1772006 - Part 2: Support converting nsTStringRepr<T> to std::basic_string_view<T>, r=xpcom-reviewers,barret
This type was introduced in c++17, and can be used as a convenient standard
medium for passing around borrowed substring references. It can be implicitly
converted to from string literals and `const char_type*`, meaning that after
this change it can be used as a convenient catch-all type to replace seperate
overloads for `const self_type&`, `const char_type*` and `const
char_type(&)[N]`.

std::basic_string_view also provides standard implementations of some
algorithms which will be convenient for code cleanup in later parts of this
bug.

Differential Revision: https://phabricator.services.mozilla.com/D148297
2022-07-30 00:12:47 +00:00
Nika Layzell f84e572177 Bug 1772006 - Part 1: Split nsSubstring.cpp into relevant files, r=xpcom-reviewers,barret
This file only exists as a wrapper around nsTSubstring.cpp, with some methods
left in it due to how the string types were defined before they were turned
into templates.

Differential Revision: https://phabricator.services.mozilla.com/D148296
2022-07-30 00:12:46 +00:00
Andrew Osmond c5bc96cab6 Bug 1782242 - Remove assert for CanvasManagerChild::Get that we handle gracefully anyways. r=gfx-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D153290
2022-07-30 00:12:36 +00:00
Mark Banner f77e072cc5 Bug 1782192 - Fix ESLint no-unused-vars warnings in xpcshell-tests for toolkit. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D153164
2022-07-29 21:54:32 +00:00
Mark Banner b11d2dcbf8 Bug 1782192 - Add back missing test to test_Region_geocoding.js. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D153267
2022-07-29 21:54:32 +00:00
Dão Gottwald 1eaddad703 Bug 1779282 - Make the Independent Voices colorways collection available in Nightly only, independently from the colorway closet pref. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D153091
2022-07-29 21:49:53 +00:00
Csoregi Natalia 39b7e0852e Merge mozilla-central to autoland. a=merge CLOSED TREE 2022-07-30 00:39:13 +03:00
Csoregi Natalia 39fbb3f218 Merge autoland to mozilla-central. a=merge 2022-07-30 00:35:46 +03:00
Joel Maher fde9dceb24 Bug 1623747 - retry task on exit code 137. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D153218
2022-07-29 21:00:41 +00:00
Cristian Tuns 85e845a6dc Backed out 2 changesets (bug 1682520) for causing build bustages on ProcessType.h CLOSED TREE
Backed out changeset 679e19334225 (bug 1682520)
Backed out changeset dad72c7e0d7b (bug 1682520)
2022-07-29 17:04:49 -04:00
Calixte 8f722351cf Bug 1779665 - Fix intermittent failure with browser_pdfjs_editing_contextmenu.js r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D152641
2022-07-29 20:47:20 +00:00
scott 9ca352bbca Bug 1779636 - Pocket newtab login state to events pings r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D152121
2022-07-29 20:46:40 +00:00
William Durand 183b3ef354 Bug 1777483 - Part 4 - Add extension actions to the unified extensions context menu. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D153096
2022-07-29 20:32:16 +00:00
William Durand 1597f76d0f Bug 1780654 - Reuse the same window whenever possible in browser_unified_extensions.js. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D153163
2022-07-29 19:54:08 +00:00
David Parks 666630a9f4 Bug 1755700: Serialize IAudioSessionControl destruction/re-creation r=cmartin
Destroying the IAudioSessionControl has concurrency issues with audio playback that require it to be done on the main thread.  We have been trying to create a new AudioSessionControl on a background thread while this happens but some AudioSessionControl internals/dependencies are not thread safe.  In order to avoid concurrency crashes, we destroy the old IAudioSessionControl on the main thread, then dispatch the restart to a background (MTA) thread asynchronously.

Differential Revision: https://phabricator.services.mozilla.com/D152302
2022-07-29 19:32:15 +00:00
David Parks 75d0f3b74f Bug 1755700: Use AgileReference for cross-apartment AudioSessionControl use r=Jamie
A deadlock issue with our main thread audio playback handling arises when we try to destroy the AudioSessionControl from the MTA, despite it being an MTA object.  We therefore dispatch its destruction to the main thread (STA) so the deadlock is impossible.  In order to use it from the STA, we should wrap it in an AgileReference.

Differential Revision: https://phabricator.services.mozilla.com/D152301
2022-07-29 19:32:14 +00:00
David Parks 38ae048304 Bug 1755700: Simplify ownership of AudioSession r=cmartin
Concurrent operations in the MTA make the required lifetime of the AudioSession complex.  In particular, it cannot be known when/if any methods are currently queued or being executed (in particular, Start).  In order to make this safe, we keep the AudioSession at least as long as XPCOM is running background threads.

This patch also removes a long-defunct state machine and does some basic code cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D152300
2022-07-29 19:32:14 +00:00
David Parks 6e2dd315e2 Bug 1755700: Use StartAudioSession and StopAudioSession symmetrically r=cmartin
Moves StopAudioSession earlier -- to nsAppShell::Run -- where we call StartAudioSession.

Differential Revision: https://phabricator.services.mozilla.com/D152299
2022-07-29 19:32:14 +00:00
Dan Robertson 6d3555163e Bug 1782274 - mots: add hiro and dlrobertson to APZ peers. r=zeid
Differential Revision: https://phabricator.services.mozilla.com/D153234
2022-07-29 19:13:57 +00:00
Nick Alexander f1be36e2ca Bug 1781984 - Collect os.environment.{invoked_to_handle,is_default_handler,launched_to_handle} forever. r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D153224
2022-07-29 19:09:56 +00:00
Luke Swiderski af5850efb7 Bug 1696157 - Fix unexpected opening of breakpoints panel r=jdescottes
Previously when closing the breakpoints panel in secondary panes,
if an unselected call stack frame was selected, the breakpoints
panel would unexpectedly open.  This patch makes sure it remains
closed when a user has closed it and then clicks other elements
in the secondary panes.  The same issue was happening when
clicking the event listener breakpoint log checkbox, and or step
in, step out, and step over.  This patch should also fix
Bug 1755337.

Add mochitest.
Fix mochitest issues and move isFrameSelected to shared-head.js
Fix linting issues.
Merge new mochitests into browser_dbg-state-based-panels.js
Add condition to SecondaryPanes/index.js
Add PropTypes to index.js
Add logic to reducers/pause.js
Add selector to selectors/pause.js
Add breakpointsPane action to pause/actions
Update mochitests to test for edge case
Remove dbg_browser-breakpoints-secondary-pane.js
Fix linting
Make changes suggest by reviewer
Add additional mochitest for event breakoints log
Remove unnecessary parameters from action
Fix mozbuild order
Remove previewPausedLocation.js from mozbuild to fix conflict

Differential Revision: https://phabricator.services.mozilla.com/D149994
2022-07-29 19:00:06 +00:00
Mozilla Releng Treescript 18e5955b3f no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
fr -> 87cd58c4e70baf6eb230d6c5568fef4ca7e44b42
hr -> 7cb2d571a65eaa341ae028929fc8ef922d895389
nl -> 5aa43e950ca544e8861602a091097f88205eb126
pt-BR -> 3da3f34dbe2177c9d0ba825148f7f19da116be06
tg -> e79e2e63ceb63a8e2421854fe7281704f53391d3
tr -> 62e2cdaffde692cfc173d422405bd8d84a83309e
2022-07-29 18:55:38 +00:00
Dão Gottwald c94ab98464 Bug 1780406 - [Colorway Closet] Enable in Nightly. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D153233
2022-07-29 18:51:32 +00:00
Bob Owen edb40ba976 Bug 1682520 p2: Register the WER Runtime Exception Module very early in process start up. r=gsvelto,glandium
Depends on D152198

Differential Revision: https://phabricator.services.mozilla.com/D152199
2022-07-29 18:10:54 +00:00
Bob Owen cf59d0973b Bug 1682520 p1: Move GeckoProcessType and implementation of get and set into separate files. r=glandium
This means we can include these files in other binaries when we need earlier
access to the process type and use consistent code.

Differential Revision: https://phabricator.services.mozilla.com/D152198
2022-07-29 18:10:53 +00:00
stransky 43cd54a683 Bug 1782049 [Linux] Update nsWindow compositor configuration r=emilio
- Don't delete layer manager when nsWindow is unrealized but leave that to Destroy() when it's actually deleted.
  Only disable rendering in ReleaseGdkWindow().
- Create msWindow with enabled composition
- Use single nsWindow::ConfigureCompositor() routine to configure compositor and use it from
  ConfigureGdkWindow() and SetCompositorWidgetDelegate().

Depends on D153206

Differential Revision: https://phabricator.services.mozilla.com/D153207
2022-07-29 16:32:48 +00:00
stransky 1d37f8759d Bug 1782049 [Wayland] Print wayland mozcontainer logs as widget one r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D153206
2022-07-29 16:32:47 +00:00
stransky a1cb667044 Bug 1782006 [Wayland] Check if widget is live at WindowSurfaceProvider::EndRemoteDrawingInRegion() r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D153209
2022-07-29 16:29:59 +00:00
Butkovits Atila 09b6bee447 Backed out 2 changesets (bug 1742842) for causing failures complaining about vsync. CLOSED TREE
Backed out changeset 82364f4b3520 (bug 1742842)
Backed out changeset b94a13888214 (bug 1742842)
2022-07-29 19:09:13 +03:00
Florian Quèze 2dcecd3dc8 Bug 1742842 - Workaround known issues in tests that currently keep vsync enabled forever, r=mconley.
Depends on D132055

Differential Revision: https://phabricator.services.mozilla.com/D153204
2022-07-29 15:31:19 +00:00
Florian Quèze 69a9721934 Bug 1742842 - Ensure that vsync is disabled after each browser-chrome mochitest, r=mconley.
Differential Revision: https://phabricator.services.mozilla.com/D132055
2022-07-29 15:31:19 +00:00
Adam Vandolder 20df8296d1 Bug 1422260 - Prevent default value of output element from being truncated after reset. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D153127
2022-07-29 15:11:57 +00:00
Edgar Chen 195299747d Bug 1782122 - Get rid of nsIDroppedLinkHandler.dropLink; r=NeilDeakin
No one use it after bug 92737.

Differential Revision: https://phabricator.services.mozilla.com/D153205
2022-07-29 15:10:00 +00:00
Sam Foster b6d4cd35e9 Bug 1779328 - Use currentColor for favicons which support context-fill. r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D153129
2022-07-29 15:05:54 +00:00
Andrew Osmond 2ae0134b4c Bug 1780193 - Refactor gfxFontCache expiration behaviour to mitigate perf reductions. r=jfkthame
In this patch, we make gfxFont use normal AddRef/Release semantics, and
instead now hold a strong reference to it inside the cache. At all times
a font should be in the expiration tracker, and whenever a lookup is
performed, we mark it as used.

When the tracker attempts to expire an entry, we check to see if the
only strong reference is inside the cache itself. If so, it is deleted.
If not, we mark it as used again instead of expiring it.

This has the advantage of making gfxFont::Release cheaper when there is
only one outstanding reference left outside the cache. It used to
acquire the gfxFontCache mutex in order to reinsert the font into the
expiration tracker when the last strong reference was cleared. This is a
very common case since the typical use case is only the main thread is
interacting with the cache, one font reference at a time.

This does not completely restore us to the previous performance
observed, but it does reclaim half of the original design benefit while
remaining threadsafe.

Differential Revision: https://phabricator.services.mozilla.com/D153110
2022-07-29 14:48:38 +00:00
Manuel Bucher c8aca9b1fa Bug 1775764 - Fix intermittent by using the relaxed request count r=necko-reviewers,dragana
Reported with `./mach test-info failure-report --bug 1775764`:

```
07:31:33     INFO - TEST-UNEXPECTED-FAIL | netwerk/test/browser/browser_103_preload.js | test_103_anchor: Unexpected amount of requests made - {"hinted":1,"normal":1} deepEqual {"hinted":1,"normal":0} - JS frame :: chrome://mochitests/content/browser/netwerk/test/browser/browser_103_preload.js :: test_103_anchor :: line 262
  macosx1015-64-qr/opt-mochitest-browser-chrome-spi-nw-spi-nw: 1
  windows10-64-2004-shippable-qr/opt-mochitest-browser-chrome: 2
  windows10-64-2004-qr/opt-mochitest-browser-chrome-spi-nw-spi-nw: 1
  windows10-64-2004-shippable-qr/opt-mochitest-browser-chrome-spi-nw-spi-nw: 6
  linux1804-64-qr/debug-mochitest-browser-chrome-spi-nw-spi-nw: 1
  windows7-32-qr/opt-mochitest-browser-chrome: 1
  linux1804-64-qr/debug-mochitest-browser-chrome-swr-swr: 1
  windows10-64-2004-qr/opt-mochitest-browser-chrome: 1
```

Differential Revision: https://phabricator.services.mozilla.com/D153165
2022-07-29 14:34:45 +00:00
Nicolas Chevobbe 9a96297e35 Bug 1781726 - [devtools] Pass an `isModeSwitching` property to `onTargetDestroyed` callback param when switching modes. r=jdescottes,devtools-backward-compat-reviewers.
We pass `isModeSwitching` to `unwatchTargets` from the target command when the
pref is changed.
On the server, we then pass it to the various places which might call `notifyTargetDestroyed`,
so we can pass the flag in the `target-destroyed-form` event, which we can then
pass to TargetCommand#onDestroyed callbacks.`

Differential Revision: https://phabricator.services.mozilla.com/D152758
2022-07-29 14:30:07 +00:00
Emilio Cobos Álvarez 9c927cafd9 Bug 1781284 - Make MediaPacket movable, and make copies explicit. r=bwc
This will be useful for bug 1775062, but also should avoid some copies.

Differential Revision: https://phabricator.services.mozilla.com/D152787
2022-07-29 14:08:59 +00:00
Shelly Lin 303dfb188c Bug 1577383 - Implement async iterable declaration in WebIDL. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D142527
2022-07-29 14:06:31 +00:00
Butkovits Atila 9737f1fdf2 Backed out changeset 698658fc606b (bug 1774397) for causing multiple mochitest failures. CLOSED TREE 2022-07-29 17:19:40 +03:00
Andreea Pavel 8e59a7d48d Bug 1705410 - disable test_drawWindow_widget_layers.html on linux r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D153210
2022-07-29 14:00:34 +00:00
Nicolas Chevobbe dd4613555c Bug 1779173 - [devtools] Fix call to isMinified in Debugger to prevent performance issue when opening big single-line file. r=jdescottes.
Changes in Bug 1754407 caused a performance regression as it now triggered
syntax highlighting of big files, which we avoided before.
This is because we don't call `isMinified` with the expected type of data, causing
the file to not be seen as minified, and thus highlighting it.

Differential Revision: https://phabricator.services.mozilla.com/D153140
2022-07-29 13:52:50 +00:00
Christian Holler caf94dc5d4 Bug 1780741 - Add init checks to ExternalHelperAppParent. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D152633
2022-07-29 13:47:22 +00:00
Benjamin VanderSloot c737ca4ccc Bug 1781818 - Allow unpartitioning of SessionStorage, r=timhuang
This is controlled by a preference so we can disable it for experimentation later.

Differential Revision: https://phabricator.services.mozilla.com/D152893
2022-07-29 13:44:28 +00:00
Christian Holler ac4d655d24 Bug 1781243 - Avoid DOM thaw/freeze diagnostic asserts in fuzzing. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D152752
2022-07-29 13:43:25 +00:00
Niklas Baumgardner 7725b67743 Bug 1774397 - Add notification dot to Firefox View button. r=Gijs,sfoster,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D151401
2022-07-29 12:56:45 +00:00
Emilio Cobos Álvarez e847b456c5 Bug 1781747 - Don't use shadow class for non-menupopup popup windows. r=Jamie,handyman
These don't get styles early enough to make a shadow decision before Show().
This also matches the previous behavior (nothing would set
nsWidgetInitData::mDropShadow for these windows), so this is the less risky
fix.

It seems somewhat sketchy to use a popup window for these to begin with (Linux
for example maps them to a toplevel Window, at least on Wayland...), but let's
not change too much right now.

The hbrBackground change is a no-op because we can't have a brush before
Create() is called, we update it in SetBackgroundColor().

Differential Revision: https://phabricator.services.mozilla.com/D153095
2022-07-29 12:47:48 +00:00
Gregory Mierzwinski 09044ce53f Bug 1780763 - Add ability to skip tests to Talos. r=perftest-reviewers,kshampur
This patch adds the ability to skip tests to Talos. This lets us prevent tests from running depending on which branch we are on. It also adds some code that will skip tests on the pine branch.

Differential Revision: https://phabricator.services.mozilla.com/D152513
2022-07-29 11:16:52 +00:00
Hannah Peuckmann 06b01d3155 Bug 1778090 - Catch errors of content principal creation, skip invalid hosts. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D151628
2022-07-29 11:12:28 +00:00