Closed Bug 1473628 Opened 7 years ago Closed 7 years ago

Remove unused support of actors as function in ActorPool

Categories

(DevTools :: Framework, enhancement)

enhancement
Not set
normal

Tracking

(firefox63 fixed)

RESOLVED FIXED
Firefox 63
Tracking Status
firefox63 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

The following code should no longer be used: https://searchfox.org/mozilla-central/rev/6ef785903fee6c0b16a1eab79d722373d940fd78/devtools/server/actors/common.js#220-222 We used to support registering function in pools that had to be called the first time the actor was used. I think it was dropped the day we introduced ObservedActorFactory.
Assignee: nobody → poirot.alex
Comment on attachment 8990041 [details] Bug 1473628 - Stop supporting actors as functions. https://reviewboard.mozilla.org/r/255070/#review262310 Well, it seems reasonable, but it's also hard for me to be sure this is correct without combing each call site... Could we use this opportunity to throw an error if `prefix` ends up `null` (after checking both `actorPrefix` and `typeName`)? This way it would be easier to verify that it's correct.
Attachment #8990041 - Flags: review?(jryans) → review+
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c7bd2557255a Stop supporting actors as functions. r=jryans
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Blocks: dbg-server
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: