Closed Bug 1649738 Opened 4 years ago Closed 4 years ago

Log an error when calling targetFront.actorHasMethod() for an unknown or uninitialized actor

Categories

(DevTools :: Framework, task)

task

Tracking

(firefox80 fixed)

RESOLVED FIXED
Firefox 80
Tracking Status
firefox80 --- fixed

People

(Reporter: rcaliman, Assigned: rcaliman)

Details

Attachments

(1 file)

UPDATE

TargetFront.actorHasMethod() does work against all types of actors. The actor needs to have been initialized prior to querying for its description.


TargetFront.actorHasMethod() works only against target-scoped actors.

If it is passed another actor, it fails silently and returns false.

The method should log an error when that happens to draw attention to improper use.

Assignee: nobody → rcaliman
Status: NEW → ASSIGNED
Attachment #9160643 - Attachment description: Bug 1649738 - Log an error when calling targetFront.actorHasMethod() for an actor that is not target-scoped. r=jdescottes → Bug 1649738 - Log an error when calling targetFront.actorHasMethod() for an unknown or uninitialized actor. r=jdescottes
Summary: Log an error when calling targetFront.actorHasMethod() for an actor that is not target-scoped → Log an error when calling targetFront.actorHasMethod() for an unknown or uninitialized actor
Pushed by rcaliman@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5d47950d36ee
Log an error when calling targetFront.actorHasMethod() for an unknown or uninitialized actor. r=jdescottes
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: