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

308 Коммитов

Автор SHA1 Сообщение Дата
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
yulia 0b73b92f31 Bug 1508660 - migrate getHighlighterByType to inspector front; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D12438

--HG--
extra : moz-landing-system : lando
2018-12-18 08:31:43 +00:00
Razvan Caliman 081ab9f961 Bug 1512634 - Ensure cssProperties validates in lowercase. r=pbro
[Bug 1512634](https://bugzilla.mozilla.org/show_bug.cgi?id=1512634) occurred because the Rule view marks CSS properties as overriden when they are not lowercase. This happens because `ElementStyle.markOverridden()` relies on computed properties. They get built using `CSSProperties.getSubproperties()`. If the input to that method is not lowercase, it doesn't match properties from the CSS database and returns an empty array. This has a side-effect of marking the property as overriden.

In this patch we allow users to type property names in any case, but we validate the lowercase version of them.

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

--HG--
extra : moz-landing-system : lando
2018-12-17 16:26:18 +00:00
Ciure Andrei 2540abfecb Backed out 14 changesets (bug 1508660, bug 1508656, bug 1504185) for browser_target_cached-front.js perma failures CLOSED TREE
Backed out changeset 08e5ae4312b3 (bug 1508660)
Backed out changeset 01b687bb0b75 (bug 1504185)
Backed out changeset 140374b098aa (bug 1504185)
Backed out changeset caafdc0ea4c7 (bug 1508656)
Backed out changeset 8b98b777aec2 (bug 1508656)
Backed out changeset f1905a2f9b6c (bug 1508656)
Backed out changeset 8b01632f9e3d (bug 1508656)
Backed out changeset eb4c893d451e (bug 1508656)
Backed out changeset 70db61618160 (bug 1508656)
Backed out changeset dff79b73c7fe (bug 1508660)
Backed out changeset b3518d5285be (bug 1508660)
Backed out changeset 94a957b9ba90 (bug 1508660)
Backed out changeset 773938f18269 (bug 1508660)
Backed out changeset 4eca8fce0a47 (bug 1508660)
2018-12-17 17:15:23 +02:00
yulia 0f2c847896 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-17 12:51:35 +00:00
yulia 9f95f0cc50 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-17 12:51:10 +00:00
yulia cb4645ae90 Bug 1508660 - migrate getHighlighterByType to inspector front; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D12438

--HG--
extra : moz-landing-system : lando
2018-12-17 12:07:03 +00:00
Alexandre Poirot 9d435e1006 Bug 1508285 - Refactor RootFront.listTabs to return BrowsingContextTargetFront instead of JSON form. r=yulia,jdescottes
MozReview-Commit-ID: 4CMHJ3tV7Rc

Depends on D14174

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

--HG--
extra : moz-landing-system : lando
2018-12-17 11:56:30 +00:00
Alexandre Poirot c3d53c83bb Bug 1508285 - Refactor RootFront.getTab to return BrowsingContextTargetFront instead of JSON form. r=yulia
MozReview-Commit-ID: 6TOInM5BmYe

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

--HG--
extra : moz-landing-system : lando
2018-12-17 11:56:26 +00:00
yulia cf6757c5e0 Bug 1495389 - refactor toolbox to no longer queue performance events; r=ochameau
Depends on D11293

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

--HG--
extra : moz-landing-system : lando
2018-12-17 11:26:49 +00:00
yulia b06f0e6f02 Bug 1495389 - add test for expected async behavior in the performance front; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D10562

--HG--
extra : moz-landing-system : lando
2018-12-17 11:54:53 +00:00
Logan Smyth b03057f1e8 Bug 1513655 - Remove source-map module and usage from the debugger server. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D14296

--HG--
extra : moz-landing-system : lando
2018-12-14 19:49:08 +00:00
Cosmin Sabou f292d9f90e Backed out changeset 4d61e1b695c9 (bug 1513655) for ESlint failure on devtools/server/actors/thread.js. CLOSED TREE 2018-12-14 21:37:34 +02:00
Logan Smyth 432ea8fcdc Bug 1513655 - Remove source-map module and usage from the debugger server. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D14296

--HG--
extra : moz-landing-system : lando
2018-12-14 19:09:15 +00:00
Alexandre Poirot 37fcc38aa4 Bug 1510949 - Make protocol.js support es6 classes for fronts. r=yulia
MozReview-Commit-ID: JegR2JsyNrI

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

--HG--
extra : moz-landing-system : lando
2018-12-11 16:32:41 +00:00
Alexandre Poirot a9fa13cfb7 Bug 1506546 - Use protocol.js to fetch WebExtension target actor. r=yulia
We were dipatching the "connect" request manually, whereas we should be using
protocol.js specifications. It also help getting rid of another use of "form"
instead of "front"/activeTab in Target class.

MozReview-Commit-ID: IOH4mDprAVL

Depends on D12577

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

--HG--
extra : moz-landing-system : lando
2018-11-27 19:16:51 +00:00
Alexandre Poirot fb70cfb9ed Bug 1506546 - Refactor about:debuggings. r=yulia,jdescottes
I did a dedicated patch for converting both about:debuggings as it is slightly more
complex as we have to tweak redux data, wrappers, mocks.
This patch also convert a manual "reload" request being done by about:debugging
and instead use protocol.js front to do it.
Also, I moved isLegacyTemporaryExtension to the front as it depends on accessing the form
and it should be better to keep form processing to the fronts, if possible.

MozReview-Commit-ID: 16qZkuCBp9b

Depends on D12576

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

--HG--
extra : moz-landing-system : lando
2018-11-27 19:17:11 +00:00