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

1692 Коммитов

Автор SHA1 Сообщение Дата
J. Ryan Stinnett d4371a1b85 Bug 1457804 - Use content size for DevTools highlighter writing mode adjustments. r=gl
The writing mode / RTL adjustments performed by `getWritingModeMatrix` needs the
element's content size without margins, borders, or padding.

MozReview-Commit-ID: LsSfNN4fyDR

--HG--
extra : rebase_source : 2c98d6ad0ee7593d542d84e64b65332a6917c7a5
2018-05-03 19:06:14 -05:00
Michael Ratcliffe 764c4c8578 Bug 1098374 - Telemetry: Stop all monkey patching in devtools telemetry tests r=yulia
Changes and notes:
  - Created `devtools/client/shared/test/telemetry-test-helpers.js`, which
    contains test helpers to aid in creating and running telemetry tests.
  - Removed any telemetry monkeypatching as it is not dependable and no longer
    needed (there is some left in GCLI but the test is now disabled because
    we are removing GCLI soon anyhow).
  - Because `telemetry-test-helpers.js` is imported by `shared-head.js` I
    have had to make it available everywhere that shared-head.js is used.
  - All telemetry tests have been rewritten to use the new helper.
  - shared-head.js cannot be imported by tests inside
    `devtools/client/performance/test/` because perf have custom `once` and
    `waitFor` implementations that act differently from the ones inside
    `shared-head.js`. This means I had to import the telemetry helpers into
    `devtools/client/performance/test/head.js`
  - Created `devtools/client/shared/test/browser_telemetry_misc.js` to be sure
    to catch `DEVTOOLS_SCREEN_RESOLUTION_ENUMERATED_PER_USER` (we catch a few
    others to be thorough).
  - Disabled `browser_inspector_menu-02-copy-items.js`, which was failing to
    test some expired scalars. I also corrected the way the scalars are logged
    because it was completely wrong.

MozReview-Commit-ID: JjQEGM6hT61

--HG--
extra : rebase_source : cd1214d01bd11908f69167839975cd93ecb83421
2018-05-01 18:06:14 +01:00
Yura Zenevich fafff441b6 Bug 1445251 - enable parent process accessibility service if child process one is enabled on startup. r=pbro
MozReview-Commit-ID: EcFp0KSc9i8
2018-05-03 12:45:50 -04:00
Cosmin Sabou ce9ff94ffe Merge inbound to mozilla-central. a=merge 2018-05-02 17:58:43 +03:00
Mike Ratcliffe 6e8faf3f57 Bug 1454103 - Correct display of local and sessionStorage in DevTools r=nchevobbe
Take into account node offsets in browser_webconsole_object_inspector_local_session_storage.js.

MozReview-Commit-ID: 73waFejjsF0

--HG--
extra : rebase_source : d34e26c280f777e266ab7f014cfb9b41e07c9a5e
2018-04-14 00:29:59 +01:00
Razvan Caliman b1dd705200 Bug 1451264 - Refactor shape editor to reuse render code for shape update and shape transform. r=pbro
MozReview-Commit-ID: GfURyGeJ17a

--HG--
extra : rebase_source : 4709583e614006c895ceed28b430db4639e2d9dc
2018-04-27 18:07:29 +02:00
Razvan Caliman c4c977cedd Bug 1457838 - Shape editor: account for scrollbars when dragging markers to the edges of the viewport. r=pbro
MozReview-Commit-ID: HsoLfpxZWrh

--HG--
extra : rebase_source : 488df8cfcfdf82ffe76dc566e99030bc16288a89
2018-04-27 15:22:00 +02:00
Xidorn Quan 5050b395ae Bug 1434130 part 13 - Use Servo code to back GetCSSValuesForProperty. r=emilio,gl
This causes various changes to properties-db.js and also many devtools
tests get updated.

There are two changes affect multiple tests:

