Closed Bug 1268458 Opened 8 years ago Closed 8 years ago

Decouple fronts from highlighter actors.

Categories

(DevTools :: Inspector, defect, P1)

defect

Tracking

(firefox49 fixed)

RESOLVED FIXED
Firefox 49
Iteration:
49.2 - May 23
Tracking Status
firefox49 --- fixed

People

(Reporter: ejpbruel, Assigned: ejpbruel)

References

Details

Attachments

(2 files, 2 obsolete files)

The inspector actor depends on the highlighter actors, so the latter have to be decoupled before the former.
Carrying over r+ from jryans in bug 1265722.
Attachment #8746495 - Flags: review+
Carrying over r+ from jryans in bug 1265722.
Attachment #8746496 - Flags: review+
Attachment #8746496 - Attachment description: patch → Decouple CustomHighlighterFront from HighlighterFront.
Attachment #8746496 - Attachment is patch: true
Attachment #8746496 - Attachment mime type: text/x-patch → text/plain
Blocks: 1263289
Status: NEW → ASSIGNED
Iteration: --- → 49.1 - May 9
Flags: qe-verify?
Priority: -- → P1
Whiteboard: [devtools-html]
I had to manually rebase these patches, so I'd like you to take another pass at them. Should just be a rubber stamp review.
Attachment #8746495 - Attachment is obsolete: true
Attachment #8747732 - Flags: review?(jryans)
Ditto for this patch.
Attachment #8746496 - Attachment is obsolete: true
Attachment #8747733 - Flags: review?(jryans)
Comment on attachment 8747732 [details] [diff] [review]
Decouple HighlighterFront from HighlighterActor.

Review of attachment 8747732 [details] [diff] [review]:
-----------------------------------------------------------------

::: devtools/shared/specs/highlighters.js
@@ +6,5 @@
> +const {
> +  Arg,
> +  Option,
> +  generateActorSpec
> +} = require("devtools/server/protocol.js");

Just noticed you have added the ".js" extension in `require` in most of your patches...  It's optional, and we typically omit it, so let's remove it everywhere that you have added it.
Attachment #8747732 - Flags: review?(jryans) → review+
Comment on attachment 8747733 [details] [diff] [review]
Decouple CustomHighlighterFront from CustomHighlighterActor.

Review of attachment 8747733 [details] [diff] [review]:
-----------------------------------------------------------------

::: devtools/client/fronts/highlighters.js
@@ +19,5 @@
>  });
>  
>  exports.HighlighterFront = HighlighterFront;
> +
> +const CustomHighlighterFront = FrontClassWithSpec(customHighlighterSpec, {});

Is it possible to drop the second arg if it's empty?
Attachment #8747733 - Flags: review?(jryans) → review+
Flags: qe-verify? → qe-verify-
Try push for the patch to decouple HighlighterFront from HighlighterActor:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=1d0f55d79d7b
Keywords: leave-open
Try push for the patch to decouple CustomHighlighterFront from CustomHighlighterActor:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=fd1e03a837e6
Iteration: 49.1 - May 9 → 49.2 - May 23
Keywords: leave-open
https://hg.mozilla.org/mozilla-central/rev/52f40a1102ad
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
Blocks: 1277706
No longer blocks: 1263289
Blocks: 1263289
Whiteboard: [devtools-html]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: