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

324 Коммитов

Автор SHA1 Сообщение Дата
Christoph Kerschbaumer 64005a8818 Bug 1524970: Update more frontend code to explicitly pass a csp. r=Gijs,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D24959

--HG--
extra : moz-landing-system : lando
2019-03-27 16:38:01 +00:00
Julian Descottes ef7c431b40 Bug 1531704 - Remove isClosed flag from WorkerTargetFront r=ochameau
Depends on D21673

The test is already relying on events triggered by the destroy method of the front to progress
I don't think having a flag brings anything here.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 07:54:03 +00:00
Julian Descottes d9c03fac20 Bug 1531704 - Stop calling WorkerTargetFront::destroy() from detach() r=ochameau
Try at https://treeherder.mozilla.org/#/jobs?repo=try&revision=02f79fac79a313124cfe6368812e84d823fab685

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

--HG--
extra : moz-landing-system : lando
2019-03-21 07:52:15 +00:00
Patrick Brosset dff1494aa0 Bug 1536834 - Remove leftover csscoverage code; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D24191

--HG--
extra : moz-landing-system : lando
2019-03-20 16:06:59 +00:00
Emilio Cobos Álvarez 09763b1ac3 Bug 1533201 - Make cssPropertySupportsType take an enum. r=heycam,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D22427

--HG--
extra : moz-landing-system : lando
2019-03-18 16:38:48 +00:00
yulia d8f0e4a4eb Bug 1528296 - remove unused function call r=vporof
Differential Revision: https://phabricator.services.mozilla.com/D22497

--HG--
extra : moz-landing-system : lando
2019-03-13 16:52:10 +00:00
yulia 824ce51c8e Bug 1403944 - Remove Web Audio Editor front and panel; r=vporof
Differential Revision: https://phabricator.services.mozilla.com/D19527

--HG--
extra : moz-landing-system : lando
2019-03-13 16:48:42 +00:00
yulia 12c5ac3425 Bug 1342237 - remove Shader Editor Actor and Front; r=vporof
Depends on D14732

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

--HG--
extra : moz-landing-system : lando
2019-03-13 16:47:48 +00:00
yulia 83e3a56687 Bug 1403938 - remove Canvas Debugger actor from the server; r=vporof
Depends on D14730

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

--HG--
extra : moz-landing-system : lando
2019-03-13 16:46:42 +00:00
Ciure Andrei 9f4ebc07f7 Backed out 13 changesets (bug 1342237, bug 1403944, bug 1403938, bug 1528296) for subsuite gpu failures CLOSED TREE
Backed out changeset eee6b5f77d67 (bug 1528296)
Backed out changeset 285c56c29146 (bug 1528296)
Backed out changeset 47fff0f9b424 (bug 1528296)
Backed out changeset cebff9f6f811 (bug 1528296)
Backed out changeset 78be67cfabe8 (bug 1528296)
Backed out changeset 3e055733ee57 (bug 1528296)
Backed out changeset 2d321819c273 (bug 1528296)
Backed out changeset c8fcdc7c2e0b (bug 1403944)
Backed out changeset f1003c2742c2 (bug 1403944)
Backed out changeset 06a583daf142 (bug 1342237)
Backed out changeset f75b89bf0aa4 (bug 1342237)
Backed out changeset 90579bc6554c (bug 1403938)
Backed out changeset 488d49d434f8 (bug 1403938)
2019-03-12 18:57:01 +02:00
Razvan Caliman 4626e42237 Bug 1534567 - Ensure inherited CSS variables are case sensitive; r=pbro
Bug 1512634 introduced a case-insensitive check for CSS properties. This caused a regression whereby inherited CSS variables with mixed case were incorrectly unmatched when shown in the Rules view.

To fix this, we do a strict check for CSS variables in CSSProperties front because they are case sensitive (--color and --COLOR are different CSS variables).
See: https://www.w3.org/TR/css-variables-1/
> Unlike other CSS properties, custom property names are case-sensitive.

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