* `calc` gets removed from everywhere. We never have it listed in all
  properties which deserve it, and doing so without much false positive
  (i.e. properties don't deserve but get it) can be pretty tricky.
  So they are just removed for now.

* The complete color keyword list is no longer included, and instead,
  "COLOR" is prepended to the list directly. We can probably remove
  the related code which replaces color keywords with "COLOR" from
  devtools. Note that, with stylo enabled, the list is already unrelated
  to what the parsing code uses. We should eventually re-enable the
  disabled test here after we can get the color list from cssparser
  in bug 1456715.

Other changes to properties-db.js seem to be valid, some of them also
affect tests:

* `{-webkit-,}align-{content,items,self}` get `first baseline`, `safe`,
  `unsafe`, and lose `left` and `right`.

* `{-moz-,-webkit-,}{animation,transition}{,-timing-function}` has a
  new `frame` keyword which is a function value in `<timing-function>`.

* `{background,{-webkit-,}mask}-position-x` lose `top` and `bottom`, and
  correspondingly `{background,{-webkit-,}mask}-position-y` lose `left`
  and `right`.  They don't deserve those values.

* `{background,{-webkit-,}mask}{,-size}` get `auto`.

* `border` shorthand loses `<image>` values as well as other keyword
  values for `border-image-*` subproperties, because they aren't parsed
  on the shorthand.

* `{-moz-,}border-image{,-width}` get `auto`.

* `-moz-context-properties` gets `none`.

* `cursor` get some -moz-prefixed values as well as `url`.

* `fill` and `stroke` get the color keywords.

* `{-webkit-,}filter` get the keywords and function names.

* `font` shorthand loses values from many of `font-variant-*` properties
  because they are not parsed there.

* `font-variant` and `font-variant-alternates` get function values of
  the longhand.

* `font-variant-{east-asian,ligatures,numeric}` get `normal`, and
  `font-variant-ligatures` in addition gets `none`.
  `font-{feature,variation}-settings` also get `normal`.

* `grid` and `grid-template-{areas,columns,rows}` get `none`.

* `grid`, `grid-template`, and `grid-template-{columns,rows}` get
  `auto`, `fit-content`, `minmax`, and `repeat`.

* `grid-auto-{columns,rows}` get `auto`, `fit-content` and `minmax`.

* `-moz-image-region` gets `auto` and `rect`.

* `{-webkit-,}justify-content` lose `baseline`, `last baseline`, and
  get `safe` and `unsafe`.

* `{justify,place}-items` get `first baseline`, `legacy`, `safe`,
  `unsafe` and lose `auto`.

* `{justify,place}-self` and `place-content` get `first baseline`,
  `safe`, and `unsafe`.

* `outline{,-style}` get `hidden`.

* `scroll-snap-coordinate` gets `none`, and `scroll-snap-points-{x,y}`
  gets `none` and `repeat`.

* `shape-outside`, `text-emphasis{,-style}` get all the keyword values
  and function names they deserve.

* `stroke-dasharray` gets `none`.

* `text-combine-upright` drops `digits` which we never implemented.

* `{-moz-,-webkit-,}transform` and `-moz-window-transform` get their
  transform function list. `accumulatematrix` and `interpolatematrix`
  aren't real CSS value but they have `#[css(function)]` specified.
  We should probably remove them at some point.

* `will-change` gets `auto`.

* All properties accept `<image>` value now gets -webkit-prefixed
  gradient function names, including
  * `background{,-image}`,
  * `{-moz-,-webkit-,}border-image{,-source}`, and
  * `{-webkit-,}mask{,-image}`.

MozReview-Commit-ID: E7Y0CFUFYgW

--HG--
extra : source : bab732c8c531cfca1bcd233f769c25bb2e373773
2018-04-29 09:03:31 +10:00
Kris Maglione a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Csoregi Natalia 96dbf29680 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-28 00:56:47 +03:00
Csoregi Natalia 12af4303ff Merge inbound to mozilla-central. a=merge 2018-04-28 00:53:15 +03:00
Gabriel Luong b90a845dd3 Bug 1452503 - Remove closePath call to fix the implicit and explicit lines drawn on the grid highlighter. r=jdescottes 2018-04-27 10:14:46 -04:00
Cosmin Sabou 68fdb6cf4f Merge inbound to mozilla-central. a=merge 2018-04-27 13:04:36 +03:00
Boris Zbarsky 76ead58490 Bug 1455674 part 19. Get rid of JS uses of nsIDOMElement. r=qdot
In nsBlocklistService.js we know we're dealing with actual nodes, so .nodeType
checks should be fine.
2018-04-26 23:37:34 -04:00
yulia 318a381a6e Bug 1450948 - Convert ChromeActor to protocol.js r=ochameau
MozReview-Commit-ID: 1pwYUXGiEdT
* fix types in tab.js

MozReview-Commit-ID: 2PAU8IeEKDV

--HG--
extra : rebase_source : 4003f1c84108aed4f37bca2d3c8cfb32d5ac40e9
2018-04-24 15:30:38 +02:00
Michael Ratcliffe 2d9c74daf9 Bug 1456772 - Fix web console message_count reporting r=yulia
MozReview-Commit-ID: 4DoChJ5AtCG

--HG--
extra : rebase_source : 956f44b42c3146cda36c196ae63decaf0a5ea166
2018-04-25 10:20:30 +01:00
Cosmin Sabou 6b8c87c819 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-27 13:12:22 +03:00
Razvan Caliman a49dc964fe Bug 1450685 - Ensure correct cursor is shown when rotating a polygon. r=pbro
MozReview-Commit-ID: Jv6uD6T0HmP

--HG--
extra : rebase_source : 4eca32c001f69513c4c53eaa2064f423f8bd7ed0
2018-04-12 17:10:05 +02:00
Razvan Caliman 927ffd73a1 Bug 1457206 - Round values for all shape coordinates. r=pbro
MozReview-Commit-ID: H2fspzF5mYz

--HG--
extra : rebase_source : 7ee5ceebaed1d420d1cd0c97a330cac3ebd45664
2018-04-26 18:17:37 +02:00
Nicolas Chevobbe 6ff34d6d14 Bug 1451018 - Convert SymbolActor to protocol.js; r=yulia.
MozReview-Commit-ID: AW2uxeN1tpM

--HG--
extra : rebase_source : 4dc7656798af9ab0227318758a9b4e653ddf77f4
2018-04-18 15:04:03 +02:00
Neil Deakin ef5f9b4b23 Bug 1446961, move PopupBoxObject to XULPopupElement, a new subclass of XULElement. Remove popup.xml methods, r=paolo,bz
Test changes for removal of PopupBoxObject and popup.xml methods, some reflow tests now have different stacks now that they are not going through popup.xml binding methods, test_popupanchor.xul changes due to need to wait for popuppositioned event after resizing. The old code would just adjust the arrow directly when sizeTo was called, but the new code does this through an asynchronous popuppositioned event. Changes to some places that check for XULElement class.

--HG--
rename : dom/webidl/PopupBoxObject.webidl => dom/webidl/XULPopupElement.webidl
rename : layout/xul/PopupBoxObject.cpp => dom/xul/XULPopupElement.cpp
rename : layout/xul/PopupBoxObject.h => dom/xul/XULPopupElement.h
2018-04-27 11:04:38 -04:00
Alexandre Poirot f44b62f9b3 Bug 1454899 - Prevent request arguments duplication on each request call. r=jryans
MozReview-Commit-ID: GaLM6LsCoWp

--HG--
extra : rebase_source : cd2d5a9cf756ebf29050490145851f1b9afc8aa1
2018-04-05 10:00:02 -07:00
David McCurry 771befd505 Bug 859051 - Implement cache panel; r=Honza
--HG--
extra : histedit_source : 48d73a800ca6a9d09d70a5b80e7c86caf912c560
2018-05-01 05:42:00 +03:00
Adrian Wielgosik b3c501adc4 Bug 1447389 - Remove nsIDOMNodeList. r=bz
MozReview-Commit-ID: 11szZP6dS6V

--HG--
extra : rebase_source : 9acfb352750e53d3b36684fa945a18e817c9b82e
2018-04-25 23:01:30 +02:00
Andreea Pavel a21531022b Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js => toolkit/components/extensions/test/xpcshell/test_ext_proxy_config.js
2018-04-26 09:04:59 +03:00
J. Ryan Stinnett 3245e468de Bug 1456274 - Add target.makeRemote in several tests. r=ochameau
Navigation events now require a "remoted" target.  Add `makeRemote` calls to a
tests which make use of these features.

MozReview-Commit-ID: GJsleBWryCd

--HG--
extra : rebase_source : 37ffaac7215b2458a82b8a7a2a59fa4321e370b8
2018-04-23 19:18:59 -05:00
Dorel Luca 399538631e Backed out 3 changesets (bug 1456274) for Linting failure. CLOSED TREE
Backed out changeset 707d5e397407 (bug 1456274)
Backed out changeset 97e8882d0343 (bug 1456274)
Backed out changeset 7cf34fe2036e (bug 1456274)

--HG--
extra : amend_source : 08e399334a2662d2e80a2c37b8c7f34c45a40af6
2018-04-26 01:28:33 +03:00
J. Ryan Stinnett f4ca801391 Bug 1456274 - Add target.makeRemote in several tests. r=ochameau
Navigation events now require a "remoted" target.  Add `makeRemote` calls to a
tests which make use of these features.

MozReview-Commit-ID: GJsleBWryCd

--HG--
extra : rebase_source : 2319d43ea29cfa33850295ff2d4c902e22ae3727
2018-04-23 19:18:59 -05:00
Kris Maglione a7b308c3a2 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW

--HG--
extra : rebase_source : cffb1c9762191c579d1397c8169e6e7635d229da
extra : histedit_source : dea59ddd2daaae52069c5faceae9149a4f08dd73
2018-04-24 20:18:09 -07:00
Yura Zenevich a7bb930a24 Bug 1450927 - use new getBoundsInCSSPixels method for accessible bounds in accessible highlighter. r=jryans
MozReview-Commit-ID: 4Ixj2ksuDrP
2018-04-25 14:51:18 -04:00
Yura Zenevich dbc919795a Bug 1451241 - check text children of non-accessible nodes when retrieving accessible objects. r=jdescottes
MozReview-Commit-ID: 2SFe6g3hOCc
2018-04-25 14:06:16 -04:00
Tiberius Oros 2fffa00bb3 Backed out 2 changesets (bug 1450927) for failing on ProxyAccessible.cpp(247) on a CLOSED TREE
Backed out changeset ca285aed3926 (bug 1450927)
Backed out changeset d7dd8b0d2473 (bug 1450927)
2018-04-25 19:31:50 +03:00
Yura Zenevich 6a4f0426d6 Bug 1450927 - use new getBoundsInCSSPixels method for accessible bounds in accessible highlighter. r=jryans
MozReview-Commit-ID: 4Ixj2ksuDrP
2018-04-25 11:45:46 -04:00
Brad Werth ab7e20d492 Bug 1265342 Part 1: Add shape-margin to style system (Gecko bindings). r=xidorn
MozReview-Commit-ID: 3G0ZpWDrumg

--HG--
extra : rebase_source : da38e002a62212757adf276413aebbf58aa7d9b6
2018-02-07 17:27:04 -08:00
Razvan Caliman 0b89a66cc4 Bug 1455588 - Allow dragging Shape Editor markers outside of iframe viewport. r=pbro
MozReview-Commit-ID: 4JZYDa8FUJg

--HG--
extra : rebase_source : e84122ee6751f8d30a755af840745e35c9d58da6
2018-04-24 17:51:31 +02:00
Margareta Eliza Balazs fa0ffa186e Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : toolkit/mozapps/extensions/internal/XPIProviderUtils.js => toolkit/mozapps/extensions/internal/XPIDatabase.jsm
2018-04-24 14:51:28 +03:00
Ciure Andrei 1940af33ec Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-04-24 04:29:20 +03:00
Ciure Andrei 33e644e1da Merge inbound to mozilla-central. a=merge 2018-04-24 04:14:21 +03:00
Mats Palmgren 9acb0f48fc Bug 1398482 part 6 - Update devtools with the renamed longhands. r=me 2018-04-24 01:52:51 +02:00
Michael Ratcliffe b23784ee71 Bug 1441070 - Instrument toolbox panel navigation with event telemetry r=yulia
This is pretty simple... finding the best locations for the probes was the
struggle here.

In order to land these probes before the freeze the test for these events will
be created as part of bug 1456073.

MozReview-Commit-ID: 7hIfbD3wQ1I

--HG--
extra : rebase_source : 990e69e0816742fc306b9313bd113f2d71f00b72
2018-04-19 12:09:28 +01:00
Razvan Caliman ef0592fd09 Bug 1455535 - Add support for vmin/vmax units. Ensure vh/vw are computed against actual host window. r=pbro
MozReview-Commit-ID: 1ifVJu1OW5L

--HG--
extra : rebase_source : 876f9adf2cac9fbff3965f26452f4239b18d0ee4
2018-04-20 17:31:39 +02:00
Kris Maglione 877eae8863 Bug 1454202: Part 1 - Update legacy callers to use Promise-based AddonManager APIs. r=aswan
***
Bug 1454202: Part 1a - Auto-replace uses of callback-based AddonManager APIs with Promise-based versions. r=aswan

This was done using the following script:

4cd5ae9597/processors/aom-api-generators.jsm

MozReview-Commit-ID: 8hobLz15a66
***
Bug 1454202: Part 1b - Manually fix eslint errors after auto-rewrite. r=aswan

This also deletes an obsolete test whose xpcshell variant was already deleted.

MozReview-Commit-ID: DM9W9Q2SVIE
***
Bug 1454202: Part 1c - Manually fix non-eslint issues after auto-rewrite. r=aswan

MozReview-Commit-ID: DtMscWZuExc

--HG--
extra : rebase_source : d4c2f80bdf02ec4a07e3713a9ae1823145d25942
2018-04-14 19:38:18 -07:00
Boris Zbarsky 17995a441f Bug 1453869 part 9. Stop creating DOMParser by contract in devtools. r=tromey
There are some extra hoops here because devtools has a lint to prevent Cu.importGlobalProperties, which is the normal way one would import a WebIDL constructor.

MozReview-Commit-ID: 2mdNI6N1z5B
2018-04-20 23:04:40 -04:00
Dorel Luca 65669dae30 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-21 02:00:04 +03:00
Boris Zbarsky 45a3faf8f6 Bug 1455052 part 12. Remove JS uses of nsIDOMEvent. r=masayuki,kmag
MozReview-Commit-ID: 5g0H3rzxTXt
2018-04-20 12:55:31 -04:00
Xidorn Quan def50aae9b Bug 1448757 part 2 - Move longhand animation type table into devtools. r=daisuke
After switching to Stylo, animation is handled by Servo, and thus it no
longer relies on the animation type recorded in nsCSSPropList.h, and
devtools become the only consumer of that information.

This patch puts a map of longhands to animation types into devtools
instead. The map is extracted from nsCSSPropList.h by the script below
based on the logic of nsDOMWindowUtils::GetAnimationTypeForLonghand.

There are two reasons that I don't port this into Servo:

First, Servo doesn't have a concept of property-level animation type.
Animation change in Servo is directly encoded into value types. It means
porting this to Servo would require creating a new concept purely for
devtools. It's not great because that data doesn't reflect how animation
is handled in the engine, and people may keep forgetting to give proper
animation type to new animatable types they add.

Second, the handling of animation type in devtools also looks rather
arbitrary to me. For example, eStyleAnimType_Corner_* types are actually
two coordinate values, bug GetAnimationTypeForLonghand returns "coord"
for them, and devtools just parses the first value and uses it. This
means the animation type here is really more closely related to how
devtools handles the value, rather than how the style engine does so.

Given above, I decided to put the list into devtools rather than encode
the information into Servo code. To encourage people to think about
animation handling in devtools for new properties, there is also a new
test added to ensure every property has a devtools animation type.

The content of ANIMATION_TYPE_FOR_LONGHANDS is generated via running
the following script in layout/style:

```python
#!/usr/bin/env python3

import subprocess
from collections import defaultdict

ANIMTYPE_MAPPING = {
    "Custom": "custom",
    "Coord": "coord",
    "Sides_Top": "coord",
    "Sides_Right": "coord",
    "Sides_Bottom": "coord",
    "Sides_Left": "coord",
    "Corner_TopLeft": "coord",
    "Corner_TopRight": "coord",
    "Corner_BottomRight": "coord",
    "Corner_BottomLeft": "coord",
    "nscoord": "length",
    "float": "float",
    "Color": "color",
    "ComplexColor": "color",
    "PaintServer": "paintServer",
    "Shadow": "shadow",
    "Discrete": "discrete",
    "None": "none",
}

input = b"""
#define CSS_PROP(name, id, method, flags, pref, \\
                 variant, kwtable, animtype) name, flags, animtype
#include "nsCSSPropList.h"
"""
props = subprocess.check_output(["clang", "-E", "-P", "-"], input=input)
props = props.decode("ascii")
result = defaultdict(list)
for line in props.splitlines():
    line = line.strip()
    if not line:
        continue
    name, flags, animtype = line.split(", ")
    assert animtype.startswith("eStyleAnimType_")
    if "CSS_PROPERTY_PARSE_INACCESSIBLE" in flags:
        continue
    animtype = ANIMTYPE_MAPPING[animtype[15:]]
    result[animtype].append(name)
print("[")
for animtype, names in result.items():
    print('  ["{}", new Set(['.format(animtype))
    for name in names:
        print('    "{}",'.format(name))
    print("  ])],")
print("]")
```

MozReview-Commit-ID: BGiGq0jUgG5

--HG--
extra : rebase_source : 54fc15b9ccdb6c11d06160d63b8f4b911b754d5a
2018-04-20 14:06:47 +10:00
Mike Ratcliffe 38773abdb6 Bug 1451991 - Devtools: Localstorage didn't list item whose key names "key" r=nchevobbe
MozReview-Commit-ID: 3AQC47GKud0

--HG--
extra : rebase_source : 0bbcebab0aeb97b51f078673d151eab263080c62
2018-04-14 00:33:42 +01:00
Bogdan Tara 9bf1554768 Merge inbound to mozilla-central. a=merge 2018-04-19 01:36:28 +03:00
Razvan Caliman 1a12edd85d Bug 1450650 - Clamp x/y values to current viewport when dragging a marker in the shape editor. r=gl
- Compute constraints so that a dragged marker stays visible with the viewport.
- Constrain dragging of marker to the viewport of the node's host window.
- If the marker is visible outside of the node host's viewport (ex:
shapes within a smaller iframe nested in a larger document), do not
constrain that marker and allow dragging it outside the viewport.
If dragging starts while the marker is within its intended viewport,
do constrain it to that viewport.

