Commit Graph

725773 Commits

Author SHA1 Message Date
Kagami Sascha Rosylight
a9222dc61e Bug 1623764 - Part 4: Stop at hard linebreaks when eat_space_to_next_word r=emilio,masayuki
Differential Revision: https://phabricator.services.mozilla.com/D85923
2020-09-09 23:45:37 +00:00
Kagami Sascha Rosylight
cc03864743 Bug 1623764 - Part 3: Expose IsLineWrapped via LineInfo r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D85922
2020-09-09 23:45:29 +00:00
Kagami Sascha Rosylight
8aac8314d1 Bug 1623764 - Part 2: Add mSawInlineCharacter to PeekWordState r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D85921
2020-09-09 23:45:22 +00:00
Kagami Sascha Rosylight
231f515773 Bug 1623764 - Part 1: Destruct ILineIterator from where it's initialized r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D85920
2020-09-09 23:45:14 +00:00
Gerald Squelart
5f9ff13253 Bug 1663543 - Convert PROFILER_ADD_MARKER and 2-arg profiler_add_marker to PROFILER_MARKER_UNTYPED - r=gregtatum
Mostly mechanical change, with some extra work where non-literal names are provided.
Also, when this is the only profiler call in a file, `#include "GeckoProfiler.h"` can be changed to `#include "mozilla/ProfilerMarkers.h"`.

Differential Revision: https://phabricator.services.mozilla.com/D89415
2020-09-10 03:02:36 +00:00
Gerald Squelart
6c2997d6a8 Bug 1663543 - Make MarkerCategory and MarkerOptions usable in macros - r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D89414
2020-09-10 03:00:54 +00:00
James Teh
4e4a30b765 Bug 1662876: Use aria-labelledby on the credit card number field to avoid the value being included in the label. r=zbraniecki
Ideally, the error message would be outside of the wrapping label element, which would avoid inclusion of the value in the label.
However, I didn't want to potentially mess with the visual presentation, especially given the tight timeline.

Differential Revision: https://phabricator.services.mozilla.com/D89547
2020-09-09 23:51:50 +00:00
Razvan Maries
f0ac3ad62a Backed out changeset baab244deeb0 (bug 1662703) for perma failures on 482681.xhtml. CLOSED TREE 2020-09-10 04:50:23 +03:00
Razvan Maries
90b7948378 Backed out 2 changesets (bug 1663963, bug 1657188) for perma failures on browser_Telemetry_loadTimePreload.js. CLOSED TREE
Backed out changeset 643f16da7b99 (bug 1657188)
Backed out changeset 0c9661a5c8f9 (bug 1663963)
2020-09-10 03:48:48 +03:00
Emilio Cobos Álvarez
4fd2a66f25 Bug 1664026 - Follow-up: remove unused variable to make gcc happy.
MANUAL PUSH: bustage fix for some builds

CLOSED TREE
2020-09-10 02:43:26 +02:00
Jonathan Watt
42f409de3c Bug 1662222. Don't spin a nested event loop in nsPrintJob::DoCommonPrint when called by extensions. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D89681
2020-09-10 00:12:48 +00:00
Emily McDonough
1a57b0fbb0 Bug 1661157 part 2 - Fetch CUPS printer info as it is needed by nsPrinterCUPS r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D89655
2020-09-09 23:56:13 +00:00
Emily McDonough
6475575f03 Bug 1661157 part 1 - Wrap nsPrinterCUPS::mPrinterInfo in a data mutex r=emilio
This may also help with the crashes in bug 1663410 and bug 1663412

Differential Revision: https://phabricator.services.mozilla.com/D89654
2020-09-09 23:51:59 +00:00
Hiroyuki Ikezoe
f911529508 Bug 1662325 - Use EqualsIgnoringFPD to compare originAttributes in nsFrameLoader::SwapWithOtherRemoteLoader. r=emilio,nika
Differential Revision: https://phabricator.services.mozilla.com/D89528
2020-09-09 23:57:28 +00:00
longsonr
013ad7db46 Bug 1663438 - check element r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D89673
2020-09-09 23:51:51 +00:00
Mike Hommey
a133ef0e15 Bug 1663863 - Vendor autoconf 2.13. r=firefox-build-system-reviewers,rstewart
The files are copied verbatim from upstream autoconf 2.13 (but only the
files we need) and old.configure is adapted to use the vendored version.

Differential Revision: https://phabricator.services.mozilla.com/D89554
2020-09-09 23:50:38 +00:00
Mike Hommey
8d261dbd4e Bug 1663850 - Remove unused variables in config/config.mk. r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D89551
2020-09-09 23:50:38 +00:00
Michael Kaply
7c39304335 Bug 1663899 - make creation of the popuphidden promise in managed bookmarks test happen earlier, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D89660
2020-09-09 22:59:37 +00:00
Mitchell Hentges
76523a630e Bug 1651424: Bump glean version to 32.3.1 r=firefox-build-system-reviewers,rstewart
32.3.0 was missing Python wheels for macOS.

Differential Revision: https://phabricator.services.mozilla.com/D89641
2020-09-09 22:28:16 +00:00
Chris H-C
77f7a37e06 Bug 1658359 - Init the Glean SDK off-thread r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D88981
2020-09-09 20:04:12 +00:00
Chris H-C
1776c98e00 Bug 1658359 - Suppress Glean-sent pings in tests that redirect Telemetry r=janerik
I would redirect Glean-sent pings instead of suppressing them, but network
errors seem to be causing unrelated failures in
toolkit/mozapps/extensions/test/browser/browser_html_discover_view_clientid.js

Differential Revision: https://phabricator.services.mozilla.com/D88980
2020-09-09 20:01:06 +00:00
Chris H-C
8b4b4c2645 Bug 1658359 - Don't let about:glean crash if Glean isn't init r=janerik
Some fog control APIs want to be able to not explode if the Global Glean isn't
available yet. Let's make that possible.

Differential Revision: https://phabricator.services.mozilla.com/D87279
2020-09-09 20:01:04 +00:00
Chris H-C
6ee8e69a17 Bug 1658359 - Update logging documentation r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D87278
2020-09-09 19:59:52 +00:00
Chris H-C
45c2ffc151 Bug 1658359 - Initialize FOG during startup idle. r=janerik
This makes FOG self-contained and no longer reliant on Telemetry for init.

We may need to adjust the timeout of the startup idle task to init earlier,
or adjust the pre-init buffer to allow us to init later.

For now of course all of this is moot because no one's using this for anything.

Differential Revision: https://phabricator.services.mozilla.com/D87276
2020-09-09 19:59:50 +00:00
Chris H-C
03081cabbf Bug 1658359 - Move FOG client info to Rust r=janerik
We can now get everything fog_init needs from xpcom in Rust without having to
pass anything from C++.

Differential Revision: https://phabricator.services.mozilla.com/D87275
2020-09-09 19:59:42 +00:00
Chris H-C
0ccc5d63b8 Bug 1658359 - Rename nsIAboutGlean and friends to nsIFOG r=janerik
We'll need this interface for more general operations than just powering
about:glean.

Differential Revision: https://phabricator.services.mozilla.com/D87274
2020-09-09 19:59:35 +00:00
Tarek Ziadé
282632b3a0 Bug 1662706 - add a fuzzy runner r=sparky,necko-reviewers,rstewart DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D89123
2020-09-10 11:36:29 +00:00
Tarek Ziadé
2e207a9e80 Bug 1663417 - make scriptinfo compatible with xpcshell tests r=sparky DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D89372
2020-09-10 11:18:26 +00:00
Tarek Ziadé
fa3f23fe40 Bug 1661809 - use mach lint r=sparky DONTBUILD
Removed our custom linter calls and use mach lint

Differential Revision: https://phabricator.services.mozilla.com/D89703
2020-09-10 14:00:15 +00:00
Ryan VanderMeulen
423dc3b699 Bug 1664190 - Update pdf.js to version 2.7.37. r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D89733
2020-09-10 14:35:12 +00:00
Andi-Bogdan Postelnicu
4e61a84966 no bug - Doc: document vscode integration. r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D89716
2020-09-10 13:56:26 +00:00
emcminn
149584a2e8 Bug 1662609 - Fix hover state for secondary buttons r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D89209
2020-09-09 21:03:31 +00:00
Jamie Nicol
cd2e26699d Bug 1654723 - Skip building DisplaySVGGeometry items if fill, stroke and markers are none. r=jwatt
Except for SVGImageFrames, where the fill property should be ignored.

Differential Revision: https://phabricator.services.mozilla.com/D88644
2020-09-10 13:52:31 +00:00
sotaro
caabc67369 Bug 1663894 - Fix minGW build failure by Bug 1460499 r=nical
Differential Revision: https://phabricator.services.mozilla.com/D89699
2020-09-10 14:03:15 +00:00
Henri Sivonen
a3de3aff03 Bug 1613054 part 2 - On iframe.focus() create the initial about:blank for in-process case and treat the iframe as focusable for OOP case. r=nika
Test cases in https://bugzilla.mozilla.org/show_bug.cgi?id=1649099

Differential Revision: https://phabricator.services.mozilla.com/D88978
2020-09-10 10:44:34 +00:00
Benjamin Bouvier
1651b6f3cf Bug 1663919: Report cranelift verifier errors as panics in debug builds; r=cfallin
Differential Revision: https://phabricator.services.mozilla.com/D89593
2020-09-09 15:07:10 +00:00
Kershaw Chang
9959ea65a6 Bug 1648515, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D89110
2020-09-09 12:57:32 +00:00
Benjamin Bouvier
ba273047b5 Bug 1663898: Really enable Cranelift by default on aarch64 builds; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D89600
2020-09-09 13:11:57 +00:00
Ricky Stewart
e559d0c65b Bug 1663959 - Remove references to autoconf from build documentation r=dmajor
As of bug 1663863, we vendor this in-tree, so installing/configuring it is no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D89614
2020-09-09 15:44:50 +00:00
Andrei Oprea
a93cd6a675 Bug 1661727 - Messaging System action to allow configuration of the new tab page r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D88867
2020-09-09 18:27:46 +00:00
Razvan Caliman
6d25af4eda Bug 1646028 - Rename show/hide events for CssTransformHighlighter to avoid conflicts with generic highlighter events. r=jdescottes
Depends on D85863

Follow-up for code review https://phabricator.services.mozilla.com/D81526#inline-471516

Renaming existing events emitted on behalf of `CssTransformHighlighter` to avoid conflict and confusion with the generic show/hide highlighter events introduced in HighlightersOverlay. When migrating the CssTransformHighlighter to the Fission-ready highlighters approach, these event names will go away completely.

Differential Revision: https://phabricator.services.mozilla.com/D89570
2020-09-10 12:00:17 +00:00
Razvan Caliman
7a1fde5f19 Bug 1646028 - Hide the correct Box Model Highlighter before a node screenshot. r=jdescottes
Depends on D85862

Differential Revision: https://phabricator.services.mozilla.com/D85863
2020-09-10 11:57:58 +00:00
Razvan Caliman
dc11adf8a2 Bug 1646028 - Fix Inspector tests using node reps to use Box Model Highlighter r=jdescottes
Depends on D85861

Differential Revision: https://phabricator.services.mozilla.com/D85862
2020-09-10 11:57:25 +00:00
Razvan Caliman
b5059faeb3 Bug 1646028 - Update Animation Inspector to use Box Model Highlighter r=jdescottes
Depends on D85860

Differential Revision: https://phabricator.services.mozilla.com/D85861
2020-09-10 11:57:12 +00:00
Razvan Caliman
c16d2d8551 Bug 1646028 - Update Box Model diagram to use Box Model Highlighter. r=jdescottes
Depends on D85859

The Box Model diagram in the Layout sidebar panel of the Inspector shows a Box Model Highlighter on hover over its components parts: margin, border, padding, content.

This patch routes the calls to the highlighter to use the approach introduced in `HighlightersOverlay` in D81526

Differential Revision: https://phabricator.services.mozilla.com/D85860
2020-09-10 11:57:09 +00:00
Razvan Caliman
ee0de8141e Bug 1646028 - Update Markup view to use Box Model Highlighter. r=jdescottes
Depends on D85858

The Markup view uses the highlighter in a few places:
- while hovering over nodes in the node tree
- while hovering over nodes in the breadcrumbs view under the node tree
- after clicking a node from the node tree, a highlighter is shown, then it is automatically hidden after a delay

This patch routes all calls to show and hide the highlighter to the newly implemented approach in `HighlightersOverlay` which ensures hiding existing instances before showing others regardless of target.