--HG--
extra : moz-landing-system : lando
2019-03-12 13:45:00 +00:00
yulia 1ce2d19ed1 Bug 1528296 - remove unused function call r=vporof
Differential Revision: https://phabricator.services.mozilla.com/D22497

--HG--
extra : moz-landing-system : lando
2019-03-12 15:00:29 +00:00
yulia f3cd627b57 Bug 1403944 - Remove Web Audio Editor front and panel; r=vporof
Differential Revision: https://phabricator.services.mozilla.com/D19527

--HG--
extra : moz-landing-system : lando
2019-03-12 14:50:18 +00:00
yulia ade28a1f24 Bug 1342237 - remove Shader Editor Actor and Front; r=vporof
Depends on D14732

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

--HG--
extra : moz-landing-system : lando
2019-03-12 14:49:53 +00:00
yulia 0d4cd33f2f Bug 1403938 - remove Canvas Debugger actor from the server; r=vporof
Depends on D14730

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

--HG--
extra : moz-landing-system : lando
2019-03-12 14:47:07 +00:00
Razvan Caliman 294be58640 Bug 1530972 - Remove obsolete modifySelctor2 method from StyleRule actor, front and spec. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D21342

--HG--
extra : moz-landing-system : lando
2019-02-27 15:33:33 +00:00
Razvan Caliman 38e6367521 Bug 1512956 - Ensure empty string is considered valid CSS authoredText; r=pbro
When removing all declarations from a rule via the Rule view, the authoredText value ends up as an empty string.
This patch ensures that the fallback cssText is not used in that case because that accidentally restores the whole declaration block when re-parsing the text of the rule.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 09:49:41 +00:00
Razvan Maries 5b3e1e60d4 Backed out changeset 070cb0982606 (bug 1512956) for xpcshell fails on test_parseDeclarations.js. CLOSED TREE 2019-02-24 15:06:59 +02:00
Razvan Caliman 535771205c Bug 1512956 - Ensure empty string is considered valid CSS authoredText; r=pbro
When removing all declarations from a rule via the Rule view, the authoredText value ends up as an empty string.
This patch ensures that the fallback cssText is not used in that case because that accidentally restores the whole declaration block when re-parsing the text of the rule.

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

--HG--
extra : moz-landing-system : lando
2019-02-24 10:28:14 +00:00
Alexandre Poirot 2ffe546245 Bug 1269919 - Stop emitting newSource on the target actors. r=jdescottes
Now that the base Target class is managing the thread client,
we no longer have to send "newSource" on the target actor, and instead,
listen for newSource directly on the thread client.
We should probably align updatedSource and have this event being emitted on
the thread actor as well.

Depends on D18813

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

--HG--
extra : moz-landing-system : lando
2019-02-21 18:41:08 +00:00
Alexandre Poirot 412b285031 Bug 1269919 - Unify all the attachThread methods on Target class. r=jdescottes
There is still some tight connection between ThreadClient and Target,
- Target.threadClient, which should ideally disappear in favor of
  target.getFront("thread")
- Target.threadClient is manually nullified from ThreadClient.detach,
  but that should disappear as well thanks to getFront.

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

--HG--
extra : moz-landing-system : lando
2019-02-21 15:05:49 +00:00
yulia eed3621d24 Bug 1485664 - guard webconsole destroy method from being called when there is no client; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D20152

--HG--
extra : moz-landing-system : lando
2019-02-20 10:28:23 +00:00
yulia e7f1f95776 Bug 1485664 - remove attachConsole from the debugger client; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D20150

--HG--
extra : moz-landing-system : lando
2019-02-20 10:27:50 +00:00
yulia 1c4e7ce305 Bug 1485664 - move webconsole client to front directory; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D18838

--HG--
rename : devtools/shared/webconsole/client.js => devtools/shared/fronts/webconsole.js
extra : moz-landing-system : lando
2019-02-19 16:00:45 +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
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
Gabriel Luong 00f9cbee19 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
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
Alexandre Poirot dddc73fb49 Bug 1465635 - Merge all target fronts with Target class. r=yulia,jdescottes
This patch makes it so that all target fronts inherits from a Target class mixin.
We are using a mixin as fronts should inherit from a custom Front class,
which is augmented with its own RDP request and events defined in its spec.
(This is done via FrontClassWithSpec(spec))

