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

726797 Коммитов

Автор SHA1 Сообщение Дата
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
Timothy Nikkel bcd2f907ad Bug 1665326. Make the APZ pure relative scroll path in ScrollFrameHelper::ScrollBy handle ScrollUnit::WHOLE scrolls as well. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D90371
2020-09-17 12:34:49 +00:00
Csoregi Natalia 2306d2079a Backed out 11 changesets (bug 1663924, bug 1664844) for multiple failures. CLOSED TREE
Backed out changeset 2da9fde7a109 (bug 1663924)
Backed out changeset 9353759cc783 (bug 1663924)
Backed out changeset 309354891d60 (bug 1663924)
Backed out changeset 4e51461c369c (bug 1663924)
Backed out changeset e3196b68932c (bug 1663924)
Backed out changeset 25b16cbae152 (bug 1664844)
Backed out changeset e02961ac5ee7 (bug 1663924)
Backed out changeset dde2058c20ef (bug 1663924)
Backed out changeset a80f52551e3a (bug 1663924)
Backed out changeset 0c37ce712c2c (bug 1663924)
Backed out changeset 8cc5dcc86f40 (bug 1663924)
2020-09-18 04:52:32 +03:00
Jamie Nicol 25488144c9 Bug 1663355 - Always clear and render entire picture cache tiles on Mali-Gxx. r=gw,geckoview-reviewers,agi
On Mali-Gxx there is a driver bug which causes partial updates to offscreen
render targets to fail. This was originally encountered in bug 1558374, where we
thought that the problem was just to do with scissored glClear()s, so we used a
shader to clear the target instead of glClear(). On some sites, however, even
this is not enough, and sometimes renderering to the target fails leaving some
of the previous content in place.

We appear to be able to work around this by ensuring that the entire render
target is cleared, by calling glClear() with the scissor test disabled. This
means that for picture cache tiles we must ensure the entire valid region is
rendered. This patch also reverts the first attempt at a fix from bug 1558374,
as it is no longer necessary since the entire target is being cleared.

Differential Revision: https://phabricator.services.mozilla.com/D90531
2020-09-17 20:37:11 +00:00
Jamie Nicol 7a8ce6c724 Bug 1665009 - Don't attempt any texture cache updates for reset textures. r=gw
When a texture cache texture is freed, we remove the list of pending updates for
that texture so that the renderer does not attempt to upload to it. We should do
the same for reset textures too. Not doing so was causing us to crash sometimes
when the android app was minimised (leading to a memory pressure event, and the
picture cache texture being reset) whilst the gfx.webrender.debug.texture-cache
was enabled (which caused us to issue debug clear updates).

Differential Revision: https://phabricator.services.mozilla.com/D90571
2020-09-17 20:35:16 +00:00
Alexandre Poirot 759d42fc7d Bug 1665306 - Process "network updates" in console with only one `networkUpdateRequest` action call. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D90394
2020-09-17 17:51:56 +00:00
Alexandre Poirot 2e59c20206 Bug 1665305 - Process "message network updates" in console with only one `networkMessageUpdate` action call. r=jdescottes
This help modifying redux state only once and prevent many uncesarry copies of the whole messages/network events Maps.
This will also later help getting rid of WebConsoleWrapper throttling in favor of upcoming ResourceWatcher one,
as we could call only one action from onResourceAvailable/Updated.

Differential Revision: https://phabricator.services.mozilla.com/D90367
2020-09-17 16:39:27 +00:00
Alexandre Poirot d2243d5672 Bug 1665293 - Call WebConsoleWrapper methods only once from WebConsoleUI.onResourceAvailable/Updated. r=jdescottes
This will ultimately help get rid of throttling done in WebConsoleWrapper
in favor of the upcoming one to be done from ResourceWatcher.

Differential Revision: https://phabricator.services.mozilla.com/D90366
2020-09-17 15:28:43 +00:00
Mike Hommey 76570df2df Bug 1665558 - Remove -Wno-noexcept-type. r=dmajor
It was added in bug 1320656 because back then we were building as C++14
with warnings about future incompatibilities with C++17. Since then,
we've switched to C++17, which means we had to fix those
incompatibilities, and thus they don't exist anymore. A local build with
-Werror=noexcept-type finishes just fine.

This removes the only difference between top-level and js warning flags.

Differential Revision: https://phabricator.services.mozilla.com/D90521
2020-09-17 12:33:48 +00:00
Steve Fink 038a3a2fc2 Bug 1638966 - Run `mach hazards` under py3 r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D90483
2020-09-17 19:57:18 +00:00
Morgan Reschenberg 6be7d1da9a Bug 1657418: Add visited, unvisited links, regular links to rotor and AXLinkUIElements to web area. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D89668
2020-09-17 20:20:55 +00:00
ffxbld 3768ca343e No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D90609
2020-09-17 20:20:07 +00:00
Jonathan Kew 464a670141 Bug 1662538 - patch 3 - Update front-end code to use nsIPaper.id instead of .name where appropriate. r=sfoster
Depends on D90074

Differential Revision: https://phabricator.services.mozilla.com/D90235
2020-09-17 20:06:30 +00:00
Jonathan Kew 9a746a0d41 Bug 1662538 - patch 2 - Localize paper names in the fallback paper size list used for Save to PDF. r=jwatt
Depends on D90073

Differential Revision: https://phabricator.services.mozilla.com/D90074
2020-09-17 20:05:16 +00:00
Jonathan Kew e206cf3d9e Bug 1662538 - patch 1 - Make nsIPaper expose a non-localizable .id in addition to a localizable .name attribute. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D90073
2020-09-17 20:05:08 +00:00
Glenn Watson 23607ef80d Bug 1665267 - Fix scrollbar drawing on mac. r=jgilbert
This temporarily reverts a small part of bug 1664719, to fix a
regression in scrollbar drawing on mac. It will be re-enabled
once the root cause is identified.

Differential Revision: https://phabricator.services.mozilla.com/D90495
2020-09-17 19:59:17 +00:00
Mark Banner 2e812f26a1 Bug 1665208 - Fix documentation header level for Region Params in search configuration schema docs. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D90321
2020-09-17 19:42:34 +00:00