Commit graph

781931 commits

Author SHA1 Message Date
Ting-Yu Lin
1e282b2d28 Bug 1749650 - Ignore clangd index files in gecko root folder. r=firefox-build-system-reviewers,andi
NPOTB DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D135674
2022-01-12 17:20:04 +00:00
Marian-Vasile Laza
848206a1c2 Backed out changeset 2a43d61af1ff (bug 1679927) for causing build bustages on AppleVTDecoder.cpp. CLOSED TREE 2022-01-12 19:14:39 +02:00
Emilio Cobos Álvarez
288890e8bb Bug 1749645 - Remove unused native scrollbar drawing on gtk. r=stransky
We decided to keep it when initially making scrollbars non-native, but I think
it's time for it to go, since it's pretty much untested.

Nobody has complained about the non-native scrollbars in chrome documents, and
the GTK scrollbar implementation is not suitable for content because it doesn't
support scrollbar-width among other things.

Differential Revision: https://phabricator.services.mozilla.com/D135670
2022-01-12 17:06:12 +00:00
Emilio Cobos Álvarez
98c3acf4c2 Bug 1749645 - Remove dead windows scrollbar drawing code. r=spohl
We now use non-native scrollbar drawing on Windows so all this code can go.

Differential Revision: https://phabricator.services.mozilla.com/D135669
2022-01-12 17:06:12 +00:00
Brad Werth
357f9b4eaa Bug 1679927 Part 1: Make AppleVTDecoder check color depth and use 10-bit YUV420 when available. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D116662
2022-01-12 17:01:09 +00:00
Hannah Peuckmann
de7d505cc3 Bug 1748978 - Clean up CLEAR_APPCACHE flag. r=pbz,geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D135342
2022-01-12 16:50:23 +00:00
Barret Rennie
7e521583a5 Bug 1749644 - Fix RemoteL10n Fluent directory r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D135665
2022-01-12 16:46:05 +00:00
Jamie Nicol
0ca5c9a304 Bug 1749745 - Initialize AndroidCompositorWidget with initial size. r=aosmond,geckoview-reviewers,agi
Since bug 1747116 landed, if the compositor is reinitialized whilst
the Android Surface is invalid, we avoid crashing when querying the
window size and instead keep the compositor in a paused state.
However, in this case we will believe the widget size is 0x0 until the
compositor is eventually resumed. If webrender receives a display list
during this time, it will set an empty view rect. This means when the
compositor is subsequently resumed webrender believes it has nothing
to render, and we get stuck in a state where nothing is ever rendered
to the screen.

This patch initializes the AndroidCompositorWidget with an initial
size, which avoids the problem.

Differential Revision: https://phabricator.services.mozilla.com/D135711
2022-01-12 16:43:51 +00:00
Agi Sferro
f993cdb15f Bug 1749652 - Fix javadoc path in gv-docs. r=calu
The javdoc path changed after Bug 1724480.

Differential Revision: https://phabricator.services.mozilla.com/D135708
2022-01-12 16:37:16 +00:00
Emilio Cobos Álvarez
de7b391af7 Bug 1749645 - Rename nsNativeBasicTheme{,Cocoa} to Theme{,Cocoa}. r=mstange
We have this situation right now where all the themes are inheriting from
nsNativeBasicTheme. Rename it to a nicer name, and clean up some code while at
it.

In the future I'd like to simplify the inheritance chain to remove
nsNativeTheme altogether (so that all nsITheme implementations use
mozilla::widget::Theme).

That's not hard to do mechanically, but rather than dumping all of
nsNativeTheme into Theme I'd like to do it a bit more carefully, to hopefully
remove a lot of the helpers that nsNativeTheme has to deal with XUL and so on
and use something nicer. Eventually the inheritance chain will be something
like:

 * nsITheme : public nsISupports
 * Theme : public nsITheme, public nsITimerCallback, public nsINamed
 * ThemeCocoa : public Theme
 * nsNativeThemeCocoa : public ThemeCocoa
 * nsNativeThemeWin : public Theme
 * nsNativeThemeGtk : public Theme

Differential Revision: https://phabricator.services.mozilla.com/D135668
2022-01-12 16:33:31 +00:00
Emilio Cobos Álvarez
346ce81bf0 Bug 1749645 - Move some colors from C to C++ file. r=mstange
No need to use the header for colors that are only used in one file.

Differential Revision: https://phabricator.services.mozilla.com/D135667
2022-01-12 16:33:30 +00:00
Katherine Patenio
6385c84e6a Bug 1747162 - reduce intermittence of browser_documentnavigation.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135632
2022-01-12 16:25:05 +00:00
Joel Maher
33f90e8349 Bug 1749557 - cleanup talos scheduling for consistency. r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D135646
2022-01-12 16:13:33 +00:00
Ben Hearsum
73f57c08e8 Bug 1745437: Add an app execution alias for MSIX packages. r=nalexander
This allows MSIX-installed Firefox to be launched through Win+r and Powershell (and probably other places). This feels deceptively simple - but it appears to work.

Differential Revision: https://phabricator.services.mozilla.com/D135638
2022-01-12 15:42:04 +00:00
Dzmitry Malyshau
71dcb0b551 WIP: Bug 1747750 - Return null WebGPU adapter r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D135645
2022-01-12 15:34:55 +00:00
Gabriele Svelto
250cea0582 Bug 1748644 - MIDI ports should stop responding to parent message once they've been disconnected from the document that owned them r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D135700
2022-01-12 15:03:34 +00:00
Olli Pettay
4ea70a7334 Bug 1748342, don't start FileReader's timer if the worker is shutting down, r=dom-worker-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D135078
2022-01-12 14:57:46 +00:00
Jens Stutte
a3884ad516 Bug 1741182: Harmonize WorkerRunnable derived classes' overrides of Cancel. r=dom-worker-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D135679
2022-01-12 14:43:09 +00:00
Marian-Vasile Laza
205e4f70a7 Backed out changeset 7c1a1109d729 (bug 1747439) for causing build bustages on CacheEntry.cpp. CLOSED TREE 2022-01-12 16:52:24 +02:00
Hubert Boma Manilla
5eb7f48c3c Bug 1748618 - [devtools] Add blackbox line context menu item r=nchevobbe
This patch adds context menu item to ignore single lines in the editor and in the gutter

Differential Revision: https://phabricator.services.mozilla.com/D135116
2022-01-12 14:26:31 +00:00
Edgar Chen
8936a84092 Bug 1695636 - Part 3: Do not trigger form submission or click event for untrusted key event; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D135464
2022-01-12 14:24:02 +00:00
Edgar Chen
a7a61c5630 Bug 1695636 - Part 2: Handle form submission for keypress event in a central place; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D135675
2022-01-12 14:24:02 +00:00
Edgar Chen
6123594d4f Bug 1695636 - Part 1: Remove nsresult return value from HTMLInputElement::MaybeSubmitForm; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D135226
2022-01-12 14:24:01 +00:00
Randell Jesup
1b7409dffb Bug 1749214: nsHttpConnectionMgr cleanup r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D135459
2022-01-12 14:01:28 +00:00
Randell Jesup
4037dc1397 Bug 1747439: netwerk/cache2 cleanup r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D135167
2022-01-12 13:54:01 +00:00
Cristian Tuns
52254e1b6b Backed out changeset 5a82b7a2951e (bug 1492497) for causing leaks CLOSED TREE 2022-01-12 09:29:06 -05:00
Cristian Tuns
189d64b412 Backed out changeset 8b97bc59958e (bug 1749017) for causing xpcshell failures on test_nsIX509CertValidity.js CLOSED TREE 2022-01-12 09:14:51 -05:00
Cristian Tuns
cdade0973b Backed out changeset b1d00f32893d (bug 1749028) for causing mochitest failures on test_expandable.xhtml CLOSED TREE 2022-01-12 09:01:36 -05:00
Alexandre Poirot
dc913e4b3e Bug 1749512 - [devtools] Create all SessionContext objects from a single module. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D135603
2022-01-12 13:33:20 +00:00
Shelly Lin
b54395dc81 Bug 1742540 - Add test case to reproduce leaks. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D135094
2022-01-12 13:21:11 +00:00
Shelly Lin
f83457f0e8 Bug 1742540 - Close input stream when destructing StreamBlobImpl. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D133717
2022-01-12 13:21:11 +00:00
Julien Cristau
279ea846f7 Bug 1749017 - bring the date back in X509CertValidity::FormatTime. r=gregtatum,keeler
Differential Revision: https://phabricator.services.mozilla.com/D135357
2022-01-12 13:19:41 +00:00
Sebastian Hengst
d667e332e3 Bug 1749536 - set test steps in visual-viewport/resize-event-order.html as intermittent on Android debug and Windows opt. DONTBUILD
Test got added in bug 1748726.