Depends on D15830

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

--HG--
extra : moz-landing-system : lando
2019-02-02 11:24:32 +00:00
Bogdan Tara 19bcfc41e1 Backed out 8 changesets (bug 1465635) for failures on browser_canvas-actor-test-10.js, browser_target_server_compartment.js CLOSED TREE
Backed out changeset e8e363f98525 (bug 1465635)
Backed out changeset 9ec017a91e78 (bug 1465635)
Backed out changeset 11413ebfbcaf (bug 1465635)
Backed out changeset 52728b761d5d (bug 1465635)
Backed out changeset 734646bf9829 (bug 1465635)
Backed out changeset d9ae7cd34c1a (bug 1465635)
Backed out changeset 00d325ab677a (bug 1465635)
Backed out changeset a9b181f32189 (bug 1465635)
2019-01-30 18:54:05 +02:00
Alexandre Poirot 0b98a1f393 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-01-30 13:28:29 +00:00
Alexandre Poirot ebfbdd02fa Bug 1465635 - Merge all target fronts with Target class. r=yulia,jdescottes
This patch makes it so that all target fronts inherits from a Target class mixin.
We are using a mixin as fronts should inherit from a custom Front class,
which is augmented with its own RDP request and events defined in its spec.
(This is done via FrontClassWithSpec(spec))

Depends on D15830

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

--HG--
extra : moz-landing-system : lando
2019-01-30 13:28:23 +00:00
Sebastian Hengst 725402f21f Merge mozilla-central to autoland. CLOSED TREE 2019-01-29 02:05:49 +02:00
Alexandre Poirot a0066e8731 Bug 1515862 - Remove Front's form argument. r=jdescottes
Now that form argument is no longer used by any front to set its actor ID,
we can remove this argument.

Have a particular look at:
* devtools/client/shared/test/test-actor-registry.js
which was the last Front to be manually instantiated and need some tweaks,
* canvas head.js to create canvas front via getFront,
* RDM manager.js, which requires the EmulationFront to be self managed.

Depends on D17615

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:42:52 +00:00
Alexandre Poirot 9a08694477 Bug 1515862 - Set global and target scope front IDs from getFront helper. r=jdescottes
Ideally, formAttributeName would be a field on the prototype of each front,
but unfortunately, Firefox doesn't support ES Class's fields yet. So it is
put as an instance attribute instead.

This patch streamline the manually set actorID and the retrieval of actor ID
from root or target front's form into `getFront` helper method.
So that all the specific related to the lazy actor is now inside of this helper.
It also moves the special "this.manage(this)" to this helper.
We might be able to followup on this one and finally have only the root front
being self managed. But the initialize method makes it hard.

Note the special tweak made to devtools/client/responsive.html/manager.js
Hopefully this can be removed once the target classes are merged.

Depends on D15832

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:42:50 +00:00
Alexandre Poirot 9db10d1d30 Bug 1515862 - Remove form passed as Front constructor. r=jdescottes
Only a couple of special cases where expecting to pass a full form object
as Front's second constructor argument.
Refactor them to ensure calling Front's form method instead in order to align
with typical protocol.js's behavior.

Depends on D17614

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:42:48 +00:00
Alexandre Poirot 4199139118 Bug 1515862 - Remove detail feature from protocol.js. r=jdescottes
This feature is only used by node and domrulestyle actors and that, only for actor ID.
Instead of this, support this "pass only actor ID rather than full form" feature
in a more dedicated way.

We might followup on that to clarify/simplify doing this: passing only the actor ID
rather than its full form.