MozReview-Commit-ID: 9JyEfseSLXW
2018-04-18 15:00:48 -04:00
Nicolas Chevobbe 9e1fe9b067 Bug 1451021 - Migrate PropertyIteratorActor to protocol.js; r=ochameau.
MozReview-Commit-ID: 1yTtcO92HWU

--HG--
extra : rebase_source : 0822c4d3033ab3cd97f7b4793f77565ea17f9706
2018-04-10 09:44:38 +02:00
Dorel Luca 0eedeeda32 Merge mozilla-central to autoland. CLOSED TREE 2018-04-18 14:07:45 +03:00
Boris Zbarsky 0ac1ce2e6b Bug 1452183 part 2. Stop using nsIDOMDocumentFragment in JS. r=mccr8 2018-04-17 21:13:03 -04:00
Razvan Caliman 83db553688 Bug 1453428 - Handle cases for shape coordinates like 0%, 0em, 0rem, etc. without overwriting to pixels. r=gl
The previous implementation treated any zero coordinate as pixels,
regardless of its unit type. For example, 0% would be converted to 0px.
This changed the shape value resulting in unintentional unit mismatch
after editing a coordinate which started off as 0% or 0em or 0vh, etc.

This patch fixes that and preserves the unit type for zero coordinates.

It changes the implementation of isUnitless() to return false for values
like 0%, 0px, 0em, 0.00000%, etc.

It introduces getUnitToPixelRatio() to get the ratio by which to
multiply a pixel value to convert it to the given unit during shape
editing operations (point move, scale, translate, rotate, etc.)

The ratio is constant by unit type. Previously, this ratio was
calculated in-place for each unit value. Values which started as zero,
always resulted in a ratio equal to zero. This multiplied with a pixel
value resulted zero. So the previous code defaulted to ratio of 1 when
the ratio was zero, but this meant that a 1:1 ratio between pixels and
another unit type (%, em, vh) would result in disproportionate
shape changes (1px of mouse travel would result in 1em). This is why
isUnitless() originally discarded the original unit from a zero
coordinate and replaced it with pixels; to account for this fallback
ratio of 1.

MozReview-Commit-ID: 49tyLfYjkLO
2018-04-11 22:21:18 +02:00
Brindusan Cristian 5713548340 Backed out changeset 3ab522801015 (bug 1450650) for mochitest devtools failures on browser_inspector_highlighter-cssshape_iframe_01.js. 2018-04-17 19:26:52 +03:00
Brindusan Cristian e9e395bdcd Backed out changeset 3f95bbb60e43 (bug 1453428) for mochitest devtools failures on browser_inspector_highlighter-cssshape_iframe_01.js. CLOSED TREE 2018-04-17 19:16:33 +03:00
Razvan Caliman 5b7a392924 Bug 1453428 - Handle cases for shape coordinates like 0%, 0em, 0rem, etc. without overwriting to pixels. r=gl
The previous implementation treated any zero coordinate as pixels,
regardless of its unit type. For example, 0% would be converted to 0px.
This changed the shape value resulting in unintentional unit mismatch
after editing a coordinate which started off as 0% or 0em or 0vh, etc.

