Commit Graph
11 Commits
Author SHA1 Message Date
Razvan Caliman 71aa5a2dcf Bug 1599728 - Create ChangesFront/Actor pair for each target in inspector. r=jdescottes
Request a ChangesFront for each target as soon as is becomes available.

The on-demand approach in D54725 is abandoned because it introduces a client-server round trip on _every_ CSS mutation operation due to the need to ensure the ChangesActor is instantiated. By awaiting `changesFront.setup()` on every mutation, needless slowdown is introduced after the actor becomes available. Furthermore, the approach in D54725 spreads the knowledge about the ChangesFront in too many places in the codebase, something that will only get worse over time as the ChangesActor gains capabilities to track CSS changes from other sources or supports tracking DOM changes.

Differential Revision: https://phabricator.services.mozilla.com/D55945
2019-12-12 15:50:44 +00:00
Gabriel Luong d0d27b984e Bug 1569023 - Expose a helper on protocol's Front class to help retrieve the parent front. r=ochameau,yulia
Differential Revision: https://phabricator.services.mozilla.com/D39610
2019-08-14 04:51:20 +00:00
Victor Porof 435f7b056d Bug 1561435 - Format remaining devtools/, a=automatic-formatting, CLOSED TREE
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35894
2019-07-05 11:29:32 +02:00
Alexandre Poirot bc54a2985c 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
2019-01-28 18:42:50 +00:00
Alexandre Poirot e5d8b0ff84 Bug 1515116 - Remove all useless destroy methods on Fronts. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D14914
2019-01-03 10:09:40 +00:00
Alexandre Poirot 62db72cbb3 Bug 1510949 - Make protocol.js support es6 classes for fronts. r=yulia
MozReview-Commit-ID: JegR2JsyNrI

Differential Revision: https://phabricator.services.mozilla.com/D13780
2018-12-11 16:32:41 +00:00
Brad Werth 96a32a4894 Bug 1468754 Part 1: Add a ChangesActor to devtools. r=pbro
MozReview-Commit-ID: 1Y8esljnLk9

Differential Revision: https://phabricator.services.mozilla.com/D4399
2018-10-22 19:17:45 +00:00
Dorel Luca 07b5accb27 Backed out 5 changesets (bug 1468754) for xpcshell and eslint failures. CLOSED TREE
Backed out changeset 67f969f5bdba (bug 1468754)
Backed out changeset 55ba74fa5c95 (bug 1468754)
Backed out changeset 0d44a0523525 (bug 1468754)
Backed out changeset da447a45603e (bug 1468754)
Backed out changeset 71f45c79522e (bug 1468754)
2018-10-22 22:00:49 +03:00
Brad Werth 9d49917ee9 Bug 1468754 Part 1: Add a ChangesActor to devtools. r=pbro
MozReview-Commit-ID: 1Y8esljnLk9

Differential Revision: https://phabricator.services.mozilla.com/D4399
2018-10-22 18:00:40 +00:00
Gurzau Raul 052bb9147e Backed out 5 changesets (bug 1468754) for linting failure at checkouts/gecko/devtools/server/actors/utils/actor-registry.js on a CLOSED TREE
Backed out changeset c36e8383aa3a (bug 1468754)
Backed out changeset c98ac7503111 (bug 1468754)
Backed out changeset ddd043a258e0 (bug 1468754)
Backed out changeset e6ff3400a4f6 (bug 1468754)
Backed out changeset 817018fb5aa4 (bug 1468754)
2018-10-22 20:02:13 +03:00
Brad Werth fa0e150891 Bug 1468754 Part 1: Add a ChangesActor to devtools. r=pbro
MozReview-Commit-ID: 1Y8esljnLk9

Differential Revision: https://phabricator.services.mozilla.com/D4399
2018-10-22 16:31:52 +00:00