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

726913 Коммитов

Автор SHA1 Сообщение Дата
Gregory Mierzwinski 7f65f91427 Bug 1618566 - Use prod server instead of dev for youtube-playback tests. r=perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D90301
2020-09-18 13:32:48 +00:00
Bob Owen 59ec7a3533 Bug 1665649: Don't use PaperList on the background thread in nsPrinterWin::DefaultSettings. r=jwatt
This leaves the paperName blank instead as it is not actually needed.
The paper size is retrieved from the information context instead.
This also changes to using a double literal for converting inches to points for
better precision.

Differential Revision: https://phabricator.services.mozilla.com/D90567
2020-09-18 13:11:25 +00:00
Jon Coppeard 09993c9c49 Bug 1665572 - Remove GCParallelTask's 'finishing' state which is no longer needed now that task execution happens with the lock held r=jandem
Depends on D90526

Differential Revision: https://phabricator.services.mozilla.com/D90527
2020-09-18 09:38:12 +00:00
Jon Coppeard 593516ea32 Bug 1665572 - Call GCParallelTask::run() method with the helper thread lock held r=jandem
The first part is to call this method with the lock held and update the implementations.

Differential Revision: https://phabricator.services.mozilla.com/D90526
2020-09-18 09:19:36 +00:00
Mihai Alexandru Michis 51875c07f4 Backed out changeset 932516ec74bb (bug 1649495) for causing bustages in nsHttpHandler
CLOSED TREE
2020-09-18 15:55:06 +03:00
Kartikaya Gupta fb97ec2e40 Bug 1654836 - Redo how we expand displayport alignment for webrender. r=nical
The displayport is aligned to screen pixels by an alignment number; there was
code to increase that alignment number for the WebRender codepath. This is
desirable because it causes the displayport to move less frequently, which
provides better performance characteristics with WebRender. However, the
way that was implemented, it was possible for the aligned displayport to not
completely enclose the unaligned displayport, which could then result in
perma-checkerboarding.

This patch removes that code and replaces it with a simpler approach to scale
up the existing alignment number by a factor based on the size of the scroller's
base rect (roughly how much of the scroller is visible to the user).

This does make the displayports larger, more so for scrollers with more visible
area. This has negative performance implications, so we mitigate that by also
scaling down the displayport margin multiplier by the same scaling factor. This
isn't perfect, but seems to work well enough in practice.

Differential Revision: https://phabricator.services.mozilla.com/D90503
2020-09-18 12:40:08 +00:00
Kartikaya Gupta 8c80afdd6e Bug 1654836 - Initialize gfxVars in all APZ gtests. r=nical
The next patch requires gfxVars::UseWebRender to work in gtests, so we need
to make sure gfxPlatform is initialized correctly for all the tester classes.

Differential Revision: https://phabricator.services.mozilla.com/D90502
2020-09-18 08:08:18 +00:00
Kartikaya Gupta 489a9263ce Bug 1654836 - Add a test for checkerboarding with zero displayport multipliers. r=nical
This ensures that even with the displayport margins dropped to zero we don't
get any checkerboarding. This currently fails with WR enabled, because the
displayport alignment code moves the displayport so it doesn't enclose the
unaligned displayport, and that's bad.

Differential Revision: https://phabricator.services.mozilla.com/D90501
2020-09-18 08:07:29 +00:00
Kartikaya Gupta d84deaff0d Bug 1654836 - Extract helper method for checking for checkerboards. r=nical
No functional changes here, just refactoring code that is already duplicated
in a bunch of tests.

Differential Revision: https://phabricator.services.mozilla.com/D90500
2020-09-18 08:06:49 +00:00
Kartikaya Gupta ff619cad8f Bug 1654836 - Add a bunch of verbose-level displayport logging. r=nical
Differential Revision: https://phabricator.services.mozilla.com/D90499
2020-09-18 08:05:50 +00:00
David Teller dc80a7016e Bug 1665099 - Use WebExtensionsPolicy.getByURI instead of WebExtensionsPolicy.getByHost;r=florian,rpl
Differential Revision: https://phabricator.services.mozilla.com/D90305
2020-09-18 12:41:27 +00:00
Jean-Yves Avenard 66d6c40aa5 Bug 1653060 - P5. Ensure no task gets dispatched after shutdown. r=mattwoodrow
And fix thread-safety access to sRemoteDecoderManagerChildThread static while at it.