This patch fixes that and preserves the unit type for zero coordinates.

It changes the implementation of isUnitless() to return false for values
like 0%, 0px, 0em, 0.00000%, etc.

It introduces getUnitToPixelRatio() to get the ratio by which to
multiply a pixel value to convert it to the given unit during shape
editing operations (point move, scale, translate, rotate, etc.)

The ratio is constant by unit type. Previously, this ratio was
calculated in-place for each unit value. Values which started as zero,
always resulted in a ratio equal to zero. This multiplied with a pixel
value resulted zero. So the previous code defaulted to ratio of 1 when
the ratio was zero, but this meant that a 1:1 ratio between pixels and
another unit type (%, em, vh) would result in disproportionate
shape changes (1px of mouse travel would result in 1em). This is why
isUnitless() originally discarded the original unit from a zero
coordinate and replaced it with pixels; to account for this fallback
ratio of 1.

MozReview-Commit-ID: 49tyLfYjkLO
2018-04-11 22:21:18 +02:00
Razvan Caliman 9e3c9c22b0 Bug 1450650 - Clamp x/y values to current viewport when dragging a marker in the shape editor. r=gl
MozReview-Commit-ID: 9JyEfseSLXW
2018-04-13 16:13:37 +02:00
Greg Tatum 6203137cd8 Bug 1455017 - Document the preferences actor; r=jryans
MozReview-Commit-ID: 9wCanCMltHX