Depends on D17613

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:42:46 +00:00
Alexandre Poirot d028804ade Bug 1515862 - Remove unecessary usages of actorid checks in actor and front's form method. r=jdescottes
Remove all actorid checks in actors and fronts as we never pass a defined `detail` argument in them.
Only domstylerule and node are using detail and that, always with detail="actorid".
Also remove ctx and detail in Front constructor as that's not used by these two actors.

Depends on D17612

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:42:39 +00:00
Gabriel Luong dc2738771b Bug 1523171 - Remove the authoredStyles trait. r=pbro 2019-01-28 09:25:39 -05:00
Patrick Brosset de44cc12fc Bug 1521776 - Add new scrollable markup badges; r=gl
Detect when nodes are scrollable on the actor side, and use this
information to display new [scrollable] markup-badges in the inspector.
Also track this dynimically so badges are added/removed when necessary.
Hide this behind a pref for now, until this gets tested by users and
validated.

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

--HG--
extra : moz-landing-system : lando
2019-01-23 14:07:47 +00:00
Alexandre Poirot 76f1d25301 Bug 1520772 - Construct the WebExtension target front before instantiating the Target object. r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D15829

--HG--
extra : moz-landing-system : lando
2019-01-21 11:04:31 +00:00
Julian Descottes cf82f78c6e Bug 1510654 - Extract service worker actors to dedicated files;r=ochameau,ladybenko
Depends on D15377

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

--HG--
rename : devtools/server/actors/worker/service-worker.js => devtools/server/actors/worker/push-subscription.js
rename : devtools/server/actors/worker/service-worker.js => devtools/server/actors/worker/service-worker-registration.js
rename : devtools/shared/fronts/worker/service-worker.js => devtools/shared/fronts/worker/push-subscription.js
rename : devtools/shared/fronts/worker/service-worker.js => devtools/shared/fronts/worker/service-worker-registration.js
rename : devtools/shared/specs/worker/service-worker.js => devtools/shared/specs/worker/push-subscription.js
rename : devtools/shared/specs/worker/service-worker.js => devtools/shared/specs/worker/service-worker-registration.js
extra : moz-landing-system : lando
2019-01-10 17:28:27 +00:00
Julian Descottes c468557cf4 Bug 1510654 - Return ServiceWorker fronts for installing, active and waiting workers;r=ochameau,ladybenko
Depends on D15376

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

--HG--
extra : moz-landing-system : lando
2019-01-10 17:26:48 +00:00
Julian Descottes 49deed3186 Bug 1510654 - Create fronts for ServiceWorkerRegistration, PushSubscription and ServiceWorker;r=ochameau,ladybenko
Depends on D15375

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

--HG--
extra : moz-landing-system : lando
2019-01-10 17:26:35 +00:00
Alexandre Poirot 10ba88604c Bug 1515116 - Let Front's constructor set the actorID instead of doing it manually. r=jdescottes
Depends on D14915

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

--HG--
extra : moz-landing-system : lando
2019-01-03 10:20:35 +00:00
Alexandre Poirot 2f8299a363 Bug 1515116 - Remove all useless constructor methods on Fronts. r=jdescottes
Depends on D14914

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

--HG--
extra : moz-landing-system : lando
2019-01-03 10:09:42 +00:00
Alexandre Poirot 460c16cd22 Bug 1515116 - Remove all useless destroy methods on Fronts. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D14914

--HG--
extra : moz-landing-system : lando
2019-01-03 10:09:40 +00:00
yulia 9acadd4e5b Bug 1508656 - migrate cancel picker to nodePicker; r=ochameau
Depends on D12126

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

--HG--
extra : moz-landing-system : lando
2018-12-18 08:45:16 +00:00
yulia 28023e75ca bug 1508656 - migrate node picking methods to NodePicker module, and use it through the inspector; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D12119

--HG--
extra : moz-landing-system : lando
2018-12-18 08:46:16 +00:00
Alexandre Poirot 21e7072949 Bug 1513565 - Convert the last manually instantiated fronts to target.getFront. r=yulia
Depends on D14279

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

--HG--
extra : moz-landing-system : lando
2018-12-18 23:35:59 +00:00