A slight change is made in `HighlightersOverlay` to allow passing in an option to automatically hide the highlighter after a delay. This removes the need for discrete handling of timers within the markup view (removes [_brieflyShowBoxModel](https://searchfox.org/mozilla-central/source/devtools/client/inspector/markup/markup.js#742-756)) and enables reusing this mechanism with the Node Picker after picking (see `onPickerPicked` in [this diff](https://phabricator.services.mozilla.com/D81528?vs=321451&id=332813#toc) from D81528)

`HighlightersOverlay.showHighlighterTypeForNode()` no longer skips duplicate calls with the same highlighter type and nodeFront if the options provided are different between calls.  This supports scheduling autohide on an already visible highlighter. Use case: in the node tree, hover over a node (shows highlighter), then click on the node (shows highlighter again, but schedules autohide after a delay)

NOTE: This automatic hiding after a delay can cause intermittent test failures. Slow running tests can find themselves without a highlighter midway through the checks. To mitigate this, while testing, highlighters are not automatically hidden.  See `HIGHLIGHTER_AUTOHIDE_TIMER` in [this diff](https://phabricator.services.mozilla.com/D81528?vs=321451&id=332813#toc) from D81528. Tests which explicitly check the autohide behavior can reinstate `inspector.HIGHLIGHTER_AUTOHIDE_TIMER`.

Tests are updated to invoke actual highlighters and listen to their events. No more mocking.

Differential Revision: https://phabricator.services.mozilla.com/D85859
2020-09-10 11:55:57 +00:00
Razvan Caliman
e66da30f07 Bug 1646028 - Add test helpers for waiting on highlighter events r=jdescottes
Depends on D81528

Differential Revision: https://phabricator.services.mozilla.com/D85858
2020-09-10 11:55:03 +00:00
Razvan Caliman
c8f858e552 Bug 1646028 - Update Node Picker to use Box Model Highlighter. r=ochameau,jdescottes
Depends on D81526

This patch updates tests pertaining only to node picker behavior. Run one-by-one, they're all expected to pass.

However, running the whole Inspector test suite at this point in the commit series will fail some other tests because:
- we're updating shared test helpers here without also updating the other tests;
- there is inter-dependence in the other tests between node picker and markup view which is being migrated to the new highlighters approach in D81530

The rest of the tests are getting updated in the subsequent patches in this commit series.

Differential Revision: https://phabricator.services.mozilla.com/D81528
2020-09-10 11:54:25 +00:00
Razvan Caliman
8e4b6b2a5b Bug 1646028 - Add generic highlighter manager to HighlightersOverlay. r=ochameau
Depends on D81525

Introduced a centralized way in `HighlightersOverlay` to invoke highlighters by type, automatically managing previously active highlighters.

First some context.
`HighlightersOverlay` is a bit of a misnomer. It already does a few things:
- provides methods to manually invoke some highlighters (Flex/Grid/Shapes/BoxModel)
- provides a way to delegate mouse events from Rules view / Computed view / Markup and invoke highlighters based on the event's target node
- manages state of Flex/Grid highlighters to be able to restore them on page refresh
- exposes the node that is highlighted by a particular highlighter
- misc handlers for events that require hiding highlighters by type (ex mutation events)

The changes in this patch add the core functionality which will automatically manage the visibility of highlighters regardless of their node's host frame:
- `this._activeHighlighters` is a Map which maps a highlighter type to the currently visible highlighter instance and its corresponding `NodeFront`
- `showHighlighterTypeForNode(type, nodeFront, options)` invokes a highlighter type for a given `NodeFront` while toggling off any existing highlighter for that type. For situations where multiple highlighters of the same type can be visible at the same time (ex: Grid), this is where we could manage their visibility.
- `hideHighlighterType(type)` hides all highlighters of a given type; can be followed-up with a more specific `hideHighlighterTypeForNode()` when needed
- `getNodeForActiveHighlighter(type)` returns the `NodeFront` currently highlighted by a highlighter type. This is an abstracted replacement for `flexboxHighlighterShown`, `geometryEditorHighlighterShown`, etc.

##### Accommodation for tests

To mitigate the fact that many tests and some consumers expect [exact event names](https://searchfox.org/mozilla-central/search?path=&q=-highlighter-shown) to be fired, like "box-model-highlighter-shown", instead of generic shown/hidden events with the highlighter type property as event data, we introduce a temporary map, `HIGHLIGHTER_EVENTS`, from which we pick the event to fire according to the highlighter type. As we progress in refactoring, the intent is for this map to slowly go away.


##### Intent for refactoring

The intent is for all client-side consumers to invoke highlighters via these methods. For example:
```
this.inspector.highlighters.showHighlighterTypeForNode(
      "BoxModelHighlighter",
      nodeFront
    )
```

See another example of this in the migration of `FlexboxHighligther` in D79694.

##### Future plans

In the medium-term, it's likely we'll move this part of `HighligthersOverlay` from inspector to toolbox and rename it `HighlightersManager`. This way, other consumers, like Debugger and Console can also use it [instead of the existing approach](https://searchfox.org/mozilla-central/rev/027893497316897b8f292bde48dbb6da2391a331/devtools/client/framework/toolbox.js#3503-3557). Haven't attempted this yet. Pending updates to the Flexbox, Grid, Shapes and CSS Transform highlighters so when we migrate paths from `inspector.highlighters` to ️ `toolbox.highlighters` is done in one go for all tests and consumers.

Differential Revision: https://phabricator.services.mozilla.com/D81526
2020-09-10 12:00:34 +00:00
Andrei Oprea
228eb79c97 Bug 1662806 - Add a session counter for openURL trigger r=nanj
Differential Revision: https://phabricator.services.mozilla.com/D89391
2020-09-10 11:51:06 +00:00