Closed
Bug 1265730
Opened 9 years ago
Closed 8 years ago
Decouple fronts from actors in style editor.
Categories
(DevTools :: Style Editor, enhancement, P1)
DevTools
Style Editor
Tracking
(firefox49 fixed, firefox50 fixed)
People
(Reporter: ejpbruel, Assigned: ejpbruel)
References
Details
Attachments
(4 files, 5 obsolete files)
(deleted),
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
fitzgen
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Updated•9 years ago
|
Severity: normal → enhancement
Whiteboard: [devtools-html]
Updated•9 years ago
|
Flags: qe-verify-
Priority: -- → P2
Assignee | ||
Comment 1•9 years ago
|
||
The style actors are used by the inspector actor, so the former will have to be decoupled before the latter.
Assignee: nobody → ejpbruel
Depends on: 1265722
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 2•9 years ago
|
||
I ran into some problems because the stylesheet actors are defined in the reverse order as their dependencies. This first patch changes the order in which the stylesheet actors are defined, so I can decouple the leaves of the dependency tree first.
Attachment #8746500 -
Flags: review?(jryans)
Assignee | ||
Comment 3•9 years ago
|
||
All of this is pretty much the same was what we did for the inspector and highlighter actors.
Attachment #8746501 -
Flags: review?(jryans)
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8746502 -
Flags: review?(jryans)
Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8746503 -
Flags: review?(jryans)
Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8746504 -
Flags: review?(jryans)
Updated•9 years ago
|
Status: NEW → ASSIGNED
Iteration: --- → 49.1 - May 9
Comment on attachment 8746500 [details] [diff] [review]
Change the order in which the stylesheet actors are defined.
Review of attachment 8746500 [details] [diff] [review]:
-----------------------------------------------------------------
Why is this order change needed? Is it because of `addActorType` rejecting redeclaration? If so, please see my previous comment in bug 1265722 comment 13. I think we could change `addActorType` to allow this case, making p.js less confusing to work with.
Attachment #8746500 -
Flags: review?(jryans)
Attachment #8746501 -
Flags: review?(jryans) → review+
Attachment #8746502 -
Flags: review?(jryans) → review+
Assignee | ||
Comment 8•9 years ago
|
||
I didn't realise that the style actors and the style editor actors are separate concepts, so I this bug is not actually a dependency for the inspector actors.
Updated•9 years ago
|
Iteration: 49.1 - May 9 → ---
Priority: P1 → P2
Comment on attachment 8746503 [details] [diff] [review]
Decouple StyleSheetFront from StyleSheetActor.
Review of attachment 8746503 [details] [diff] [review]:
-----------------------------------------------------------------
::: devtools/server/actors/stylesheets.js
@@ -868,5 @@
> - }.bind(this));
> - }
> -});
> -
> -exports.StyleSheetFront = StyleSheetFront;
Is it safe to remove the export already? I would think you need to keep it until users are updated?
Attachment #8746503 -
Flags: review?(jryans) → review-
Comment on attachment 8746503 [details] [diff] [review]
Decouple StyleSheetFront from StyleSheetActor.
Review of attachment 8746503 [details] [diff] [review]:
-----------------------------------------------------------------
::: devtools/server/actors/stylesheets.js
@@ -868,5 @@
> - }.bind(this));
> - }
> -});
> -
> -exports.StyleSheetFront = StyleSheetFront;
Ah, I see, it seems it wasn't used externally.
Attachment #8746503 -
Flags: review- → review+
Attachment #8746504 -
Flags: review?(jryans) → review+
See question in comment 7.
Flags: needinfo?(ejpbruel)
Assignee | ||
Comment 12•9 years ago
|
||
Comment on attachment 8746500 [details] [diff] [review]
Change the order in which the stylesheet actors are defined.
This bug should be for the style editor actors only. I've opened a separate bug (bug 1268461) for the stylesheet actors, and will move the patches I already attached to this bug there.
Attachment #8746500 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8746501 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8746502 -
Attachment is patch: false
Assignee | ||
Updated•9 years ago
|
Attachment #8746502 -
Attachment is obsolete: true
Attachment #8746502 -
Attachment is patch: true
Assignee | ||
Updated•9 years ago
|
Attachment #8746503 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8746504 -
Attachment is obsolete: true
Assignee | ||
Comment 13•9 years ago
|
||
I agree that we could probably refactor protocol.js to make addActorType not throw if the actor type is already defined. I am reluctant to do so, however, because sometimes redefining an actor really should be an error (for instance, when someone tries to create two different instances of ActorClass with the same typename). The problem, as I see it, is that protocol.js doesn't distinguish between 'declaring' an actor type, and 'defining' it, so addActorType is used for both.
I'd really like us to think about this a bit better. At the same time, I want us to focus on the minimal effort required to finish the front/actor separation, so if the problem can be fixed by reordering a few classes, I prefer that over making architectural changes to protocol.js at the moment. I'd be happy to open a followup bug for this if you'd like.
Flags: needinfo?(ejpbruel)
(In reply to Eddy Bruel [:ejpbruel] from comment #13)
> I agree that we could probably refactor protocol.js to make addActorType not
> throw if the actor type is already defined. I am reluctant to do so,
> however, because sometimes redefining an actor really should be an error
> (for instance, when someone tries to create two different instances of
> ActorClass with the same typename). The problem, as I see it, is that
> protocol.js doesn't distinguish between 'declaring' an actor type, and
> 'defining' it, so addActorType is used for both.
>
> I'd really like us to think about this a bit better. At the same time, I
> want us to focus on the minimal effort required to finish the front/actor
> separation, so if the problem can be fixed by reordering a few classes, I
> prefer that over making architectural changes to protocol.js at the moment.
> I'd be happy to open a followup bug for this if you'd like.
Yes, please at least file a follow up bug for it. We should have changed this in protocol.js long ago.
Flags: needinfo?(ejpbruel)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → ejpbruel
Updated•9 years ago
|
Status: NEW → ASSIGNED
Iteration: --- → 49.2 - May 23
Priority: P2 → P1
Assignee | ||
Comment 16•9 years ago
|
||
Attachment #8751763 -
Flags: review?(jryans)
Assignee | ||
Comment 17•9 years ago
|
||
Attachment #8751764 -
Flags: review?(jryans)
Assignee | ||
Comment 18•9 years ago
|
||
Attachment #8751765 -
Flags: review?(jryans)
Attachment #8751763 -
Flags: review?(jryans) → review+
Attachment #8751764 -
Flags: review?(jryans) → review+
Comment on attachment 8751765 [details] [diff] [review]
Decouple StyleEditorFront from StyleEditorActor.
Review of attachment 8751765 [details] [diff] [review]:
-----------------------------------------------------------------
Since you have removed the front exports here, should you also update the other usages of the front code? Maybe that's in a separate patch.
Attachment #8751765 -
Flags: review?(jryans) → review+
Updated•9 years ago
|
Assignee | ||
Comment 20•9 years ago
|
||
Try push for the patch to change the order in which the style editor actors are defined:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=fec58e650e87
Assignee | ||
Comment 22•9 years ago
|
||
Try push for the patch to decouple OldStyleSheetsFront from OldStyleSheetsActor:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=5e9e601b8055
Updated•9 years ago
|
Iteration: 49.2 - May 23 → 49.3 - Jun 6
Comment 23•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 25•9 years ago
|
||
Try push for the patch to decouple StyleEditorFront from StyleEditorActor:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=071396f9c94a
Comment 27•9 years ago
|
||
bugherder |
Updated•9 years ago
|
Status: REOPENED → ASSIGNED
Comment 28•8 years ago
|
||
Pushed by ejpbruel@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/b6ba2b9fbe8a
Decouple StyleEditorFront from StyleEditorActor;r=jryans
Comment 29•8 years ago
|
||
sorry had to back this out for test failures like https://treeherder.mozilla.org/logviewer.html#?job_id=9709475&repo=fx-team
Flags: needinfo?(ejpbruel)
Comment 30•8 years ago
|
||
Backout by cbook@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/486cf151cbef
Backed out changeset b6ba2b9fbe8a for bc7 failures in browser_parsable_script.js
Comment 31•8 years ago
|
||
Pushed by ejpbruel@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/0979bb255f40
Decouple StyleEditorFront from StyleEditorActor;r=jryans
Updated•8 years ago
|
Keywords: leave-open
Comment 32•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago → 8 years ago
Resolution: --- → FIXED
Comment 33•8 years ago
|
||
bugherder |
Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(ejpbruel)
Assignee | ||
Comment 34•8 years ago
|
||
As it turns out, we *did* land the StyleEditorActor/Front decoupling, but we never removed the old StyleEditorActor/Front definitions. This didn't lead to problems because the new definitions came before the old ones, so they were always overridden.
This patch removes the old StyleEditorActor/Front definitions.
Assignee | ||
Updated•8 years ago
|
Attachment #8761972 -
Flags: review?(nfitzgerald)
Assignee | ||
Updated•8 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•8 years ago
|
Whiteboard: [devtools-html] → [devtools-html] [triage]
Updated•8 years ago
|
Status: REOPENED → ASSIGNED
Iteration: 49.3 - Jun 6 → 50.1
Whiteboard: [devtools-html] [triage] → [devtools-html]
Updated•8 years ago
|
Attachment #8761972 -
Flags: review?(nfitzgerald) → review+
Updated•8 years ago
|
Iteration: 50.1 → 50.2
Comment 35•8 years ago
|
||
Pushed by ejpbruel@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/7687a980146e
Remove old StyleEditorActor/Front definitions;r=fitzgen
Comment 36•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago → 8 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Updated•8 years ago
|
Whiteboard: [devtools-html]
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•