Differential Revision: https://phabricator.services.mozilla.com/D90506
2020-09-17 06:35:15 +00:00
Jean-Yves Avenard 298b6203a1 Bug 1653060 - P4. Wait until all MediaRemoteDecoderManagerParent have closed before killing process. r=mattwoodrow.
We unfortunately can't use the AsyncShutdownService in either the GPU or RDD process.

So we add a little utility class AsyncBlockers that will resolve its promise once all services have deregistered from it.

We use it to temporily suspend the RDDParent or GPUParent from killing the process, up to 10s.

This allows for cleaner shutdown as the parent process doesn't guarantee the order in which processes are killed (even though it should).

Differential Revision: https://phabricator.services.mozilla.com/D90487
2020-09-18 11:07:13 +00:00
Jean-Yves Avenard e748bb2d7b Bug 1653060 - P3. Use nsCOMPtr. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D90486
2020-09-18 11:07:15 +00:00
Jean-Yves Avenard f713b4f58e Bug 1653060 - P2. Ensure the RDD process gets shutdown after content processes. r=mjf
The RDD process gets shutdown following a NS_XPCOM_SHUTDOWN_OBSERVER_ID notification.
Notifications are processed in LIFO order, since the RDD process is started on demand it would have typically be registered after a content process.
We must ensure that the RDD get shutdown after all content processes so that it can receive notifications that the RemoteDecoderManagerChilds are shutting down.

Differential Revision: https://phabricator.services.mozilla.com/D90485
2020-09-18 11:07:18 +00:00
Jean-Yves Avenard 85ee42b193 Bug 1653060 - P1. Revert "Increase RDD leak threshold to 4000 for now. r=mccr8"
This reverts commit 056bbc57ca7c

Differential Revision: https://phabricator.services.mozilla.com/D90484
2020-09-18 11:07:20 +00:00
Jonathan Watt f3000d3646 Bug 1665618. Fallback to allowing printing in color on failure to get printer capabilities. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D90546
2020-09-17 12:14:25 +00:00
Andy Grover 96ac4b6334 Bug 1649495 - Add network.http.http3.qlog_enabled pref r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81949
2020-09-18 07:02:15 +00:00
Denis Palmeiro 27ec435b3b Bug 1665724: Clear mRunnable of request if user goes OOM while trying to off-thread compile. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D90645
2020-09-18 10:31:45 +00:00
Dmitry Bezhetskov e592402b62 Bug 1664953 - Fast fix for null pointer dereference in EmitTruncate. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D90242
2020-09-17 16:36:04 +00:00
Kershaw Chang 37bd97f6a1 Bug 1656697, r=valentin,necko-reviewers
The root cause in this bug is that the connection info used by `SpdyConnectTransaction` is the same instance as the connection info in `nsHttpTransaction`, so we should clone it and let `SpdyConnectTransaction` use the cloned one.

Differential Revision: https://phabricator.services.mozilla.com/D89801
2020-09-16 08:19:17 +00:00
Nicolas Silva da6c5e4c19 Bug 1659826 - Don't schedule destroying draw targets on the paint thread. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D89719
2020-09-15 17:13:14 +00:00
Kershaw Chang 97bba57b62 Bug 1529759 - Don't inline nsHttpChannel::DoConnect r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D89706
2020-09-16 07:34:02 +00:00
Brindusan Cristian 73323efa4b Backed out 4 changesets (bug 1653060) for causing mochitest assertion failures. CLOSED TREE
Backed out changeset d143ac59991f (bug 1653060)
Backed out changeset 6943102ffe2a (bug 1653060)
Backed out changeset a38425c96709 (bug 1653060)
Backed out changeset 68c5b2c56f3f (bug 1653060)
2020-09-18 14:03:48 +03:00
Razvan Caliman 20a40b7e0a Bug 1572662 - Remove unnecessary getRuleViewSelectorHighlighterIcon() from tests r=jdescottes
Depends on D90249

These calls to `getRuleViewSelectorHighlighterIcon` appear to [wait for the selector icon to be generated](https://searchfox.org/mozilla-central/rev/0c97a6410ff018c22e65a0cbe4e5f2ca4581b22e/devtools/client/inspector/rules/views/rule-editor.js#162-197) from an async operation. But they don't test anything to do with that DOM structure. Test seem to pass without it.

Differential Revision: https://phabricator.services.mozilla.com/D90250
2020-09-16 14:40:11 +00:00
Razvan Caliman 4137708c26 Bug 1572662 - Update tests for SelectorHighlighter r=jdescottes
Depends on D90248

This patch combines two test helpers into one: removes `getRuleViewSelectorHighlighterIcon()` and folds its logic into `clickSelectorIcon()`.
The other callsites for `getRuleViewSelectorHighlighterIcon()` are removed in D90250.

The augmented `clickSelectorIcon()` will toggle the selector highlighter accordingly (on or off for the given selector depending on its current state). It returns a promise that resolves with the event data from either the "highlighter-hidden" or "highlighter-shown" events emitted by the selector highlighter. Tests check this data for the expected results.

Tests no longer use mocks for selector highlighter. They test the real thing.

Differential Revision: https://phabricator.services.mozilla.com/D90249
2020-09-17 14:00:38 +00:00
Razvan Caliman bfb2186d26 Bug 1572662 - Update logic to toggle SelectorHighlighter from the new React-based Rules view r=jdescottes
Depends on D90247

The new React-based Rules view is a stalled project, but not yet abandoned.
This patch updates the logic to toggle the selector highlighter so it doesn't fall too far behind in parity with the legacy but still active Rules view.

Flip this pref to test the new Rules view: `devtools.inspector.new-rulesview.enabled`.
It will add a new Rules panel to the Inspector sidebar at the far right end of the tabs.
To avoid confusion and bugs, disable 3-pane mode so you only see one Inspector sidebar panel at a time.

Differential Revision: https://phabricator.services.mozilla.com/D90248
2020-09-17 12:43:16 +00:00
Razvan Caliman ebfa44cb82 Bug 1572662 - Update logic to toggle SelectorHighlighter from Rules view r=jdescottes
Depends on D90246

This patch updates the logic to toggle the selector highlighter (icon next to CSS selectors in the Rules view) using the process-agnostic approach introduced in `HighlightersOverlay`.

There are 3 main chunks of logic:

- A) Introduce event delegation in the Rules view (`CssRuleView.handleEvent()`)
- B) Introduce generic handler for highligther events in Rules view (`CssRuleView.handleHighlighterEvent()`)
- C) Toggle the selector highlighter using the `HighlightersOverlay.showHighlighterTypeForNode()`/`HighlightersOverlay.hideHighlighterType()` methods with the `SELECTOR` highlighter type.

### Part A
With Part A, CssRuleView.handleEvent(), we're laying the groundwork to have the Rules view react to events within its DOM tree.

