***
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
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
Add redux, a store, listen to events that can lead to a change in the workers
list to update the store.
MozReview-Commit-ID: Fo0jn7Cldep
--HG--
extra : rebase_source : 835294eb76b49ee696030ab6fa6ba45c4bcdedef
Extract all the logic that will be shared between about debugging and the application
panel to a dedicated client module.
MozReview-Commit-ID: Ccnmp3dCZpW
--HG--
extra : rebase_source : ec559b332cc5cc5b563a8d122acbe3d139b64b00
Basic icon to display something while we wait for a better icon to replace
it.
MozReview-Commit-ID: 2BT6jqLrd95
--HG--
extra : rebase_source : f51e5dff37694442becd83341fca03a94f5ccc15
This will allow long strings to be expanded.
Tests will be added per Bug 1403448.
MozReview-Commit-ID: CUUN6uWTMDF
--HG--
extra : rebase_source : 4f27d63213e25f5a559225e2875a5794040bd554
extra : source : ddcfd0eb2d9ea20ddec56c9d8f25c6c0c4ec12e2
Register a new application panel, disabled by default, with no icon, no shortcut
and hidden from the devtools options.
Set devtools.application.enabled to true to enable it.
MozReview-Commit-ID: L5PXZVDCRlF
--HG--
extra : rebase_source : 0ec04569b6050cfb1f7549aa042551879a22a842
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
Change disabledFocus to focusable as it changed in the ObjectInspector.
MozReview-Commit-ID: CDHotb0d4sL
--HG--
extra : rebase_source : 3390cf6aa1d79ef24f98b74cdece50cae36b937b
This patch will hide toolbar's close button if debug target is not local tab
like browser toolbox.
MozReview-Commit-ID: Guf6QhzkGIV
--HG--
extra : rebase_source : aa16b7cf2f540405f5bbd51584f6c8f747db27af
"async" methods defined in scripts loaded via a <script> tag seem
to indirectly use the document's Promise, which is not usable after
the DOM of the document has been destroyed.
This is an issue if we invoke this code during the destroy of the
toolbox.
MozReview-Commit-ID: C8juQqJlVDN
--HG--
extra : rebase_source : 1d30dd878721119064081dfa33881488f7600a4b
- 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
This patch removed the border and outline from focus style of tool tab and make
its style to be same as hover styles.
MozReview-Commit-ID: KD97vYiyUX2
--HG--
extra : rebase_source : 83fd2d5b743ac8488c711e98e316a39e9c8be30f
Some content in Makefile.in is removed because after this change, the
scripts no longer invoke the preprocessor and thus don't have unknown
dependencies anymore outside what is provided in their inputs array.
The order of exports.PREFERENCES in properties-db changes because the
data file has shorthands placed after longhands. The only usage of it
is in test_css-properties-db.js which doesn't care about the order.
MozReview-Commit-ID: AMjzTRf2HYN
--HG--
extra : rebase_source : 7976e48e7c7bba467d77a34ab0d7709cde1ecdf4