mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1594023 - Log actorIDs instead of js objects in DevTools target-list r=ochameau
Depends on D51630 Differential Revision: https://phabricator.services.mozilla.com/D51840 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
cd409fbd97
commit
ef1bf374d0
@ -50,7 +50,10 @@ class LegacyImplementationProcesses {
|
||||
this.descriptors.add(descriptor);
|
||||
const target = await descriptor.getTarget();
|
||||
if (!target) {
|
||||
console.error("Wasn't able to retrieve the target for", target);
|
||||
console.error(
|
||||
"Wasn't able to retrieve the target for",
|
||||
descriptor.actorID
|
||||
);
|
||||
return;
|
||||
}
|
||||
this.onTargetAvailable(target);
|
||||
@ -91,7 +94,10 @@ class LegacyImplementationFrames {
|
||||
) {
|
||||
const target = await frame.getTarget();
|
||||
if (!target) {
|
||||
console.error("Wasn't able to retrieve the target for", frame);
|
||||
console.error(
|
||||
"Wasn't able to retrieve the target for",
|
||||
frame.actorID
|
||||
);
|
||||
continue;
|
||||
}
|
||||
this.onTargetAvailable(target);
|
||||
@ -230,7 +236,7 @@ class TargetList {
|
||||
if (targetFront != this.targetFront) {
|
||||
console.error(
|
||||
"Target is already registered in the TargetList",
|
||||
targetFront
|
||||
targetFront.actorID
|
||||
);
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user