Differential Revision: https://phabricator.services.mozilla.com/D135696
2022-01-12 13:08:49 +00:00
criss
910b8a876f Backed out changeset fac26885b741 (bug 1749214) for causing build bustages on nsHttpConnectionMgr. CLOSED TREE 2022-01-12 15:15:50 +02:00
Timothy Nikkel
97ff865eba Bug 1749004. Call CancelManagedPostRefreshObservers after frame tree is destroyed. r=emilio
nsPresContest::RegisterManagedPostRefreshObserver still lets us add a managed post refresh observer until the mPresShell pointer on the prescontent is nulled out. That means that between the call to CancelManagedPostRefreshObservers and mPresContext->DetachPresShell() (which nulls out the mPresShell pointer on the prescontext) in PresShell::Destroy we can add a managed post refresh observer that will never get removed. Notably, destroying the frame tree happens between these two calls.

So move the CancelManagedPostRefreshObservers call to happen right after we null out the mPresShell pointer on the prescontext.

In bug 1737503 I want to add a managed post refresh observer when we destroy a subdocument frame (it's only interested in the recreate frames case not the destruction case, but not an easy way to tell them apart afaik), so it triggers this bug. The patch and test I have for that bug exercise this scenario.

Differential Revision: https://phabricator.services.mozilla.com/D135340
2022-01-12 12:59:44 +00:00
Paul Adenot
8a674a5dc7 Bug 1748279 - Handle truncated WAV stream. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D135124
2022-01-12 12:57:36 +00:00
Sebastian Hengst
4dab2c4055 Bug 1749642 - set broadcast-channel.html as passing on Windows with code coverage. DONTBUILD
Test got added in bug 1733857.

Differential Revision: https://phabricator.services.mozilla.com/D135695
2022-01-12 12:53:38 +00:00
Randell Jesup
78fb39305d Bug 1749214: nsHttpConnectionMgr cleanup r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D135459
2022-01-12 12:49:11 +00:00
Nicolas Chevobbe
a232d2448c Bug 1492497 - [devtools] Add a way to disable (and re-enable) event listener for a given node. r=ochameau,devtools-backward-compat-reviewers,bomsy.
This patch adds a checkbox at the end of each event listeners in the EventTooltip,
which allow the user to disable/re-enable a given event listener.

This is done by managing a Map of nsIEventListenerInfo object in the NodeActor,
which we populate from `getEventListenerInfo`. Each `nsIEventListenerInfo` is
assigned a generated id, which can then be used to call the new NodeActor
methods, `(enable|disable)EventListener`.

We don't support disabling jquery/React event listeners at the moment, so we
display the checkbox for them as well, but disabled.

Differential Revision: https://phabricator.services.mozilla.com/D135133
2022-01-12 12:42:48 +00:00
Gijs Kruitbosch
0c74c88e49 Bug 1749028, r=dveditz,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D135398
2022-01-12 12:40:20 +00:00
Yulia Startsev
054098f80a Bug 1749496 - Add groupby and groupbytomap to xrayToJS only in nightly build r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D135604
2022-01-12 12:22:56 +00:00
Gerald Squelart
67edebb322 Bug 1749498 - PrintUsage doesn't exit anymore, exits are done explicitly - r=canaltinova
`PrintUsageThenExit(code)` was supposed to exit when `code` was not zero, but:
- The name didn't reflect that, so it was confusing that `PrintUsageThenExit(0)` would *not* exit.
- The implementation in the Base Profiler exited anyway! This caused issues with some legacy code that still used the now-removed "threads" feature.

This patch renames the function to just `PrintUsage()` and never exits, leaving the caller to invoke `exit(code)` as needed -- with the added benefit that it's possible to exit with a zero code, useful in cases where an exit is not actually an error.

Differential Revision: https://phabricator.services.mozilla.com/D135666
2022-01-12 12:16:59 +00:00
Marian-Vasile Laza
d562d1fa70 Backed out 2 changesets (bug 1748981) for causing geckoview test failures. CLOSED TREE
Backed out changeset 5e151bd74f2a (bug 1748981)
Backed out changeset 4df658fcf42d (bug 1748981)
2022-01-12 14:15:25 +02:00
Luca Greco
bc9802e70b Bug 1724026 - Add a new xpcshell-serviceworker.ini manifest and include all alarms API tests in it. r=mixedpuppy
This patch includes:

- a new xpcshell-serviceworker.ini manifest, all tests included in this manifest will also run in the
  "background service worker mode", initially including all `alarms` API xpcshell tests

- some small changes to test_ext_alarms.js to temporarily skip test case that can't yet pass
  while running in "background service worker mode" (until fixed in separate followups)

- some small tweaks to head_service_worker.js to avoid failure due to an existing ExtensionCommon
  const bindings being redefined while running a test for the xpcshell-remote.ini manifest

Differential Revision: https://phabricator.services.mozilla.com/D135125
2022-01-12 11:33:13 +00:00
Luca Greco
63324905ef Bug 1724026 - Support running existing Extension API mochitests with a background service worker. r=mixedpuppy
Provide a way to use service workers as the background script in existing tests, possibly by only
requiring minimal changes to the existing test cases.

This patch includes:

- changes needed to detect when a test extension is being created for a test running in
  the "background service worker mode" and automatically turn the background script into
  a background service worker (instead of a background page) when not explicitly listed
  in the test extension manifest

- a new mochitest-serviceworker.ini manifest where new or existing test files meant to be run on a
  background service worker can be added to run them automatically in the "background service worker mode"

- a new test_verify_sw_mode.html smoke test that make sure the mochitest-serviceworker.ini manifest
  is running in the expected mode.

- a new `sw-webextension` tag, which can be used locally to run a test file only in the
  "background service worker mode"

- changes to test_ext_test.html to make it able to run in both background pages and background workers

- small tweaks to `test` API (both the WebIDL binding and the current bindings injected from privileged
  js code, to better match each other behavior)

Differential Revision: https://phabricator.services.mozilla.com/D122536
2022-01-12 11:33:13 +00:00
Luca Greco
804f0d3fde Bug 1724026 - Ensure that test files included in multiple manifest are executed once per manifest. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D134293
2022-01-12 11:33:12 +00:00
Jonathan Kew
b44bac9353 Bug 1746172 - Add WPT reftest for letter-spacing vs Bengali ya-phala. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D135348
2022-01-12 11:16:24 +00:00
Jonathan Kew
200fe6f090 Bug 1746172 - Merge Bengali ya-phala with the preceding cluster, to prevent letter-spacing introducing a gap between the glyphs. r=TYLin
This is a pretty unique special-case; in general, Indic-script VIRAMA characters
cluster with the preceding base, but in Bengali (Bangla) script, VIRAMA combines
with a *following* YA to create the ya-phala form, which as a whole then needs to
stay associated with the preceding letter.

This works for us if the font ligates the entire letter + ya-phala cluster, but
if ya-phala remains a separate glyph then we could introduce unwanted spacing.
Checking for this case in SetupClusterBoundaries enables us to ensure that the
entire letter + ya-phala cluster stays together, regardless of the specifics of
the font implementation.

Differential Revision: https://phabricator.services.mozilla.com/D135347
2022-01-12 11:16:23 +00:00
Shane Hughes
de1c78a4a8 Bug 1745624 - Add "Delete" menuitem to downloads panel context menu. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D135188
2022-01-12 11:07:44 +00:00
Florian Quèze
314da358c6 Bug 1748466 - Make ShouldKeepTimerRunningWhileWaitingForFirstContentfulPaint return early for initial about:blank documents, r=smaug.
Differential Revision: https://phabricator.services.mozilla.com/D135691
2022-01-12 11:04:47 +00:00