Currently, `HighlightersOverlay` is doing too much. Along with managing highlighters, it acts as an event delegate for the Rules view and Computed view via [HighlightersOverlay.addToView()](https://searchfox.org/mozilla-central/rev/0c97a6410ff018c22e65a0cbe4e5f2ca4581b22e/devtools/client/inspector/shared/highlighters-overlay.js#415-428). This adds [cumbersome logic to check the target](https://searchfox.org/mozilla-central/rev/0c97a6410ff018c22e65a0cbe4e5f2ca4581b22e/devtools/client/inspector/shared/highlighters-overlay.js#1402-1428) of an event in order to know whether to react to it. This isn't wrong per-se, but it concentrates DOM knowledge from a broad part of the Inspector away from where it is generated.

Ideally, `HighlightersOverlay` should only manage highlighters. It should be called from various endpoints without regard to who is calling and in reaction to which events.

The intent is to reuse this `CssRuleView.handleEvent()` for:
- toggling the CSS Transforms Highlighter by reacting to mouseover events from corresponding CSS values
- toggling the Flexbox / Grid / Shapes highlighters by reacting to clicks on corresponding swatch icons next to CSS values

### Part B
Part B, `CssRuleView.handleHighlighterEvent()`, adds a generic highlighter event handler to the Rules view. Checking the event name and highlighter type, the Rules view can update itself in reaction to highlighters triggered from elsewhere in the Inspector.

In this patch, we're using it to toggle the active CSS class name on the selector highlighter icon in response to "highlighter-shown" / "highlighter-hidden" events of the `SELECTOR` highlighter type.

Probably a bit overkill here. But it gets more useful with the Flexbox and Grid Highlighters which have call sites in multiple places with indicators that need to be reconciled:

- Flex/Grid badges in Markup view
- Checkboxes in Layout panel
- Swatch icons for Flex and Grid in Rules view

### Part C
Part C replaces the legacy toggling logic for selector highlighter with the abstract methods in `HighligthersOverlay`, does some slight clean-up, and fixes some bugs in the previous implementation.

All CSS rules matching the same selector will be marked when the selector is active (see inline comment)
When editing a selector, the selector highlighter for another CSS rule will no longer be hidden (see inline comment)

Differential Revision: https://phabricator.services.mozilla.com/D90247
2020-09-18 10:34:08 +00:00
Razvan Caliman f36f05b770 Bug 1572662 - Clean-up SelectorHighlighter and clarify code comments r=jdescottes
Depends on D90245

Differential Revision: https://phabricator.services.mozilla.com/D90246
2020-09-16 10:09:11 +00:00
Razvan Caliman 020ea4af5e Bug 1572662 - Remove unused option to customize fill color on SelectorHighlighter and BoxModelHighlighter r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D90245
2020-09-16 13:43:57 +00:00
Glenn Watson 5dd3f3e6ca Bug 1665805 - Fix native compositor accuracy issues due to large clip rect. r=nical
If a native compositor surface ends up with no effective clip rect,
the clip rect supplied via the compositor trait to CoreAnimation
may be very large.

This large clip rect can cause accuracy issues inside CoreAnimation
resulting in layers that are drawn incorrectly.

To work around this, clamp the surface clip rect to the current
allocated area of the tiles for a given compositor surface.

Differential Revision: https://phabricator.services.mozilla.com/D90638
2020-09-18 08:27:18 +00:00
Dão Gottwald c4bc5c2d74 Bug 1665757 - Correctly carry over a default top site's original URL to its derived frecency top site. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D90652
2020-09-18 07:33:15 +00:00
Jon Coppeard 7beac00a9f Bug 1606860 - Only start handling source compression tasks from this runtime at the start of GC r=sfink
Depends on D90524

Differential Revision: https://phabricator.services.mozilla.com/D90525
2020-09-18 01:41:54 +00:00
Jon Coppeard 82153ba3b9 Bug 1606860 - Tidy source compression logic behind an API r=sfink
This moves a bunch of stuff that uses the internals of the helper thread system
into HelperThreads.cpp and puts it behind an API.

Differential Revision: https://phabricator.services.mozilla.com/D90524
2020-09-18 01:37:22 +00:00
Marco Zehe 0c2fda970a Bug 1665662 - Ensure that at the end of a paragraph, after a line break, we return empty line offsets, r=Jamie
If in a textarea, a blank line is inserted, we need to return the offsets of just that new inner paragraph, or the braille display of a screen reader will show the previous line and not a blank one.

Differential Revision: https://phabricator.services.mozilla.com/D90655
2020-09-18 06:58:33 +00:00
Simon Giesecke 0fef58f699 Bug 1664844 - Add DebugOnly::inspect member function. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D90133
2020-09-18 06:33:12 +00:00
Moritz Birghan 0c15bc6ad6 Bug 1664808 - Waiting for l10n strings to load r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D90578
2020-09-17 20:55:18 +00:00
Michael Goossens a02378e433 Bug 1664725 - Fix expecting rejection to match unknown to actual expectation r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D90598
2020-09-17 21:07:53 +00:00
Jean-Yves Avenard 747bda5c42 Bug 1653060 - P4. Wait until all MediaRemoteDecoderManagerParent have closed before killing process. r=mattwoodrow.
We unfortunately can't use the AsyncShutdownService in either the GPU or RDD process.

So we add a little utility class AsyncBlockers that will resolve its promise once all services have deregistered from it.

We use it to temporily suspend the RDDParent or GPUParent from killing the process, up to 10s.

This allows for cleaner shutdown as the parent process doesn't guarantee the order in which processes are killed (even though it should).

Differential Revision: https://phabricator.services.mozilla.com/D90487
2020-09-18 02:51:50 +00:00
Jean-Yves Avenard 4bb1eaa8e6 Bug 1653060 - P3. Use nsCOMPtr. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D90486
2020-09-17 06:57:58 +00:00
Jean-Yves Avenard 04f8c82986 Bug 1653060 - P2. Ensure the RDD process gets shutdown after content processes. r=mjf
The RDD process gets shutdown following a NS_XPCOM_SHUTDOWN_OBSERVER_ID notification.
Notifications are processed in LIFO order, since the RDD process is started on demand it would have typically be registered after a content process.
We must ensure that the RDD get shutdown after all content processes so that it can receive notifications that the RemoteDecoderManagerChilds are shutting down.

Differential Revision: https://phabricator.services.mozilla.com/D90485
2020-09-17 02:21:48 +00:00
Jean-Yves Avenard c8e0a98551 Bug 1653060 - P1. Revert "Increase RDD leak threshold to 4000 for now. r=mccr8"
This reverts commit 056bbc57ca7c

Differential Revision: https://phabricator.services.mozilla.com/D90484
2020-09-17 02:01:49 +00:00
Mihai Alexandru Michis 2fe69e98ac Merge mozilla-central to autoland a=merge on a CLOSED TREE 2020-09-18 12:46:59 +03:00
Mihai Alexandru Michis d410917833 Merge autoland to mozilla-central. a=merge 2020-09-18 12:44:02 +03:00
Mihai Alexandru Michis 4ed738de30 Backed out changeset be6bd5dfe991 (bug 1656266) for causing bustages in GtkCompositorWidget.h
CLOSED TREE
2020-09-18 11:59:12 +03:00
Brindusan Cristian 66762b6cd1 Backed out 3 changesets (bug 1665306, bug 1665305, bug 1665293) for dt failures at browser_webconsole_network_attach.js. CLOSED TREE
Backed out changeset 5d5f176f7231 (bug 1665306)
Backed out changeset 241fc01aced8 (bug 1665305)
Backed out changeset 5055331a7b6e (bug 1665293)
2020-09-18 10:40:54 +03:00
Mitchell Hentges a6b53b2c97 Bug 1665509: Use which(pip3) to install MozPhab in `install-moz-phab` r=firefox-build-system-reviewers,rstewart
On windows, just subprocessing `pip3 ...` was running the mach
virtualenv's pip3 binary, rather than the system's (or user's
virtualenv's) pip3.

Differential Revision: https://phabricator.services.mozilla.com/D90492
2020-09-18 00:50:10 +00:00
Emilio Cobos Álvarez b1d66c8b2e Bug 1611933 - Support infallible xpcom methods, and use it for nsIURI.schemeIs. r=nika,xpcom-reviewers
I've wanted to use this recently for a couple things. This uses the
same scheme and even templates we use for attributes, so it's mostly
moving code around...

Inverting the code generation so that the implementation is infallible,
and we actually generate the NS_IMETHOD goop inline somehow could be
potentially desirable, though that causes an extra virtual call for
non-C++ callers I guess, so maybe it's not such a great trade-off. Plus
it seems more complicated...

Explicitly forbid mixing infallible with notxpcom (as it doesn't make
sense), and similarly forbid infallible + returning void (as C++ doesn't
allow us to overload a function that differs only on its return type).

Differential Revision: https://phabricator.services.mozilla.com/D90044
2020-09-18 00:24:12 +00:00
Kris Maglione a3b66dd82c Bug 1662841: Remove Fission-incompatible `nsDocumentViewer::AppendSubtree`. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D90615
2020-09-17 22:43:47 +00:00
Andrew Halberstadt 9ac763a408 Bug 1643689 - Backed out changeset 10110918b6c0. a=Aryx
This was causing |mach try auto| to stop selecting manifests.

Differential Revision: https://phabricator.services.mozilla.com/D90553
2020-09-17 12:57:39 +00:00