--HG--
extra : rebase_source : bce06d0d314ea083f4a350472513df88bb50d342
2018-04-18 11:32:17 -05:00
Alexandre Poirot 7abf7f83b4 Bug 1454373 - Switch protocol.js to native promises. r=jryans
MozReview-Commit-ID: ALifNayHJJG

--HG--
extra : rebase_source : 4f1a2ee628785850e1b4ca406d5f4c10d3ce6262
2018-04-13 14:34:12 -07:00
Gabriel Luong 97a9950699 Bug 1433897 - Implement hasMoved method in the flexbox highlighter to update the highlighter on changes. r=pbro 2018-04-23 09:21:36 -04:00
Emilio Cobos Álvarez 3f89f10942 Bug 1452143: Reparse doc sheets after enabling error reporting on a docshell. r=jryans
While at it, remove useless charset rule lookups, since charset rules aren't
part of the OM, and have no effect at all anymore.

MozReview-Commit-ID: EefGrOZvmm7
2018-04-17 11:24:32 +02:00
Emilio Cobos Álvarez df09059366 Bug 1452143: Hook the filters and enable error reporting on demand. r=nchevobbe
MozReview-Commit-ID: BDFmxWjbDgj
2018-04-17 11:24:23 +02:00
Alexandre Poirot 0594f50321 Bug 1453385 - Fix actors using something else than RetVal in response's spec. r=jryans
MozReview-Commit-ID: 2fRciZoqQSY

--HG--
extra : rebase_source : 77de1f39294b78816d62de60f948a3b2e0660482
2018-04-13 02:56:46 -07:00
Alexandre Poirot 24603597f9 Bug 1453385 - Fix actors trying to transfer functions or xpcom objects. r=jryans
MozReview-Commit-ID: 74l85ePCcrY

--HG--
extra : rebase_source : 5af0d60d6fe436a0b0039e0f0b017f8a39b8b5f9
2018-04-12 14:45:10 -07:00
Alexandre Poirot 4de1d0706d Bug 1453385 - Fix typo to prevent passing Infinity to protocol.js. r=jryans
`Infinity` object can't be serialized via structuredclone and so actors
should not communicate such object. Fix this code which meant to prevent that.

MozReview-Commit-ID: 3TpldcSE88F

--HG--
extra : rebase_source : 6116f0b8c32e582de21af37da8fb6b72191252a2
2018-04-11 09:08:19 -07:00
Alexandre Poirot f9fdb6f696 Bug 1453385 - Remove NodeActor custom form attributes. r=Honza
This feature introduced in bug 1036949 is not longer used as it was designed for XUL add-ons.
The setFormProperty method was prevently Node's form from getting correctly
serialized between processes.

MozReview-Commit-ID: AiNnHSkwsEM

--HG--
extra : rebase_source : cf12f05f1de49a37a5d8ff694ef448f452f55a06
2018-04-11 08:54:27 -07:00
Brian Grinstead ec705d56f7 Bug 1448936 - Remove unused server side logging code;r=jryans
MozReview-Commit-ID: 3X14cDdj0qp

--HG--
extra : rebase_source : 552132acda4af79dd32aefdd14ff6504632fda71
2018-04-13 11:36:13 -07:00
Emilio Cobos Álvarez 9509cd7e32 Bug 1453789: Remove Element.createShadowRoot. r=smaug
MozReview-Commit-ID: Hgxbp1Icgvh
2018-04-13 20:51:55 +02:00
Markus Stange de5088e49a Bug 1444430 - Add a profiler feature called "screenshots". r=njn
MozReview-Commit-ID: 8blNvvliuog

--HG--
extra : rebase_source : 5465eb074f3988f9f3de9e00e1c42ce7897112c9
2018-04-12 15:21:40 -04:00
arthur.iakab fca4426325 Merge inbound to mozilla-central. a=merge 2018-04-13 19:01:59 +03:00
Jason Laster 59d573af8c Bug 1450323 - Debugger: Update Pause Points (v37). r=jimb
MozReview-Commit-ID: ISKSyng6noM
2018-04-13 08:46:54 -04:00
Alexandre Poirot 9b2fdcf8bb Bug 1453712 - Use a preference to set the testing flag. r=jryans
MozReview-Commit-ID: 1cjSQnXtc4h

--HG--
extra : rebase_source : 55c0c9fa81a8dc17b92cba721dcc5912b07d0fab
2018-04-12 09:22:42 -07:00
Erica Wright 5a58c5d8bf Bug 1431071 - Grid line names suggestions offered in inspector autocomplete if element is in a grid and rule applies. r=gl, jdescottes
MozReview-Commit-ID: HGINxducS4x
2018-04-04 14:01:19 -04:00
Boris Zbarsky 72db616bb9 Bug 1453053 part 3. Remove JS QIs to nsIMessageSender. r=qdot
MozReview-Commit-ID: 4TS38gebl7l
2018-04-12 00:06:25 -04:00
Nicolas Chevobbe 4c83c733c3 Bug 1451025 - Convert SymbolIteratorActor to protocol.js; r=ochameau.
MozReview-Commit-ID: E9xjaaV50mt

--HG--
extra : rebase_source : 52f34bcc9a9c54669c9b41494bf566915607fab9
2018-04-05 16:49:30 +02:00
Martin Balfanz 5e5059eb5c Bug 1449528 - Don't rotate grid line number markers when close to the viewport edge. r=gl 2018-03-28 19:59:07 +02:00
Nika Layzell b286bc10d9 Bug 1443379 - Stop pretending cacheKey can be anything other than uint32_t, r=smaug 2018-04-10 17:49:46 -04:00
Gurzau Raul 6bfadf95b4 Merge inbound to mozilla-central. a=merge 2018-04-10 19:54:34 +03:00
Razvan Caliman db34548a67 Bug 1435373 - Shapes editor: implementation to map shape value changes to rule. r=pbro
MozReview-Commit-ID: i20YChYAxd

--HG--
extra : histedit_source : a216ae1ff4cac1609d60465476f157876fcc526f
2018-04-10 13:59:00 +02:00
Razvan Caliman 7deb320c23 Bug 1435373 - Minor refactor for shape output string guarding against empty this.geometryBox. Round values in getDistance() util function to avoid verbose precision.r=gl
MozReview-Commit-ID: IBB4mkvAu6h

--HG--
extra : histedit_source : 13e21379bc3638c37810d62ed89287d462ac943c
2018-04-10 13:58:48 +02:00
Jason Laster 1c77b34e03 Bug 1450974 - Refactor the thread actor's stepping hooks. r=jimb
MozReview-Commit-ID: 7ST4wPnYHJR
2018-04-09 11:55:58 -04:00
Yura Zenevich 3ea27d2560 Bug 1428441 - adding 'Show Accessibility Properties' context menu item for inspector markup view nodes. r=pbro
MozReview-Commit-ID: EEE6VaCgIza
2018-04-09 10:50:26 -04:00
Shuoyi Ma 5fa2cdb9cb Bug 1432035 - Visualize the align-items in the flexbox highlighter. r=gl 2018-04-07 03:25:16 -04:00
Boris Zbarsky 9b3d37b936 Bug 1452010 part 1. Remove uses of nsIDOMDOMException. r=qdot
MozReview-Commit-ID: K5zUjh25WJG
2018-04-06 23:27:56 -04:00
Nicolas B. Pierron 56eef529a8 Bug 1451456 - Index documentation of JSMSG_EMPTY_ARRAY_REDUCE. r=fscholz 2018-04-05 11:53:02 +00:00
Noemi Erli ff466e94c1 Merge inbound to mozilla-central. a=merge 2018-04-05 13:02:11 +03:00
Patrick Brosset e9b33924a6 Bug 1351081 - Always retrieve quads relatively to the top window, correctly; r=gl
Use the getBoxQuads's relativeTo option to avoid having to calculate the offset
due to frames.

Also reduce the precision of numbers used when checking if the highlighter is
correctly displayed.

Finally, for some strange reasons, this patch seems to cause a totally unrelated
events mutation event to be sent during the test. This polutes the mutations
received and made the test fail. So I filtered the list of mutations to only
preserve the ones we care about here.
I could not reproduce this extra mutation when running Firefox. Only during the
test. So I did not investigate further.

MozReview-Commit-ID: 1ZQ6FGULjHG

--HG--
extra : rebase_source : 6406571849afb1d3dcec176f68ef4d3d122a1abf
2018-03-30 11:24:45 +02:00
Narcis Beleuzu 58b4822076 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-05 01:09:42 +03:00
Julian Descottes 547614b6c5 Bug 1451037 - check if shadow host has children when fetching before/after pseudos;r=bgrins
MozReview-Commit-ID: KG6cRlLQiE1

--HG--
extra : rebase_source : 1b4a9d3da2f118f74c42db40b62c75e7aa04d0c8
2018-04-04 11:59:19 +02:00
Jason Laster 811f83e65e Bug 1448431 - Don't pause on console expression exceptions. r=jimb
MozReview-Commit-ID: JrQjvtBy3LP
2018-04-04 15:03:35 -04:00
Razvan Caliman fd2272eb89 Bug 1411664 - Check if property name is invalid in rule view and change warning icon title text accordingly. r=pbro
MozReview-Commit-ID: L64Ow4cLAg8

--HG--
extra : rebase_source : d21dd8c2fbd9d4c1fbae1222f8cac91efacd749a
2018-04-04 15:26:44 +02:00
Mark Banner 57f0cf24f4 Bug 1451378 - Enable ESLint rule no-undef for more test files in devtools. r=jdescottes
MozReview-Commit-ID: 6q43u1m0hLI

--HG--
extra : rebase_source : 02bf20a95994ac2fb13e3a69e3d504564fcc279d
2018-04-04 16:56:30 +01:00
Nicolas Chevobbe c2c2ef50c5 Bug 1449188 - Split devtools/server/actors/object.js in smaller files; r=ochameau.
We create one file per actor, and move the ones that are only used by the ObjectActor
into an object folder.
We also take this as an opportunity to extract utils function used in at least 2
different files into an object/utils.js file.
Furthermore, we extract stringifiers and previewers in their own files for readibility
sake, and rename DebuggerServer.ObjectActorPreviewers to previewers only, as
we don't make any use of putting those into DebuggerServer.

MozReview-Commit-ID: L9ajKrzkC4k

--HG--
rename : devtools/server/actors/object.js => devtools/server/actors/array-buffer.js
rename : devtools/server/actors/object.js => devtools/server/actors/object/long-string.js
rename : devtools/server/actors/object.js => devtools/server/actors/object/previewers.js
rename : devtools/server/actors/object.js => devtools/server/actors/object/property-iterator.js
rename : devtools/server/actors/object.js => devtools/server/actors/object/stringifiers.js
rename : devtools/server/actors/object.js => devtools/server/actors/object/symbol-iterator.js
rename : devtools/server/actors/object.js => devtools/server/actors/object/symbol.js
rename : devtools/server/actors/object.js => devtools/server/actors/object/utils.js
extra : rebase_source : ae332d0a85d9d8bcc306d399fffbd0ec643db49c
2018-03-28 08:24:41 +02:00
Oriol Brufau dc2389178e Bug 1450541 - Show values of non-enumerable symbol properties in object inspector r=nchevobbe
MozReview-Commit-ID: Ai6q61YVzMk

--HG--
extra : rebase_source : 25b23bfd14ac717309f62cfb1548763ca3bf8aaf
2018-04-01 15:23:15 +02:00
Nicolas Chevobbe 11860028e9 Bug 1450193 - Remove old-event-emitter usage from devtools/shared/client; r=jryans.
MozReview-Commit-ID: 42hBgG1IU2B

--HG--
extra : rebase_source : 809665d1f829e81d0e666b96f67aaac0ef720fdd
2018-03-30 08:49:22 +02:00
Ciure Andrei 5d841a3421 Merge inbound to mozilla-central. a=merge 2018-03-30 01:06:18 +03:00
Makoto Kato 15eece8a65 Bug 1444796 - Part 3. Add test for parameters of startProfiler. r=gregtatum
MozReview-Commit-ID: B2NucdBOXxb

--HG--
extra : rebase_source : a9a1c57631be68b02d63d977a60fbcfac5941688
2018-03-14 15:05:54 +09:00
Makoto Kato 344ae3712c Bug 1444796 - Part 1. Add options to startProfiler to customize profiler parameter from remote. r=gregtatum
New remote profiler protocol uses perfActor, but startProfiler doesn't support
parameters such as interval, So perfActor should support parameters for
startProfiler.

nsIProfiler emit profiler-started event with parameters, but perfActor doesn't
set the parameter yet.  For unit test, we should set parameter on
profiler-started event.

MozReview-Commit-ID: 3QiNunLyhnf

--HG--
extra : rebase_source : 836f67d2f161816c9947a47a18f912dad77728bf
2018-03-14 15:05:48 +09:00
J. Ryan Stinnett 7fef001d2a Bug 1449610 - Remove event loop lag in DevTools. r=ochameau
Bug 962511 added event loop lag info in DevTools for use via a "jank watcher"
tool on Firefox OS devices.

With the removal of Firefox OS, this is now dead code that can be removed.

MozReview-Commit-ID: IHRozqCviuQ

--HG--
extra : rebase_source : 0429ae3655c30ccf79950cd33153ee0a9223c69c
2018-03-28 11:19:22 -05:00
Cosmin Sabou b25da47eb2 Merge inbound to mozilla-central. a=merge 2018-03-28 12:49:56 +03:00