Commit Graph
259 Commits
Author SHA1 Message Date
Tom Schuster 9ce1f3c399 Bug 1440468 - Fix devtools test for new Function.prototype.toString behavior. r=yulia 2018-09-03 23:47:56 +02:00
Alexandre Poirot 453be37998 Bug 1222047 - Manage device and preference fronts via client.mainRoot.getFront. r=yulia
Summary: Depends On D3317

Tags: #secure-revision

Bug #: 1222047

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

MozReview-Commit-ID: 3jaFZbXVLuw
2018-08-23 03:51:40 -07:00
Alexandre Poirot 4d53b168e2 Bug 1478945 - Test global actors against xpcshell debugger server. r=jdescottes
MozReview-Commit-ID: DqCkWqZJErQ
2018-07-31 10:08:51 -07:00
Alexandre Poirot 20cb44cc31 Bug 1478945 - Refactor test_xpcshell_debugging.js to use async/await instead of callbacks. r=jdescottes
MozReview-Commit-ID: 3QmGlX70BVz
2018-07-31 08:46:07 -07:00
Noemi Erli b909d9b684 Backed out 2 changesets (bug 1473996) for failures in devtools/server/tests/unit/test_objectgrips-fn-apply.js on a CLOSED TREE
Backed out changeset dc601e6050f6 (bug 1473996)
Backed out changeset 9ba8a6f1857d (bug 1473996)
2018-07-18 09:33:40 +03:00
Logan F Smyth c9ad95a7ca Bug 1473996 - Expose fn.apply in the devtools server. r=nchevobbe
MozReview-Commit-ID: 33Uh8UIuz4g
2018-07-12 11:09:54 -07:00
Logan F Smyth 2bd4d52c09 Bug 1473996 - Expose getPropertyValue in devtools server to fully evaluate an object property. r=nchevobbe
MozReview-Commit-ID: IYIplkrqQ76
2018-07-12 11:08:38 -07:00
Alexandre Poirot 7431a299fd Bug 1474980 - Remove deprecated DebuggerServer.addActors(). r=jryans
MozReview-Commit-ID: 8J1wucp1G0p
2018-07-11 10:41:27 -07:00
yulia 1c7d8a1114 Bug 1473569 - fix faulty errors in formatCommand; r=nchevobbe
MozReview-Commit-ID: 9PeQySBxWyx
2018-07-06 18:03:50 +02:00
Alexandre Poirot dbb1325080 Bug 1473578 - Remove deprecated synchronous DebuggerServer.registerModule feature. r=jryans
MozReview-Commit-ID: DTAEJyfICNz
2018-07-05 07:13:52 -07:00
Mark Banner 85a63b896e Bug 1452706 - Fix the expected arguments to be RegExps in test_format_command.js. r=yulia
MozReview-Commit-ID: 24DtFcF9o2F
2018-07-05 14:36:54 +01:00
yulia cdf672c26a Bug 1464461 - implement unix style syntax for console commands; r=nchevobbe,ochameau
MozReview-Commit-ID: 8rQ9IQdsZkm
2018-06-05 17:27:07 +02:00
Cosmin Sabou 2d74169dce Backed out 4 changesets (bug 1464461) for Talos damp failures on webconsole/objectexpand.js. CLOSED TREE
Backed out changeset 001370fe21e3 (bug 1464461)
Backed out changeset 014fa1322e94 (bug 1464461)
Backed out changeset 50f7f633bb7d (bug 1464461)
Backed out changeset 6c9488ed5ebd (bug 1464461)
2018-07-03 15:28:03 +03:00
yulia ea9c1fabf1 Bug 1464461 - implement unix style syntax for console commands; r=nchevobbe,ochameau
MozReview-Commit-ID: 8rQ9IQdsZkm
2018-06-05 17:27:07 +02:00
Benjamin Bouvier 744ea10c20 Bug 1447591: Stub out a few Debugger APIs for wasm; r=yury 2018-06-20 17:56:19 +02:00
Coroiu Cristina e5554e1884 Backed out 2 changesets (bug 1447591) for mochitest failures at dom/base/test/test_postMessages.html
Backed out changeset 0800fdb509d2 (bug 1447591)
Backed out changeset 9b5347dee1f2 (bug 1447591)
2018-06-27 13:09:31 +03:00
Benjamin Bouvier 603a965df9 Bug 1447591: Stub out a few Debugger APIs for wasm; r=yury 2018-06-20 17:56:19 +02:00
J. Ryan Stinnett f489c5464f Bug 1465637 - Rename tab-scoped actors to target-scoped actors. r=ochameau
The term "tab actor" was used ambiguously to mean either the "target actor
representing a tab" or "a child actor of the tab target actor" (such as the
console actor).  Here we rename the second case to "target-scoped actor".

Differential Revision: https://phabricator.services.mozilla.com/D1760
2018-06-26 13:27:57 +00:00
arthur.iakab c92ab366d1 Backed out changeset 88960670cf9f (bug 1465637) for failing talos damp tests on server/protocol.js: Error: Can't manage front without an actor ID on a CLOSED TREE 2018-06-25 21:56:27 +03:00
J. Ryan Stinnett f1a1ed11e7 Bug 1465637 - Rename tab-scoped actors to target-scoped actors. r=ochameau
The term "tab actor" was used ambiguously to mean either the "target actor
representing a tab" or "a child actor of the tab target actor" (such as the
console actor).  Here we rename the second case to "target-scoped actor".

