Closed
Bug 1272724
Opened 9 years ago
Closed 9 years ago
Split the `domnode` actor spec out to its own module
Categories
(DevTools :: General, defect, P1)
DevTools
General
Tracking
(firefox49 fixed)
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: fitzgen, Assigned: ejpbruel)
References
Details
Attachments
(1 file)
6.79 KB,
patch
|
ejpbruel
:
review+
jryans
:
feedback+
|
Details | Diff | Splinter Review |
This is causing me issues while decoupling the performance tool's actors.
![]() |
Reporter | |
Comment 1•9 years ago
|
||
We are doing this forward declaration thing right now, but it isn't necessary
because there is no circular dependency here.
Attachment #8752277 -
Flags: review?(ejpbruel)
![]() |
Reporter | |
Updated•9 years ago
|
![]() |
Reporter | |
Updated•9 years ago
|
Assignee: nobody → nfitzgerald
Status: NEW → ASSIGNED
Updated•9 years ago
|
Iteration: --- → 49.2 - May 23
Flags: qe-verify-
Priority: -- → P1
![]() |
Assignee | |
Comment 2•9 years ago
|
||
Comment on attachment 8752277 [details] [diff] [review]
Split the `domnode` actor spec out to its own module
Review of attachment 8752277 [details] [diff] [review]:
-----------------------------------------------------------------
I agree with the intent of this patch. I just have a few style comments/nits, which you are free to ignore.
Make sure to run this by jryans before you land it. I had a conversation about this change with him earlier, where I interpreted what he said as preferring a solution where we change protocol.js to distinguish between predeclaring/defining a type.
::: devtools/shared/specs/domnode.js
@@ +16,5 @@
> + // The original image dimensions
> + size: "json"
> +});
> +
> +exports.module = generateActorSpec({
I understand why you're doing it like this, but I would just do exports.nodeSpec, since that's what we do everywhere else. I personally don't like default exports because they force me to think about how each module should be used.
::: devtools/shared/specs/inspector.js
@@ -64,5 @@
> - }
> - }
> -});
> -
> -exports.nodeSpec = nodeSpec;
Everything that requires the inspector specs is also going to have to pull in the node spec. I would re-export nodeSpec here to make that relationship explicit, as opposed to having to require node spec separately everywhere we require the inspector specs.
Attachment #8752277 -
Flags: review?(ejpbruel) → review+
Comment on attachment 8752277 [details] [diff] [review]
Split the `domnode` actor spec out to its own module
Review of attachment 8752277 [details] [diff] [review]:
-----------------------------------------------------------------
This seems fine to me. If we don't need to predeclare, then it makes sense to remove it like this.
Attachment #8752277 -
Flags: feedback+
Updated•9 years ago
|
Assignee: nfitzgerald → ejpbruel
Updated•9 years ago
|
Iteration: 49.2 - May 23 → 49.3 - Jun 6
![]() |
Assignee | |
Comment 4•9 years ago
|
||
Try push for this patch:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=9517f1e6025a
Pushed by ejpbruel@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/fe57228e70aa
Move nodeSpec into its own file;r=ejpbruel
![]() |
||
Comment 6•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
![]() |
||
Comment 7•9 years ago
|
||
bugherder |
Updated•9 years ago
|
Whiteboard: [devtools-html]
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•