Commit Graph

14274 Commits

Author SHA1 Message Date
Razvan Maries
e5944cdd0e Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-02-07 23:49:13 +02:00
Razvan Caliman
041edc992d Bug 1524548 - (Part 4) Add unit test to check stylesheets generated from tracked changes. r=pbro
Depends on D18706

Follow up for D18704. Adds xpcshell unit test to check that stylesheets are genereated in the expected formats for single or deeply nested CSS rules.

Differential Revision: https://phabricator.services.mozilla.com/D18860

--HG--
extra : moz-landing-system : lando
2019-02-07 08:41:09 +00:00
Razvan Caliman
2730476d0f Bug 1524548 - (Part 3) Add option to Changes panel context menu to copy changes. r-gl r=gl
Depends on D18704

Adds a new option to the context menu to copy the changes for a rule as valid CSS text.
Removed properties are commented out. Added properties are used as-is. Style source information is listed as a code comment above the CSS rule.

Makes use of the new Redux selector introduced in Part 2 (see D18704) to build a stylesheet text with the changes per-rule. That will be reused for copying all changes per-stylesheet.

Moves the copy text selection handler out to the ChangesView to co-locate it with other (upcoming) copy actions.

Adds data-ruleid and data-sourceid to DOM elements to help match the target element to the rule/source in the Redux store.

Differential Revision: https://phabricator.services.mozilla.com/D18706

--HG--
extra : moz-landing-system : lando
2019-02-06 19:07:42 +00:00
Razvan Caliman
a10d3a5218 Bug 1524548 - (Part 2) Add Redux selector method to build a stylesheet from a tree of changes. r=pbro
Depends on D18703

Adds a new selector method to build the CSS text for a stylesheet with the aggregated changes for one or more rules.
Makes use of the filtering capabilities introduced in Part 1.

Differential Revision: https://phabricator.services.mozilla.com/D18704

--HG--
extra : moz-landing-system : lando
2019-02-07 08:36:15 +00:00
Razvan Caliman
462cd515d5 Bug 1524548 - (Part 1) Add support to filter by ruleId and sourceId when building the changes tree. r=pbro
The diff for this change looks needlessly scary. The only material change is the introduction of the `filter` parameter to the `getChangesTree()` selector to restrict the output to a subtree that includes only the martching rules and sources provided in as arrays of ids in the `filters` argument.

The sources and rules are filtered, if any corresponding ids are provided, then the same logic to build the tree is used.

The meaningful blocks of code introduced are:

```
.filter(([sourceId, source]) => {
  // Use only matching sources if an array to filter by was provided.
  if (sourceIdsFilter.length) {
    return sourceIdsFilter.includes(sourceId);
  }

  return true;
})
```

introduced right after `Object.entries(state)`

and

```
.filter(([ruleId, rule]) => {
  // Use only matching rules if an array to filter by was provided.
  if (rulesIdsFilter.length) {
    return rulesIdsFilter.includes(ruleId);
  }

  return true;
})
```

introduced right after `Object.entries(rules)`.

Adding a newline confused the diff algorithm to consider that much bigger changes have occurred.

Introducing these filtering options lays the ground work for building subtrees of changes per-rule and per-stylesheet to be copied to the clipboard or saved as a file.

Differential Revision: https://phabricator.services.mozilla.com/D18703

--HG--
extra : moz-landing-system : lando
2019-02-06 08:12:23 +00:00
Alexandre Poirot
31b9f901ca Bug 1520774 - Remove TargetFactory.forWorker. r=yulia
Depends on D18539

Differential Revision: https://phabricator.services.mozilla.com/D18540

--HG--
extra : moz-landing-system : lando
2019-02-06 12:45:31 +00:00
Alexandre Poirot
c5e4b01f95 Bug 1520774 - Remove TargetFactory.forRemoteTab. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D18539

--HG--
extra : moz-landing-system : lando
2019-02-06 16:17:15 +00:00
Michael Ratcliffe
fb3659bc27 Bug 1356943 - Only show a tree in the storage sidebar when it is useful r=pbro
pbro did r+ this patch some time back but it kept breaking try. The only differences between then and now are:

1. `devtools/client/storage/ui.js:859` was reverted to using "" instead of undefined to fix test issues.
2. A bad check for mathematical values was replaced with a `MATH_REGEX` check `devtools/client/storage/ui.js:64,941-943`

A new try run is here:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0212fe328f13991ece396bccb44668d821cb4218&group_state=expanded

Differential Revision: https://phabricator.services.mozilla.com/D18578

--HG--
extra : moz-landing-system : lando
2019-02-07 09:33:42 +00:00
Michael Ratcliffe
991e8e8313 Bug 1523335 - Make use of parentFlexElement in Flexbox inspector r=pbro
This gives a very noticable increase in speed. When Brad finishes https://bugzil.la/1523336 we can stop walking the DOM and simply use `parentFlexElement` and `parentGridElement`.

#### Try

https://treeherder.mozilla.org/#/jobs?repo=try&revision=47d38f2c7dca6ca764862c8b00921644a974a975&group_state=expanded

Differential Revision: https://phabricator.services.mozilla.com/D18674

--HG--
extra : moz-landing-system : lando
2019-02-06 17:35:20 +00:00
Nicolas Chevobbe
65845d8775 Bug 1525332 - Lazy load components and modules we don't need right away at console initialization; r=Honza.
There was quite some file that was required directly
but that may not be used until later (or maybe never),
which means we were doing extra work.
Lazily loading those files seems to improve opening
time significantly.

Differential Revision: https://phabricator.services.mozilla.com/D18819

--HG--
extra : moz-landing-system : lando
2019-02-06 14:00:59 +00:00
Brian Hackett
599d131b45 Bug 1524127 Part 2 - Keep track of minor checkpoints in control logic, r=lsmyth.
--HG--
extra : rebase_source : 79e22b3a26ecb30c976ddd331684ab2adb08eb4d
2019-01-30 15:28:28 -10:00
Brian Hackett
dd7560c44b Bug 1524036 - Support calling ReplayDebugger Objects, r=lsmyth.
--HG--
extra : rebase_source : 7df84b32d8b4f11ab3aa6386548b1a1950aeab02
2019-01-30 10:13:19 -10:00
Florens Verschelde
0c1073976a Bug 1524244 - Make the netmonitor localhost icon use a smaller size and inherit currentColor; r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D18211

--HG--
extra : moz-landing-system : lando
2019-02-07 12:22:04 +00:00
Yuan Cheng
334701dccd Bug 1517496 - Make misused string test also check fluent files, r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D18524

--HG--
extra : moz-landing-system : lando
2019-02-07 10:38:24 +00:00
Oana Pop Rus
490ab7f9b8 Merge inbound to mozilla-central. a=merge 2019-02-07 11:47:46 +02:00
Daisuke Akatsuka
fc99d157f8 Bug 1523237: Introduce common function which opens/closes about:devtools-toolbox. r=jdescottes
Depends on D18778

Differential Revision: https://phabricator.services.mozilla.com/D18825

--HG--
extra : moz-landing-system : lando
2019-02-07 06:13:39 +00:00
Daisuke Akatsuka
7b25602ae0 Bug 1523237: Add test for a tooltip on about:devtools-toolbox. r=jdescottes
Depends on D18777

Differential Revision: https://phabricator.services.mozilla.com/D18778

--HG--
extra : moz-landing-system : lando
2019-02-07 06:12:25 +00:00
Daisuke Akatsuka
5b5c8cf47c Bug 1523237: Use windowRoot to get top window. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D18777

--HG--
extra : moz-landing-system : lando
2019-02-06 16:17:24 +00:00
Brian Hackett
daa438da17 Bug 1523829 - Support ReplayDebugger.Object proxy accessors, r=lsmyth.
--HG--
extra : rebase_source : 73c1f9cc1faae7e115519a485e12987744d1a1ae
2019-01-29 17:03:29 -10:00
Brian Hackett
766b513a96 Bug 1523755 - Ignore same-compartment debuggee errors in replay.js, r=lsmyth.
--HG--
extra : rebase_source : 347761530915bb5fc5a418980e04441b1e660a33
2019-01-29 11:04:53 -10:00
Daniel Varga
550c39c9a8 Backed out changeset d74e6f8cab1a (bug 1525711) for devtools failure at devtools/client/webconsole/test/fixtures/stub-generators/browser_webconsole_check_stubs_page_error.js on a CLOSED TREE
--HG--
extra : amend_source : e4f5c80b0336a9126326588a8405caeb820c0007
2019-02-07 16:01:09 +02:00
Nicolas B. Pierron
0fbd8146e0 Bug 1525711 - Index MDN page for JSMSG_REDECLARED_VAR errors. r=fscholz 2019-02-07 13:56:15 +01:00
Jason Laster
32016ba41e Bug 1522663 - Stop referencing sourceClient.isBlackboxed. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D17549

--HG--
extra : moz-landing-system : lando
2019-02-06 05:04:37 +00:00
Jason Laster
3359b0db75 Bug 1520972 - return setOptionsRequester. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D18770

--HG--
extra : moz-landing-system : lando
2019-02-06 16:51:01 +00:00
Alex Gaynor
0f01791ffc Bug 1512990 - Part 4 - remove declarations of Recv/Answer methods from IPDL protocol base class; r=froydnj
For cases where the class has direct calls (that is, we cast `this` to the
subclass before making the call) no longer declare Recv/Answer methods on the
base class at all. This should ensure that slots for them are not generated in
vtables, and also allow the derived class to choose the method signature (e.g.
whether it wants to take something by reference or by value).

Differential Revision: https://phabricator.services.mozilla.com/D18132

--HG--
extra : moz-landing-system : lando
2019-02-06 15:58:43 +00:00
Alex Gaynor
75c7d1fa76 Bug 1512990 - Part 2 - implement direct calls in the IPDL compiler; r=froydnj
When calling a Recv/Alloc/Dealloc method on most types, cast `this` to the
derived class.

There is a heuristic to figure out what the correct derived type is. There is a
blacklist of types which we can't do direct calls on for the moment, as well as
an override for types that do work with direct calls but which don't match the
heuristic.

Differential Revision: https://phabricator.services.mozilla.com/D16492

--HG--
extra : moz-landing-system : lando
2019-02-06 15:57:37 +00:00
championshuttler
a126b70349 Bug 1505704 - Fixes Flexbox-Toggle Tooltip spelling. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D18798

--HG--
extra : moz-landing-system : lando
2019-02-06 15:44:42 +00:00
Brindusan Cristian
b2ca1f33d7 Backed out changeset 89ba5f983e61 (bug 1525238) for dt failures at browser_changes_rule_selector.js and browser_inspector_highlighter-eyedropper-xul.js. 2019-02-06 13:08:39 +02:00
Razvan Caliman
ef7e6219b7 Bug 1525238 - Use actorID for tracked rules and stylesheets. r=pbro
Replaces custom generated hashes with the actorIDs which are stable
during the editing session enough to use as unique identifiers.

For future restore / persistence, we still have the metadata about each
rule and stylesheet to attempt to identify them again.

Differential Revision: https://phabricator.services.mozilla.com/D18660

--HG--
extra : moz-landing-system : lando
2019-02-06 08:08:57 +00:00
Oana Pop Rus
3da646bddf Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-06 12:07:13 +02:00
Jan Odvarko
a38ff5b603 Bug 1522793 - Remove disabling of ESLint rules indent-legacy and padded-blocks; r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17633

--HG--
extra : moz-landing-system : lando
2019-01-25 20:26:23 +00:00
Cosmin Sabou
8bd3dcb455 Merge mozilla-inbound to mozilla-central. a=merge 2019-02-05 23:58:20 +02:00
Cosmin Sabou
3a072e9701 Backed out changeset 8a5155bd8809 (bug 1523335) for devtools failures on browser_rules_gridline-names-autocomplete. CLOSED TREE
--HG--
extra : rebase_source : 457608e6d006784e27979af139c905c6b165913b
2019-02-05 20:45:03 +02:00
Gabriel Luong
604e15b086 Bug 1524631 - Implement new declaration editor for the new rules view. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D18387
2019-02-01 15:40:33 -05:00
Michael Ratcliffe
55b170fc51 Bug 1523335 - Make use of parentFlexElement in Flexbox inspector r=pbro
This gives a very noticable increase in speed. When Brad finishes https://bugzil.la/1523336 we can stop walking the DOM and simply use `parentFlexElement` and `parentGridElement`.

Differential Revision: https://phabricator.services.mozilla.com/D18674

--HG--
extra : moz-landing-system : lando
2019-02-05 16:53:22 +00:00
Gijs Kruitbosch
4d35eb314d Bug 1523020 - QI docshells to nsIWebNavigation when trying to access their .document property, r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D18675

--HG--
extra : moz-landing-system : lando
2019-02-05 16:23:33 +00:00
Coroiu Cristina
98926c4646 Merge inbound to mozilla-central a=merge 2019-02-04 23:42:26 +02:00
Michael Ratcliffe
7dce60ec8b Bug 1524097 - Devtools Inspector doesn't show any nodes (besides <html>) for LinkedIn pages r=rcaliman
I would have thought that the anonymous node fix would also have fixed this but we have had to manually add the before and after pseudo elements.

Differential Revision: https://phabricator.services.mozilla.com/D18536

--HG--
extra : moz-landing-system : lando
2019-02-04 16:57:10 +00:00
Brian Hackett
1c81ba83a1 Bug 1523421 - Reenable browser_webconsole_sourcemap_nosource.js mochitest. 2019-02-04 08:45:38 -10:00
Nicolas Chevobbe
fd48fcd309 Bug 1524275 - Fix PropTypes error in Group component (used in SmartTrace); r=Honza.
The patch adds a key to the FrameIndent created
in Group.

Differential Revision: https://phabricator.services.mozilla.com/D18221

--HG--
extra : moz-landing-system : lando
2019-02-04 16:01:39 +00:00
Martin Koroknay
568c22f379 Bug 1523861 - Remove toggle filter button and always show the filter buttons toolbar. r=nchevobbe
Removes the toggle filter button and makes the filter buttons toolbar permanently shown. At the same time removes relevant entries from actions/reducers. Also updates some tests which relied on showing and hiding the filter buttons toolbar. Also amends an unrelated test which relied on the non-presence of the filter buttons toolbar.

Differential Revision: https://phabricator.services.mozilla.com/D18504

--HG--
extra : moz-landing-system : lando
2019-02-04 13:22:36 +00:00
Shivam Singhal
4a8909a3ca Bug 1505704 - Add tooltip in Flexbox toggle. r=mtigley
Add tooltop in Flexbox toggle

Differential Revision: https://phabricator.services.mozilla.com/D17776

--HG--
extra : moz-landing-system : lando
2019-02-04 12:38:59 +00:00
Razvan Caliman
b82d1224bf Bug 1523305 - Show Font Editor in read-only mode for pseudo-elements. r=gl
Adds a new `disabled` property to the Font Editor Redux store applicable to all input fields.
When inspecting a pseudo-element, this `disabled` property is set to true.
This allows the pseudo-element to be inspected, but prevents editing font property values because it's currently not possible to write them back to CSS rules other than element inline styles.

Differential Revision: https://phabricator.services.mozilla.com/D18364

--HG--
extra : moz-landing-system : lando
2019-02-04 12:05:23 +00:00
championshuttler
e26b523f00 Bug 1522067 - Add additional info about commit messages & blocking reviews. r=Ola
Add additional info about commit messages and blocking reviews.

Differential Revision: https://phabricator.services.mozilla.com/D18490

--HG--
extra : moz-landing-system : lando
2019-02-04 11:03:19 +00:00
Gabriel Luong
b8946f9b80 Bug 1524024 - Extract RuleRewriter into its own module. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D18359

--HG--
rename : devtools/shared/css/parsing-utils.js => devtools/shared/fronts/inspector/rule-rewriter.js
2019-02-01 11:07:25 -05:00
Bogdan Tara
ab68196464 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-02-04 19:40:52 +02:00
Gurzau Raul
ee6ee38211 Backed out changeset 3d835071d160 (bug 1524024) for failing at unit/test_rewriteDeclarations.js on a CLOSED TREE 2019-02-04 19:33:10 +02:00
Belén Albeza
c59f885b06 Bug 1509960 - Define types for UI state. r=jdescottes,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D17962

--HG--
extra : moz-landing-system : lando
2019-02-01 15:39:25 +00:00
Alexandre Poirot
66f0cbdfcf Bug 1465635 - Listen to toggle and close key short only for window host type. r=jdescottes
We were registering these key shortcut twice.
A first time from devtools-startup.js and another time from Toolbox.
Both shortcut listeners were called when the toolbox was running,
leading the toolbox to reopen while we were expecting it to be closed.

Depends on D17610

Differential Revision: https://phabricator.services.mozilla.com/D18097

--HG--
extra : moz-landing-system : lando
2019-02-01 14:17:05 +00:00
Alexandre Poirot
df5faf8f9f Bug 1465635 - Ensure removing BrowsingContextTarget front events when destroying it. r=jdescottes
When destroying the target, Target.destroy (for local tabs) only calls DebuggerClient.close,
which isn't going to call `detach`. But we still do need to unregister
the tabNavigated/frameUpdate listener to prevent unecessary event from firing.

Depends on D17609

Differential Revision: https://phabricator.services.mozilla.com/D17610

--HG--
extra : moz-landing-system : lando
2019-02-02 11:24:04 +00:00