Differential Revision: https://phabricator.services.mozilla.com/D1760
2018-06-25 17:53:40 +00:00
Narcis Beleuzu a219e773ff Merge inbound to mozilla-central. a=merge 2018-06-14 00:52:57 +03:00
Joel Maher 4000f86db6 Bug 1405428 - skip-if = verify on xpcshell tests which do not pass test-verify. r=gbrown 2018-06-13 11:34:40 -04:00
Alexandre Poirot ee08ebcd6e Bug 1466691 - Replace callback style in favor of promise for TabClient methods. r=jryans
MozReview-Commit-ID: 6Is4O8KQhgY
2018-06-05 01:50:40 -07:00
Alexandre Poirot b7b7297b95 Bug 1466691 - Replace callback style in favor of promise for SourceClient methods. r=jryans
MozReview-Commit-ID: F78igLUlqn6
2018-06-05 01:09:43 -07:00
J. Ryan Stinnett 035161b7df Bug 1172897 - Rename BrowserAddonActor to AddonTargetActor. r=ochameau
MozReview-Commit-ID: 4iI6BQaleJS
2018-06-04 18:37:02 -05:00
J. Ryan Stinnett 3b10cc3277 Bug 1172897 - Move DevTools addon modules to subdir. r=ochameau
MozReview-Commit-ID: D61WJnoYQe3
2018-06-04 18:12:11 -05:00
J. Ryan Stinnett 8ac68bca20 Bug 1172897 - Rename ChildProcessActor to ContentProcessTargetActor. r=ochameau
MozReview-Commit-ID: 60kELwh0N3f
2018-06-04 17:30:06 -05:00
J. Ryan Stinnett d609a92077 Bug 1172897 - Rename ChromeActor to ParentProcessTargetActor. r=ochameau
MozReview-Commit-ID: JM17h5ArYub
2018-06-01 17:31:48 -05:00
J. Ryan Stinnett f77bb71a84 Bug 1172897 - Remove deprecated eager actor construction path. r=ochameau
MozReview-Commit-ID: ALnbhoh0Nzj
2018-05-30 19:19:11 -05:00
J. Ryan Stinnett c6fd8c950e Bug 1172897 - Rename TabActor to BrowsingContextTargetActor. r=ochameau
MozReview-Commit-ID: LPTEx2h4F1o
2018-05-25 18:20:28 -05:00
Julian Descottes 9456167901 Bug 1454696 - Fix leftover issues for prefer-const;r=yulia
MozReview-Commit-ID: JwOXoqw2mks
2018-06-01 12:19:35 +02:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Jason Laster 94e0f88809 Bug 1455750 - Provide method for server to skip pausing. r=jimb 2018-05-24 16:57:08 -04:00
Kris Maglione c03fa450d6 Bug 1460092: Add ESLint rule to enforce use of ChromeUtils.generateQI. r=Gijs
Also fixes existing code which fails the rule.

MozReview-Commit-ID: CkLFgsspGMU
2018-05-08 18:36:22 -07:00
Nicolas Chevobbe 21ad018bef Bug 1451018 - Convert SymbolActor to protocol.js; r=yulia.
MozReview-Commit-ID: AW2uxeN1tpM
2018-04-18 15:04:03 +02:00
Alexandre Poirot 231d0b4128 Bug 1454899 - Prevent request arguments duplication on each request call. r=jryans
MozReview-Commit-ID: GaLM6LsCoWp
2018-04-05 10:00:02 -07:00
Boris Zbarsky ca1e80f478 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 7bf351a923 Merge mozilla-central to autoland. CLOSED TREE 2018-04-18 14:07:45 +03:00
Razvan Caliman 2b33925395 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 1ce90e6ca3 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 f5d0de1cb9 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
Alexandre Poirot a686848de3 Bug 1454373 - Switch protocol.js to native promises. r=jryans
MozReview-Commit-ID: ALifNayHJJG
2018-04-13 14:34:12 -07:00
Narcis Beleuzu 38bda8fc73 Backed out 2 changesets (bug 1454373) for mochitest devtools failures on devtools/client/shadereditor/test/browser_se_*. CLOSED TREE
Backed out changeset 4ec712f0aa13 (bug 1454373)
Backed out changeset b2ada4fddfa0 (bug 1454373)
2018-04-17 17:30:28 +03:00
Alexandre Poirot e512183cab Bug 1454373 - Switch protocol.js to native promises. r=jryans
MozReview-Commit-ID: ALifNayHJJG
2018-04-13 14:34:12 -07:00
Alexandre Poirot cd8f8a21a3 Bug 1453385 - Fix actors using something else than RetVal in response's spec. r=jryans
MozReview-Commit-ID: 2fRciZoqQSY
2018-04-13 02:56:46 -07:00
Jason Laster cf5c8132dd Bug 1450323 - Debugger: Update Pause Points (v37). r=jimb
MozReview-Commit-ID: ISKSyng6noM
2018-04-13 08:46:54 -04:00
Jason Laster e467a3f892 Bug 1448431 - Don't pause on console expression exceptions. r=jimb
MozReview-Commit-ID: JrQjvtBy3LP
2018-04-04 15:03:35 -04:00
Nicolas Chevobbe 4ec461ccd5 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
2018-03-28 08:24:41 +02:00
Oriol Brufau 32f71c15c6 Bug 1450541 - Show values of non-enumerable symbol properties in object inspector r=nchevobbe
MozReview-Commit-ID: Ai6q61YVzMk
2018-04-01 15:23:15 +02:00
J. Ryan Stinnett d06758ac83 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
2018-03-28 11:19:22 -05:00